Page 1 of 1

Slow HDD marked as missing [SOLVED]

Posted: Wed Jul 20, 2011 1:06 am
by SebaD
Hello,

I have a pool of 7 HDD and I see that sometimes one of them goes missing. All is fine if I reboot.

Can this be due to a maybe slow response from the respective drive? What to do?
How can I set the system to send an email if such kind of problems occur?

Code: Select all

Storage Pool Total - Used = Free + Attic = Possible /var/hda/files/gh: 400G - 7G = 373G + 0G = 373G /var/hda/files/drives/drive1/gh: 1834G - 1314G = 426G + 0G = 426G /var/hda/files/drives/drive2/gh: 917G - 442G = 428G + 0G = 428G /var/hda/files/drives/drive3/gh: 1375G - 879G = 427G + 0G = 427G /var/hda/files/drives/drive4/gh: 1375G - 877G = 428G + 0G = 428G /var/hda/files/drives/drive6/gh: 917G - 445G = 426G + 0G = 426G /var/hda/files/drives/drive5/gh: 917G - 445G = 425G + 0G = 425G /var/hda/files/drives/drive7/gh: df: `/var/hda/files/drives/drive7/gh': No such file or directory df: no file systems processed 0G - 0G = 373G + 0G = 373G /var/hda/files/drives/drive8/gh: 1375G - 880G = 425G + 0G = 425G ========================================== Total: 9111G - 5290G = 3730G + 0G = 3730G
Thanks
Seba

Re: Slow HDD marked as missing

Posted: Wed Jul 20, 2011 5:11 am
by lrevxl
The error is pretty straight forward, it's not finding that directory. I doubt it's because the drive is 'slow', more likely it's that the drive has been unmounted for some reason. Next time it happens try to cd to /var/hda/files/drives/drive7/gh and see what happens, I'm betting you'll get the same error that says it doesn't exist!

You can also run 'df' when it happens and it'll show you all the mounts currently active on your system, if you don't see drive7, you'll know it isn't mounted. If I'm right on this then rebooting fixes it because the drive is remounted. (You don't need to reboot to remount your drive you could enter a command like -- as root -- 'mount /var/hda/files/drives/drive7', depending on how fstab is setup in Amahi, I'm not sure.)

Re: Slow HDD marked as missing

Posted: Wed Jul 20, 2011 5:16 am
by SebaD
You were absolutely right, found the culprit and removed bloody script.

Any suggestion for the second point:
How can I set the system to send an email if such kind of problems occur?

Re: Slow HDD marked as missing

Posted: Wed Jul 20, 2011 5:19 pm
by lrevxl
You were absolutely right, found the culprit and removed bloody script.

Any suggestion for the second point:
How can I set the system to send an email if such kind of problems occur?
It's actually already sending emails. :) But the mail is likely only going to your local server mailbox which isn't doing you much good. You need to, one, set the email you want Greyhole to send to in /etc/greyhole.conf -- look for the property 'email-to' and set it to whatever email you want (this is probably different since Amahi auto generates this file -- someone else please chime in if there's an Amahi specific way to do this) and, two, you need to setup sendmail on your server so it can get email to an address outside your local system mailbox. (I used this guide to use gmail's smtp server to send mail from my server: http://www.linuxha.com/other/sendmail/gmail.html) If you go onto your server as root and type in 'mail' you'll probably see a lot of Greyhole mail there waiting for you.

Re: Slow HDD marked as missing

Posted: Wed Jul 20, 2011 11:59 pm
by SebaD
Thank you!
as usual RFM if you know where to find it ;-)....