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?

regards,
James C. McPherson
--
Senior Kernel Software Engineer, Solaris
Sun Microsystems
http://blogs.sun.com/jmcp       http://www.jmcp.homeunix.com/blog
_______________________________________________
storage-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/storage-discuss

Reply via email to