camcontrol cdb to disconnect drive

2005-02-04 Thread Kevin A. Pieckiel
Hey, all.

I want to replace a 9 GB SCSI drive with an 18 GB SCSI drive.  All the
hardware supports hot-swapping.  Just for kicks, I thought I'd try to
turn the drive off via SCSI commands and replace it without rebooting.

The camcontrol utility doesn't have a disconnect command or a stop unit
command (that I can find), so I was going to try to use 'camcontrol cdb'
to send a stop unit command to the drive.  Has anyone done anything
similar?  Can someone help me locate the necessary parameters to use
for this command?  All I can seem to find with Google is a quick
reference for SCSI commands.  It tells me the command to use is 1B, but
I don't know what other details are needed to fill out the CDB command.
I need to fill 6, 10, 12, or 16 bytes, and I only have the first.  Help?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: camcontrol cdb to disconnect drive

2005-02-04 Thread Dan Nelson
In the last episode (Feb 04), Kevin A. Pieckiel said:
 I want to replace a 9 GB SCSI drive with an 18 GB SCSI drive.  All
 the hardware supports hot-swapping.  Just for kicks, I thought I'd
 try to turn the drive off via SCSI commands and replace it without
 rebooting.
 
 The camcontrol utility doesn't have a disconnect command or a stop unit
 command (that I can find), so I was going to try to use 'camcontrol cdb'

$ camcontrol | grep stop
camcontrol stop   [dev_id] [generic args]

Works for me.  There's also a 'start' command.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: camcontrol cdb to disconnect drive

2005-02-04 Thread Kevin A. Pieckiel
 $ camcontrol | grep stop
 camcontrol stop   [dev_id] [generic args]
 
 Works for me.  There's also a 'start' command.

I'm blind as a bat (no offense to any bats out there).  I have no
idea how I missed that.

Thanks!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]