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.
Greyhole Storage Pool shutdown problem
Re: Greyhole Storage Pool shutdown problem
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:
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:
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.umount /mnt/samba/*
service smb stop
- Guillaume Boudreau
-
- Posts: 4
- Joined: Thu Dec 09, 2010 12:15 am
Re: Greyhole Storage Pool shutdown problem
OK will do
Good to know I am not alone and good luck with finding solution.
Good to know I am not alone and good luck with finding solution.
Re: Greyhole Storage Pool shutdown problem
Hello!
I'm having exactly the same problem on my hda, is there any news on this topic?
Best regards
Erik
I'm having exactly the same problem on my hda, is there any news on this topic?
Best regards
Erik
Re: Greyhole Storage Pool shutdown problem
No. umount and stop samba manually before shutting down is the only option right now.
- Guillaume Boudreau
Re: Greyhole Storage Pool shutdown problem
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.
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
Re: Greyhole Storage Pool shutdown problem
Worked GREAT!
Your the man!!!
Thanks alot, and merry Christmas!
Your the man!!!
Thanks alot, and merry Christmas!
Re: Greyhole Storage Pool shutdown problem
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.
Thanks for any help.
Who is online
Users browsing this forum: No registered users and 25 guests