> Brian Gupta wrote:
> > 
> > ---------- Forwarded message ----------
> > Date: Dec 5, 2007 4:42 PM
> > Subject: [ug-nycosug] noob question
> > To: [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
> > 
> > 
> > Is there a traditional Solaris way to send a SCSI
> disk the STOP UNIT
> > command?  It seems like most OS's can do this, but
> the method is
> > usually ugly, ex.:
> > 
> > FreeBSD:
> > camcontrol stop da0
> > 
> > NetBSD:
> > scsictl /dev/rsd0c stop
> > 
> > OpenBSD:
> > scsi -f /dev/rsd0c -c "1b 0 0 0 0 0"
> > 
> > Linux:
> > sdparm --command=stop /dev/sda
> > 
> > I found I can do it fairly cleanly by building the
> Linux 'sdparm'
> > tool, which uses uscsi(7i), but I'm wondering if
> there's a native
> > Solaris tool for the job.
> 
> 
> Hi Brian,
> there's no built-in command to do this that I am
> aware of,
> but it is very easy to write one yourself using
> uscsi(7i).
> 
> Personally, I'd prefer the NetBSD example to any of
> the other
> that you mention - it seems very clean.
> 
> 
> Why do you want to send that command to your disk?
> 

Can't speak for him, but I'd written something to do that
(looked like the NetBSD command almost, but could only do
stop/start, though I thought I might add other stuff as needed).
Reason in my case was it was a fanless system booted diskless, and
it was quieter with the disk spun down.  (a Voyager as it happens)
(BTW, regarding SCSI hacks, I'd added a patch to ziptool
(http://fy.chalmers.se/~appro/ziptool.html) to set the auto spin-down
time on an Iomega Jaz drive, and also written a daemon to monitor
the eject button (which could be polled even if locked) to attempt
to exec "eject" and get a clean unmount/eject - that was convenient.)

Luxadm can spin down most SCSIs I think, as can Joerg's "sformat" command
if one happens to have that already.
 
 
This message posted from opensolaris.org
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to