[TriLUG] Spinning down a SCSI drive

Owen Berry oberry at trilug.org
Mon Apr 10 09:51:23 EDT 2006


Thanks for the information, although it didn't work for me. I'm not 100%
sure I had the correct scsi id information though. I was booted off a
Gentoo install CD, which isn't really a live cd for anything other than
installation, and didn't have lsscsi included.

I'll have to find a real Sparc 64 live cd and try with that. Any
suggestions?

Owen

On Fri, Apr 07, 2006 at 05:04:42PM -0400, David Brain wrote:
> You could try something like:
> 
> echo "scsi remove-single-device" 0 0 1 0 > /proc/scsi/scsi
> 
> That should set it up for hot removal, which you would hope would
> include spining it down.
> 
> Of course it won't come back until you do:
> 
> echo "scsi add-single-device" 0 0 1 0 > /proc/scsi/scsi
> 
> You can get the scsi id stuff the '0 0 1 0' (host:bus:device:lun) info
> from the command 'lssci'
> 
> David.
> 
> On 4/7/06, Owen Berry <oberry at trilug.org> wrote:
> > I have in my possession an old Sun Ultra Enterprise 2 server, which I
> > received for the bargain price of $0. It has 2 very noisy SCSI drives in
> > it, and while I'm figuring out what to do with this prize possession, I
> > was wondering if there is a way to spin down the SCSI disks when running
> > off a live CD.
> >
> > I tried using hdparm -Sx, but from the output the action wasn't
> > supported by the drive. I should have written it down before shutting
> > off the machine (doh!) but it was something to the effect of
> > unrecognized parameter. And no, it wasn't hdparm that was complaining
> > about -S, it looked more like a response from the device.
> >
> > I also looked for some of the scsi-xxxx tools on the livecd, but
> > couldn't find anything. Not sure if that's 'cos they weren't there, or
> > if those tools are obsolete.
> >
> > I guess I could unplug the drives for now, but in the back of my mind
> > I'm wondering if I can set something up where I run off a live cd, and
> > have a ramdrive that synchs with the hard drive on startup and shutdown
> > for writeable data, with the drives being shutdown the rest of the time.
> > Maybe a little crazy. :-)
> >
> > Any other suggestions?
> >
> > Thanks,
> > Owen



More information about the TriLUG mailing list