SOLVED: Greyhole not pooling to two drives

tamorgen
Posts: 53
Joined: Wed Jul 17, 2013 1:48 pm

SOLVED: Greyhole not pooling to two drives

Postby tamorgen » Sun Jan 19, 2014 8:04 pm

I may be having an issue with Greyhole where it's not pooling to 2 of 7 drives. I'm not sure why it isn't. I have my shares set up for 2 copies of each share, so it should be spreading copies of my files throughout the drives. It seems to be working on 5 of the drives, but the other two have nothing written to them. I am running Amahi 7.1 on Fedora 19 from the express disc, 64 bit.

Code: Select all

[root@galactica ~]# greyhole -s Greyhole Statistics =================== Storage Pool Total - Used = Free + Trash = Possible /var/hda/files/drives/drive1/gh: 1324G - 0G = 1256G + 0G = 1256G /var/hda/files/drives/drive2/gh: 1834G - 134G = 1606G + 2G = 1608G /var/hda/files/drives/drive3/gh: 1375G - 0G = 1305G + 0G = 1305G /var/hda/files/drives/drive4/gh: 1834G - 134G = 1606G + 1G = 1608G /var/hda/files/drives/drive5/gh: 1834G - 131G = 1609G + 1G = 1610G /var/hda/files/drives/drive6/gh: 1834G - 135G = 1606G + 0G = 1606G /var/hda/files/drives/drive7/gh: 1834G - 135G = 1606G + 1G = 1607G ========================================== Total: 11867G - 669G = 10595G + 6G = 10601G
I've attached my greyhole.conf file and fstab file.

Thanks for any advise you can give me.
Attachments
fstab.txt
(1.29 KiB) Downloaded 278 times
greyhole-conf.txt
(10.73 KiB) Downloaded 271 times

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

Re: Greyhole not pooling to two drives

Postby bigfoot65 » Sun Jan 19, 2014 8:35 pm

Do the 2 drives have the /gh directory on them?
ßîgƒσστ65
Applications Manager

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

tamorgen
Posts: 53
Joined: Wed Jul 17, 2013 1:48 pm

Re: Greyhole not pooling to two drives

Postby tamorgen » Mon Jan 20, 2014 3:59 am

Do the 2 drives have the /gh directory on them?
Yeah, they are.

[root@galactica drive3]# pwd
/var/hda/files/drives/drive3
[root@galactica drive3]# ls
gh lost+found


[root@galactica drive1]# pwd
/var/hda/files/drives/drive1
[root@galactica drive1]# ls
gh lost+found
[root@galactica drive1]#

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

Re: Greyhole not pooling to two drives

Postby bigfoot65 » Mon Jan 20, 2014 12:20 pm

Not sure, but maybe the current drive algorithm never gets to those drives with only 2 copies. Remember 2 copies means only 1 copy plus the original.
#### Shares Settings ####
# Number of copies of each file you want Greyhole to keep, per Share.
# This is not the number of duplicates! 2 copies = 1 duplicate
Might try changing the number of copies or you can group drives you want files to be replicated to via the /etc/greyhole.conf file too.
## Storage Drive Selection Groups ###
# The groups you define here will be available to use in the
# drive_selection_algorithm option(s) below.
# The group names (OK, NEW, BROKEN, REMOTE in the example below) can be
# anything you'd like.
I presume you are running the latest version of hda-greyhole. If not, you can update via command line by doing:

Code: Select all

yum update hda-greyhole
ßîgƒσστ65
Applications Manager

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

tamorgen
Posts: 53
Joined: Wed Jul 17, 2013 1:48 pm

Re: Greyhole not pooling to two drives

Postby tamorgen » Tue Jan 21, 2014 9:00 am

Okay, problem solved. Err, not really a problem actually....

The greyhole algorithm that determines where to put data is based on most available drive space. Drives 1 & 3 in my case are smaller drives/partitions. Drive 1 is the bulk of my boot drive, minus the space for boot & such. Drive 3 is another 1.5 TB drive. The other drives are all 2 TB drives, so drives 1 & 3 won't start accumulating data until the free space on drives 2, 4-7 is less than or equal to the space available on drives 1 or 3.

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

Re: Greyhole not pooling to two drives

Postby bigfoot65 » Tue Jan 21, 2014 9:33 am

Like the simple ones :) Glad all is well now.
ßî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 15 guests