How to reconnect Greyhole storage pool after Amahi rebuild

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

How to reconnect Greyhole storage pool after Amahi rebuild

Postby ralfb » Fri Jan 21, 2011 7:00 am

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
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

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

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby gboudreau » Fri Jan 21, 2011 8:16 am

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/*)
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby ralfb » Fri Jan 21, 2011 8:53 am

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
Last edited by ralfb on Sat Jan 22, 2011 9:13 am, edited 3 times in total.
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

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

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby gboudreau » Fri Jan 21, 2011 8:58 am

Yes.
- Guillaume Boudreau

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby ralfb » Fri Jan 21, 2011 9:00 am

When recreating the share in amahi, should I use caps like 'Sharename' or no caps like 'sharename'?
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

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

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby gboudreau » Fri Jan 21, 2011 9:03 am

The exact same name that you see in drives/drive#/gh/
That would probably be Movies, not movies.
- Guillaume Boudreau

moncapitaine
Posts: 39
Joined: Fri Jun 11, 2010 3:40 am
Location: East Germany

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby moncapitaine » Sat Jan 22, 2011 8:51 am

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.
Celeron G530, 8GB RAM, Intel SDD 80GB system, 8TB Storage. Fileserver and Mediaserver.

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby ralfb » Sat Jan 22, 2011 9:12 am

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
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby ralfb » Sat Jan 22, 2011 9:14 am

[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
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

User avatar
ralfb
Posts: 81
Joined: Mon Dec 06, 2010 7:23 pm
Location: Hong Kong

Re: How to reconnect Greyhole storage pool after Amahi rebui

Postby ralfb » Sat Jan 22, 2011 7:12 pm

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:

Code: Select all

Run greyhole --fsck
require to complete?

Thanks

Ralf
best,
Ralf

_______________________________________
Gigabyte GA-965G-DS3 Motherboard
Intel Pentium E2180 Processor @ 2.66MHz
Corsair 2 x 2GB xms2 DDR2 RAM
4 x 2T Western Digital Green Power HDD

Who is online

Users browsing this forum: No registered users and 18 guests