atacontrol -> camcontrol in FreeBSD10+

Polytropon freebsd at edvax.de
Fri Mar 21 13:20:40 UTC 2014


On Fri, 21 Mar 2014 08:47:41 -0400, Robert Huff wrote:
>      I just updated a system to:
> 
> FreeBSD 11.0-CURRENT #0 r263263: Mon Mar 17 15:09:18 EDT 2014 amd64
> 
>      According to src/UPDATING, this means "camcontrol" is now the 
> correct tool for both SCSI and IDE/ATA drives.
>      This system has an external hard drive dock, connected to ada1 via 
> eSATA.  Every so often the drive gets swapped, causing it to disappear 
> from /dev.
>      Previously
> 
> root> atacontrol ata0 detach
> root> atacontrol ata0 attach
> 
>      would get it back.
>      I am unable how figure out the equivalent using camcontrol, in part 
> because many of the commands are explicitly tagged "SCSI".
>      Anybody out there know how to do this?

Without further examination, I'd say this is

	# camcontrol rescan <bus, lun or "all">
	# camcontrol devlist
	# camcontrol start <lun>
	# camcontrol stop <lun>

See "man camcontrol" for details.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list