Page 1 of 2
How to reconnect Greyhole storage pool after Amahi rebuild
Posted: Fri Jan 21, 2011 7:00 am
by ralfb
Hello,
I think I need to reinstall Amahi and Fedora.
From reading this Forum, I believe it's possible and requires disconnecting the storage drives completely, recreating the system drive and then reconnecting the storage pool drives.
What are the steps required to recreate the storage pool and shares?
Many thanks
Ralf
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Fri Jan 21, 2011 8:16 am
by gboudreau
Once re-installed, you need to re-create the same shares you had before (with the same names), and make sure all your data drives are connected, and included in the storage pool.
Then launch a "greyhole --fsck" to re-create the symlinks in the landing zone (/var/hda/files/*)
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Fri Jan 21, 2011 8:53 am
by ralfb
Thanks,
Just so I'm clear:
1) After amahi rebuild, remount all storage drives as per wiki and add to fstab.
(
http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA)
2) Look at /var/hda/files/drive1 (from my memory) et al and check share names
3) Enable advanced options in amahi storage dashboard and add drives to storage pool
4) recreate share names in Amahi dashboard and assign shares to greyhole storage pool
5) Run greyhole --fsck
One thing I noticed when looking at the shares mounted locally, each share had two folders, one each Music and music (no caps) Movies and movies (no caps) and the content was the same.
When recreating the share in amahi, should I use caps like 'Sharename' or no caps like 'sharename'?
many thanks
Ralf
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Fri Jan 21, 2011 8:58 am
by gboudreau
Yes.
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Fri Jan 21, 2011 9:00 am
by ralfb
When recreating the share in amahi, should I use caps like 'Sharename' or no caps like 'sharename'?
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Fri Jan 21, 2011 9:03 am
by gboudreau
The exact same name that you see in drives/drive#/gh/
That would probably be Movies, not movies.
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Sat Jan 22, 2011 8:51 am
by moncapitaine
Wouldn't it be a good idea to have this information in the wiki?
I'd be willingto write it, I just don't know if it should be there, if it should be on the greyhole page or elsewhere.
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Sat Jan 22, 2011 9:12 am
by ralfb
ok,
I've completed steps 1 - 4 above:
1) After amahi rebuild, remount all storage drives as per wiki and add to fstab.
(
http://wiki.amahi.org/index.php/Adding_ ... o_your_HDA)
2) Look at /var/hda/files/drive1 (from my memory) et al and check share names
3) Enable advanced options in amahi storage dashboard and add drives to storage pool
4) recreate share names in Amahi dashboard and assign shares to greyhole storage pool
Now for the moment of truth, Step 5:
5) Run greyhole --fsck
Cross your fingers
I'll let you know how it goes.
Ralf
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Sat Jan 22, 2011 9:14 am
by ralfb
[root@padme ralf]# greyhole --fsck
fsck of all shares has been scheduled. It will start after all currently pending tasks have been completed.
[root@padme ralf]#
So far I can connect to the HDA from my Mac and I can access the shares which are empty at the moment.
Lets see what occurs.
I'll let it run overnight.
best,
Ralf
Re: How to reconnect Greyhole storage pool after Amahi rebui
Posted: Sat Jan 22, 2011 7:12 pm
by ralfb
Ok so far I've also mounted my shares locally using the wiki instructions here:
http://wiki.amahi.org/index.php/Mount_Shares_Locally
Code: Select all
[root@padme ralf]# curl -o /etc/init.d/mount_shares_locally http://dl.dropbox.com/u/3022105/Amahi/mount_shares_locally
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
101 1324 101 1324 0 0 1116 0 0:00:01 0:00:01 --:--:-- 1955
[root@padme ralf]# chmod +x /etc/init.d/mount_shares_locally
[root@padme ralf]# chkconfig --add mount_shares_locally
[root@padme ralf]# chmod 777 /etc/init.d/mount_shares_locally
[root@padme ralf]# chmod +x /etc/init.d/mount_shares_locally
[root@padme ralf]# service mount_shares_locally start
Mounting Samba shares locally: [ OK ]
That worked and I can access the shares locally now too.
Next:
http://forums.amahi.org/viewtopic.php?f=39&t=2408
Fixing the reserved space on the storage drives.
So far I can not access any files in the shares.
How long should I expect:
require to complete?
Thanks
Ralf