Sleeping HDD won't wake up

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Sleeping HDD won't wake up

Postby drewofdoom » Fri May 17, 2013 4:17 pm

I have two external HDD enclosures containing one LVM. One of them sleeps and wakes properly. The other, which holds 2 HDDs will sleep properly, but refuses to wake up unless the Pi gets a hard reboot.

I have gone through and e2fsck'd the whole LVM. Furthermore, I have scanned for bad blocks and have done the typical "is my hard drive bad" troubleshooting. The LVM works just fine on a desktop Arch Linux install.

Both are self-powered drives, and no USB hub is involved. I know that I could, in theory, use hdparm to set a ridiculously long time before sleep, but I'd really rather my drives be able to sleep in order to improve their longevity.

Any ideas as to why the drives won't wake up? Or at least a starting point?
drewofdoom
 
Posts: 4
Joined: Fri May 17, 2013 12:08 pm

Re: Sleeping HDD won't wake up

Postby drewofdoom » Sun May 19, 2013 2:34 am

Some new testing and some extra information. Here's my current setup in-depth:

Raspberry Pi
-SD Card (boot and system)
-LVM
---iomega single-bay enclosure
---Rosewill dual-bay enclosure

When the Pi first boots up, my LVM activates normally. I can browse locally as well as through samba. After some time I can no longer access the Rosewill enclosure. SSH'ing into the Pi and running ls, I get the following error:
$this->bbcode_second_pass_code('', 'ls: cannot access /media/Television/Archer (2009): Input/output error')

lsusb:
$this->bbcode_second_pass_code('', '[root@alfred ~]# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter / SMSC9512/9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 005: ID 059b:0370 Iomega Corp.')

pvdisplay:
$this->bbcode_second_pass_code('', '[root@alfred ~]# pvdisplay
PV U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU not recognised. Is the device missing?
PV WBNJDK-cygp-UmQd-keJN-o0dg-8G4e-eEASEi not recognised. Is the device missing?
PV U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU not recognised. Is the device missing?
PV WBNJDK-cygp-UmQd-keJN-o0dg-8G4e-eEASEi not recognised. Is the device missing?
--- Physical volume ---
PV Name /dev/sdb1
VG Name VolGroup00
PV Size 931.51 GiB / not usable 327.50 KiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 238467
Free PE 0
Allocated PE 238467
PV UUID sCdZsB-siKc-w2WZ-Y3ym-Hq9l-Pq1u-XLqqoG

PV U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU not recognised. Is the device missing?
PV WBNJDK-cygp-UmQd-keJN-o0dg-8G4e-eEASEi not recognised. Is the device missing?
--- Physical volume ---
PV Name unknown device
VG Name VolGroup00
PV Size 1.82 TiB / not usable 1.05 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476932
Free PE 0
Allocated PE 476932
PV UUID U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU

PV U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU not recognised. Is the device missing?
PV WBNJDK-cygp-UmQd-keJN-o0dg-8G4e-eEASEi not recognised. Is the device missing?
--- Physical volume ---
PV Name unknown device
VG Name VolGroup00
PV Size 1.82 TiB / not usable 1.05 MiB
Allocatable yes (but full)
PE Size 4.00 MiB
Total PE 476932
Free PE 0
Allocated PE 476932
PV UUID U7ZKJm-3dv4-FTCu-zMyF-EURh-Onnv-Wd2BhU')

Is the USB port going to sleep and refusing to recognize the Rosewill enclosure afterwards? Strange that it only happens with the Rosewill and not the iomega.
drewofdoom
 
Posts: 4
Joined: Fri May 17, 2013 12:08 pm

Re: Sleeping HDD won't wake up

Postby moonman » Sun May 19, 2013 3:08 am

Try the latest kernel, maybe it will help: pacman -Sy linux-raspberrypi-latest.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Sleeping HDD won't wake up

Postby drewofdoom » Sun May 19, 2013 4:55 am

Actually installed that directly after posting the last response. No change.
drewofdoom
 
Posts: 4
Joined: Fri May 17, 2013 12:08 pm

Re: Sleeping HDD won't wake up

Postby drewofdoom » Mon May 20, 2013 3:56 am

So, I've managed to use a dirty little workaround to at least keep the problems from happening. Not a fix, mind you. Will likely reduce overall hard drive longevity.

Created a cron job to touch the blank file ".wake" in the root of the LVM once every minute just to keep the connection alive.
drewofdoom
 
Posts: 4
Joined: Fri May 17, 2013 12:08 pm

Re: Sleeping HDD won't wake up

Postby moonman » Mon May 20, 2013 5:09 am

Actually spinning up/down too often will reduce the lifespan of the hdd. One of my enclosures does not play nice with spin up down as well. Putting the same drive in a different enclosure solves the problem.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 0 guests