Slow HDD marked as missing [SOLVED]

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Slow HDD marked as missing [SOLVED]

Postby SebaD » Wed Jul 20, 2011 1:06 am

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
Last edited by SebaD on Thu Jul 21, 2011 12:00 am, edited 1 time in total.

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Slow HDD marked as missing

Postby lrevxl » Wed Jul 20, 2011 5:11 am

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.)

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Re: Slow HDD marked as missing

Postby SebaD » Wed Jul 20, 2011 5:16 am

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?

User avatar
lrevxl
Posts: 82
Joined: Fri Mar 04, 2011 7:23 pm
Location: Chicago, IL, USA
Contact:

Re: Slow HDD marked as missing

Postby lrevxl » Wed Jul 20, 2011 5:19 pm

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.

SebaD
Posts: 34
Joined: Fri May 20, 2011 2:44 am

Re: Slow HDD marked as missing

Postby SebaD » Wed Jul 20, 2011 11:59 pm

Thank you!
as usual RFM if you know where to find it ;-)....

Who is online

Users browsing this forum: No registered users and 10 guests