PDA

Bekijk de volledige versie : WL-500W with Maxtor OneTouch spin up problem



nisseman
25-09-2008, 18:24
I already tried asking this at the WL-500W forum, but way encouraged to ask here :)

I have a WL-500W running with Oleg's firmware, and I have connected a Maxtor OneTouch 4 - 1TB to one of the usb ports.
This setup causes a problem as the WL-500W does not allow the usb disc to spin up after a standby. :(

One "solution" would be to prevent the disk from entering standby, but I would really like to use this feature.

Is there any way to make the WL-500W wait before trying to access the disc, allowing it to spin up?
As far as I can see the problem with the OneTouch is well known on google, but I cannot manage to get any of the solutions to fit into the structure of the WL-500W. One of the solutions written in many places suggests to do the following:
echo 1 > /sys/class/scsi_disk/4:0:0:0/allow_restart
but I see no such file anywhere on the WL-500W.

Can anyone help me with a solution to the problem?
I am willing to test stuff and provide any relevant information you might need to help me.

Here is a dump of the log when the disc is accessed after a standby:
Sep 23 21:50:21 kernel: Device 08:01 not ready.
Sep 23 21:50:21 kernel: I/O error: dev 08:01, sector 755236880
Sep 23 21:50:21 kernel: EXT3-fs error (device sd(8,1)): ext3_get_inode_loc: unable to read inode block - inode=23601153, block=94404610

avberk
26-09-2008, 11:07
Just a suggestion you could try:

-Disable the standby feature on your maxtor drive
-install 'spindown' (ipkg install spindown)

Try 'spindown' to stop spinning the disk (or something else)

Now test if a write action starts spinning the disk.

FYI.
I am using a western digital mybook essential 500GB which spins down automatically after being idle for 10 minutes and spins up as soon as you access it.
Maybe you can still swap the maxtor for a WD e.g......

nisseman
04-10-2008, 23:59
Just a suggestion you could try:

-Disable the standby feature on your maxtor drive
-install 'spindown' (ipkg install spindown)

Try 'spindown' to stop spinning the disk (or something else)

Now test if a write action starts spinning the disk.

FYI.
I am using a western digital mybook essential 500GB which spins down automatically after being idle for 10 minutes and spins up as soon as you access it.
Maybe you can still swap the maxtor for a WD e.g......

Sorry for the long waiting time, I have been a little busy...
Unfortunately my return period of the maxtor drive is long gone, so I am stuck with it.

I have had some success on background of what you suggested. I disabled the standby feature of the maxtor drive and gave spindown a try. But I could not get it to work.
But instead I found this thread: http://wl500g.info/showthread.php?t=7836
By doing as stated there I can get the drive to spin down (even though the native spindown is disabled), but unfortunately it still gives the same errors when spinning up again.

I need to somehow make the wl500 wait for the maxtor drive to spin up? Any other ideas?

avberk
06-10-2008, 08:38
2 other suggestions:

-umount and then mount the disk again.
-take the disk out of the maxtor casing and use another
external case. (a bit drastic)

nisseman
06-10-2008, 16:54
2 other suggestions:

-umount and then mount the disk again.
-take the disk out of the maxtor casing and use another
external case. (a bit drastic)
I am not sure that I understand your first suggestion. Do you mean that I should umount and mount the disc every time I need to use it? If you do, that would be a lousy solution as I want to be able to use my disk via samba when ever I need to. :confused:

Your second suggestion is, as you write, pretty drastic. I would probably loose the guaranty for the disc as it is very hard to disassemble without damaging it. And I would have to buy another casing :(

There must exist something similar to this (which is known to correct my problem)
echo 1 > /sys/class/scsi_disk/4:0:0:0/allow_restart
on the wl500, or doesn't that exist?

avberk
06-10-2008, 20:47
Did some more investigation. Try this:

-ipkg update
-ipkg install sdparm
-fdisk -l (this shows the device)

and then something like this to bring the disk out of standby:

sdparm --command=start /dev/scsi/host0/bus0/target0/lun0/part1

The 'host0' could also be 'host1'. depends how many disk you have attached.

nisseman
06-10-2008, 21:04
Did some more investigation. Try this:

-ipkg update
-ipkg install sdparm
-fdisk -l (this shows the device)

and then something like this to bring the disk out of standby:

sdparm --command=start /dev/scsi/host0/bus0/target0/lun0/part1

The 'host0' could also be 'host1'. depends how many disk you have attached.
The command did absolutely nothing, just executes with no message, nothing happens, and nothing in the logs.

But would it have helped me anyway? I am able to spin up the disc, just not fast enough to prevent the wl500 from marking it as erroneous. :(

It just hit me that I might not have been clear enough in my previous posts. After the error is written in the log, then the disc spins up and works as normal. The problem is that now it has been marked as having errors on the partition as it was not available at the time the wl500 tried to access it the first time. So I need to make the wl500 wait for it to spin up.

I am very sorry if I have not been clear enough :(

avberk
06-10-2008, 21:27
Ok. i guess only a kernel patch would help here...

Maybe Oleg can do something here..

nisseman
06-10-2008, 21:36
Ok. i guess only a kernel patch would help here...

Maybe Oleg can do something here..

Do you know if there is a way I can ask Oleg if he can and will try to help solve this?

avberk
09-10-2008, 11:06
see bottom of this page:

http://oleg.wl500g.info/


Normally he will look at this forum too...

theMIROn
03-02-2009, 10:38
Can anybody with wl-500gP try oleg based firmware with patches to allow spin up usb-hdd?
Thread is multilangual, so feel free to write in english there
http://wl500g.info/showthread.php?t=17136&page=23

nisseman
03-02-2009, 16:58
Can anybody with wl-500gP try oleg based firmware with patches to allow spin up usb-hdd?
Thread is multilangual, so feel free to write in english there
http://wl500g.info/showthread.php?t=17136&page=23

I have a wl-500w and could try this if you could post some directions.

I have absolutely no idea of what is written in the thread you refer to as I do not understand russian. I also tried making google translate the thread into somthing I could read, but unfortunately it does not seem to work for that page.

theMIROn
03-02-2009, 21:40
okie, try to explain. issue information http://www.nslu2-linux.org/wiki/FAQ/DealWithAutoSpinDownOnSeagateFreeAgent
i have backported scsi/usb patch to linux 2.4 kernel, used with oleg's firmware and submitted to experimental firmware at http://wl500g.googlecode.com.
Router will be able to spin up sleeping usb drives