Page 1 of 1

Balance Disks

Posted: Thu Jul 05, 2012 2:40 am
by othey
Hi I have just installed ubuntu Amahi :), I am in the process of transferring a few TB of files into the storage pool.

I have added 2 hard drives a 2tb and a 1tb so far,Image

But for some reason I cant get greyhole to balance the storage load I have tried sudo greyhole -l to balance but that doesn't seem to transfer files to drive2 also ran --fsck

Anyone know how to make it balance? I still have another 7TB of hard drives/Data to add.

Re: Balance Disks

Posted: Thu Jul 05, 2012 3:43 am
by othey
Ok I fixed it I had to remove the drive from the storage pool and then re -add it for it to balance not sure why it wasn't working before drive 2 had gh files in its dir.

Re: Balance Disks

Posted: Thu Jul 05, 2012 4:52 am
by bigfoot65
There is a command line option for balance.

http://wiki.amahi.org/index.php/Linux-hda_commands

You can also see the Greyhole command options by executing the following as root user:

Code: Select all

greyhole --help

Re: Balance Disks

Posted: Thu Jul 05, 2012 5:41 am
by othey
I did try and do a manual balance by using the -l trigger but it was not working, I was getting errors saying all the drives were full in greyhole when i did the -L trigger.
when I added the 2nd drive to the pool for some reason it wasn't recognised by greyhole even know greyhole made the gh folder inside the 2nd drives directory.

Once I removed it from the storage and added it back again it worked fine when i initiated the -l cmd

Anyway its working now :)

Happy ubuntu Amahi user :)

Re: Balance Disks

Posted: Thu Jul 05, 2012 5:42 am
by bigfoot65
That is odd. Glad it worked out for you.

Re: Balance Disks

Posted: Thu Jul 05, 2012 6:31 pm
by othey
Just a follow up it seems greyhole wont recognise new hard drives I add to the storage pool via the hda dashboard until I restart greyhole.

Not a big deal just saying if someone else has similar issues :)

Re: Balance Disks

Posted: Thu Jul 05, 2012 7:26 pm
by bigfoot65
Can you give more details? Is the drive properly mounted? Is this Ubuntu? We prefer all Ubuntu related problems be posted in that topic area.

I have been using Greyhole for years, both Fedora and Ubuntu, with no issues.

Re: Balance Disks

Posted: Thu Jul 05, 2012 8:49 pm
by othey
yes it's ubuntu I am mounting it via hda-diskmount then I am adding it to /etc/fstab and then adding it to the storage pool.

When I add it to the storage pool greyhole makes a gh and a lost+found folder on the drive if I do a greyhole -s
it does show the drive is in the storage pool then I do a greyhole -l to balance the drives and it only lists the earlier drives when it does a balance, not the one I just added.

If I restart the greyhole service it detects the new hard drive and does a balance , after that it seems to work perfect

Re: Balance Disks

Posted: Fri Jul 06, 2012 3:32 am
by bigfoot65
Ok, that makes sense. Seems it must be restarted to pick up the new settings. Typically that was done automatically, but might be a bug that it is not doing it now.

That would be an Amahi bug by the way as the platform should cause the restart when you selected to add it to the pool I would think.