Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: bossies on December 12, 2010, 10:59:34 AM

Title: usb drive do not wake up - need allow_restart
Post by: bossies on December 12, 2010, 10:59:34 AM
i have a usb drive that i use for backup purpose - when i do a mount command before i start the backup i get a I/O error.  its a seagate drive and some searching on the net i found they spin down after 15min in inactivity - i further found a patch for it to set the allow_restart parameter but i do not see the same directories in sme - the command below

echo 1 >/sys/class/scsi_disk/0:0:0:0/allow_restart

please help me with this command in sme to fix the problem with the backup drive
Title: Re: usb drive do not wake up - need allow_restart
Post by: janet on December 12, 2010, 12:11:40 PM
bossies

There was a similar issue reported in bugzilla in the last few months. The workaround was different to what you ask for, but it worked, so maybe that will apply to your situation.
Title: Re: usb drive do not wake up - need allow_restart
Post by: cactus on December 12, 2010, 06:39:36 PM
i further found a patch for it to set the allow_restart parameter but i do not see the same directories in sme - the command below

echo 1 >/sys/class/scsi_disk/0:0:0:0/allow_restart

please help me with this command in sme to fix the problem with the backup drive
I think you should convert this to the proper disk listed under /dev/disk/ . Did you already have a look there? I have no USB drives to attach at hand to look up the exact commands.
Title: Re: usb drive do not wake up - need allow_restart
Post by: bossies on December 12, 2010, 07:10:14 PM
mary - could you maybe send me the link to the workaround or how to search for it?

cactus - i am still not sure on what to look for - my dir has /by-path/

and then stuff like

pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0
pci-0000:00:1d.0-usb-0:1.3:1.0-scsi-0:0:0:0-part1
Title: Re: usb drive do not wake up - need allow_restart
Post by: janet on December 12, 2010, 11:36:54 PM
bossies

Clicks Bugs at top of forum, then type something in the search window
eg
USB
backup drive
spin USB drive up
etc

You could also just manually review the list of bugs starting from most recent and work your way backwards.

Edit: Since searched & found
http://bugs.contribs.org/show_bug.cgi?id=5519
particularly comments 25, 30 & 33
(searched on seagate USB)