Page 1 of 1

Turn off duplication in Greyhole

Posted: Tue Sep 27, 2011 8:49 am
by rcrh
I'm in the midst of migrating data from a WHS to Amahi and have an issue I have to address temporarily (until I get all of my drives install in the new server).

I added extra copies of files in one of my shares and now need to turn that off. I went into the web interface and changed the STORAGE POOLS/EXTRA COPIES from 1 to "-". But, it doesn't appear that the space is being released back into the pool. The share has almost 3tb in it so it should be obvious in the storage stats. Do I have to do something at a console prompt to trigger greyhole to release the space?

Thanks in advance.

Re: Turn off duplication in Greyhole

Posted: Wed Sep 28, 2011 1:00 am
by da9els
Have you tried to force greyhole to balance the drives?

First, do:

Code: Select all

greyhole -f
Then let it finish
Then do:

Code: Select all

greyhole -l
/daniel

Re: Turn off duplication in Greyhole

Posted: Wed Sep 28, 2011 8:25 am
by rcrh
Daniel, thanks for this. A couple of follow ups:
1) is it the -f or the -l that will release the space?
2) once I start the -f how do I tell that it's complete?
3) will the -f present a report of its results when complete?

It's running as we speak but I don't see it in the daemon queue.

Thanks again.

Re: Turn off duplication in Greyhole

Posted: Wed Sep 28, 2011 9:03 am
by da9els
Type:

Code: Select all

tail -f /var/log/greyhole.log​
to see greyhole status.

...more to follow soon ;-)

EDIT: Ohh yeah. If the space isn't released then run a

Code: Select all

greyhole --empty-attic
to purge "recycle bin".

EDIT2: follow up.
The "-f" schedules a fsck and "-l" balances the data.

Re: Turn off duplication in Greyhole

Posted: Wed Sep 28, 2011 12:13 pm
by rcrh
well here's something curious (at least to me). The -f process seems to release files by putting them into the attic.

I was surprised that my space wasn't opening up and then I ran greyhole -a and found hundreds of gigs in the attic on each drive.

Re: Turn off duplication in Greyhole

Posted: Wed Sep 28, 2011 2:41 pm
by da9els
Yeah, thats how greyhole works. It naged me at first.
You can make a share called "Greyhole Recycle Bin" which will give you direct access to greyhole attic files. I usualy just run the "greyhole --empty-attic" once in a while.