Turn off duplication in Greyhole

rcrh
Posts: 50
Joined: Fri Sep 02, 2011 1:40 pm

Turn off duplication in Greyhole

Postby rcrh » Tue Sep 27, 2011 8:49 am

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.

da9els
Posts: 25
Joined: Wed Oct 13, 2010 12:18 pm

Re: Turn off duplication in Greyhole

Postby da9els » Wed Sep 28, 2011 1:00 am

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
Last edited by da9els on Wed Sep 28, 2011 9:04 am, edited 1 time in total.

rcrh
Posts: 50
Joined: Fri Sep 02, 2011 1:40 pm

Re: Turn off duplication in Greyhole

Postby rcrh » Wed Sep 28, 2011 8:25 am

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.

da9els
Posts: 25
Joined: Wed Oct 13, 2010 12:18 pm

Re: Turn off duplication in Greyhole

Postby da9els » Wed Sep 28, 2011 9:03 am

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.

rcrh
Posts: 50
Joined: Fri Sep 02, 2011 1:40 pm

Re: Turn off duplication in Greyhole

Postby rcrh » Wed Sep 28, 2011 12:13 pm

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.

da9els
Posts: 25
Joined: Wed Oct 13, 2010 12:18 pm

Re: Turn off duplication in Greyhole

Postby da9els » Wed Sep 28, 2011 2:41 pm

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.

Who is online

Users browsing this forum: No registered users and 22 guests