Change "Extra Copies" in Greyhole

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Change "Extra Copies" in Greyhole

Postby sleife » Wed Nov 07, 2012 1:20 pm

Hey everybody

Short but important question for me. Can i change the "extra copies" Parameter in Storage pool from "always max" to 2 or 3 ?
What i have to attend?

Look at the picture :)
Attachments
share.png
share.png (16.19 KiB) Viewed 2740 times

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Change "Extra Copies" in Greyhole

Postby bigfoot65 » Thu Nov 08, 2012 7:38 am

Yes you can, it's your choice. Keep in mind that reducing it from Max will change where copies of your files are stored. Greyhole has a formula to do that, but should one drive go bad and it has the only copy of a file, you would lose it.

The number of copies is based on how many drives are in the storage pool of course, so if you only have 3, changing it to 1 or 2 will not give you 100% redundancy for recovery.

I may be mistaken, but that is the way I understand it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Change "Extra Copies" in Greyhole

Postby sleife » Sat Nov 10, 2012 6:18 am

But If I chose 1 copy. then i have to 2 copies of the file?

Beacuse the original file and the copy file iam right with this?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Change "Extra Copies" in Greyhole

Postby bigfoot65 » Sat Nov 10, 2012 6:33 am

Not 100% sure as I have mine set to max. I have a symlink in my share and 1 copy on each drive, with is 3. So technically I only have 3 real copies.

I am no expert, but it appears that anytime you set copies to less than max, but at least 1 there will be a symlink created in your share. It will point to 1 copy of the file on other drives.

My thought is if you are running with 1 OS drive and 1 Greyhole drive, setting it to 1 would yield only 1 real copy in theory. Then if that 1 Greyhole drive dies, you would have a symlink pointing to nowhere. Not sure if that is correct, but that's the way I see it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

theophobus
Posts: 7
Joined: Mon Oct 08, 2012 3:42 am

Re: Change "Extra Copies" in Greyhole

Postby theophobus » Sun Nov 11, 2012 2:58 am

But If I chose 1 copy. then i have to 2 copies of the file?

Beacuse the original file and the copy file iam right with this?
Correct! But it takes some time until greyhole deletes the extra copy, you can force a fsck and do not forget to clean your attic. I have standard of +1 and for more precious data i max out.

sleife
Posts: 79
Joined: Tue Nov 02, 2010 2:56 am

Re: Change "Extra Copies" in Greyhole

Postby sleife » Sun Nov 11, 2012 4:18 am

Ok thank you.

When i change the Number of copies, how long does it take if greyhole runs the --fsck and clean the attic?
Is this done in 1-2 days or 1 week?
Just for my information , i didn't find anything in the internet.

theophobus
Posts: 7
Joined: Mon Oct 08, 2012 3:42 am

Re: Change "Extra Copies" in Greyhole

Postby theophobus » Sun Nov 11, 2012 6:32 am

Ok thank you.

When i change the Number of copies, how long does it take if greyhole runs the --fsck and clean the attic?
Is this done in 1-2 days or 1 week?
Just for my information , i didn't find anything in the internet.
greyhole usually does a regular fsck on a daily base, as far as I know. You have always to clean the attic by yourself. How long the downgrade will run depends on your amount of data.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: Change "Extra Copies" in Greyhole

Postby bigfoot65 » Sun Nov 11, 2012 7:01 pm

If you want to force Greyhole to do it on your schedule, you can do it via command line.

As root user (F14), do:

Code: Select all

greyhole -f
For Ubuntu, it's:

Code: Select all

sudo greyhole -f
You can monitor the log at /var/log/greyhole.log file.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 59 guests