Greyhole Storage Pool shutdown problem

myserver247
Posts: 4
Joined: Thu Dec 09, 2010 12:15 am

Greyhole Storage Pool shutdown problem

Postby myserver247 » Thu Dec 09, 2010 5:01 am

Hi again

I am trying to use Amahi as a replacement for WHS. In WHS the storage pool can be used by any application. In Amahi it seems reserved for shares. I want Amahi apps to use the avalable space on the storage pool. If this is possible I presume that you have to mount shares locally via samba /mnt/samba/<share_name> as per the wiki instructions. After i have done this my server fails to shutdown and hangs on trying to unmount the cifs share until i reset power. I have search for a solution on google and there are numerous examples. I am not sure which is correct and I don't want to use a example that my interfere with greyhole. What is the recommended shutdown procedure with locally mounted shares and I intend to run my system headless in the future so i do'nt want to have to maually cycle the power to reset in the future. Please excuse the verbosity of my questions but when it comes to the reliability of my data I want to know exactly what I am doing.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Greyhole Storage Pool shutdown problem

Postby gboudreau » Thu Dec 09, 2010 5:10 am

The problem is that on shutdown, the smb server shut downs first, then another init.d script tries to umount the locally mounted shares. But since the samba server they use is now offline, that script hangs.

I have the exact same issue, and have yet to create an automated procedure to fix this.

To prevent this from happening, you'll want to manually umount all the locally mounted samba shares before shutting down, then stopping the smb service:
umount /mnt/samba/*
service smb stop
I'll update the wiki page about locally mounting shares once I find how to automatize this. You might want to click the 'watch' link on that wiki page to be notified when I update it.
- Guillaume Boudreau

myserver247
Posts: 4
Joined: Thu Dec 09, 2010 12:15 am

Re: Greyhole Storage Pool shutdown problem

Postby myserver247 » Thu Dec 09, 2010 5:19 am

OK will do

Good to know I am not alone and good luck with finding solution.

erikbuch
Posts: 2
Joined: Sat Dec 18, 2010 4:34 am

Re: Greyhole Storage Pool shutdown problem

Postby erikbuch » Sat Dec 18, 2010 4:38 am

Hello!
I'm having exactly the same problem on my hda, is there any news on this topic?
Best regards
Erik

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Greyhole Storage Pool shutdown problem

Postby gboudreau » Sat Dec 18, 2010 5:30 am

No. umount and stop samba manually before shutting down is the only option right now.
- Guillaume Boudreau

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Greyhole Storage Pool shutdown problem

Postby gboudreau » Sun Dec 19, 2010 8:06 pm

I created an init.d script that takes care of both mounting on boot, and un-mounting on shutdown/reboot.
You can find the instructions on the same wiki page: http://wiki.amahi.org/index.php/Mount_Shares_Locally
See last note about undoing what you did in fstab / rc.local.
- Guillaume Boudreau

erikbuch
Posts: 2
Joined: Sat Dec 18, 2010 4:34 am

Re: Greyhole Storage Pool shutdown problem

Postby erikbuch » Wed Dec 22, 2010 5:08 pm

Worked GREAT!
Your the man!!!
Thanks alot, and merry Christmas!

peaeater
Posts: 7
Joined: Fri Jan 14, 2011 11:12 am

Re: Greyhole Storage Pool shutdown problem

Postby peaeater » Sat Jan 22, 2011 3:04 pm

I have the same problem, with mount_shares_locally in play: a hang at shutdown. If I manually stop the service to unmount the local shares first, shutdown and restart act normally. The comments above seem imply that the stop should occur at shutdown without manual intervention? Or am I reading it wrong?

Thanks for any help.

Who is online

Users browsing this forum: No registered users and 25 guests