Possible bug with stickies and similarly named Shares?
Posted: Sat May 07, 2011 8:35 am
Hi,
I've been trying to work out why something weird is going on with my Greyhole pool, and I reckon it's caused by similarly named Shares both using the same "sticky_files" info, rather than their own.
Basically, I initially had a Share called "TV_Series" with the following sticky info in the greyhole.yml file:
- - TV_Series/
- - /var/hda/files/drives/drive3/gh
- /var/hda/files/drives/drive4/gh
I ran the above 2 drives as a kind of RAID1 (ie in Amahi, the share was set up to "use the Pool" and create "1 extra copy", and with the landing zone of "/var/hda/files/drives/drive3/TV_Series").
All was well until I ran out of space on both drives, and hence needed to extend the storage, so I go a new pair of drives (drive7 and drive8). Now since there doesn't seem a way to create a RAID10 type of arrangement so that I can split the share over 2 pairs of drives (ie drive3 mirrored with drive4, and drive7 mirrored with drive8), I thought I'd create another Share, called "TV_Series2". It was set up in the same way, but with the LZ as "/var/hda/files/drives/drive7/TV_Series2", and with the following added in greyhole.yml:
- - TV_Series2/
- - /var/hda/files/drives/drive7/gh
- /var/hda/files/drives/drive8/gh
The problem was, whenever files were added to this new share, Greyhole would copy them onto drive3 and drive4 instead, even though they were both nearly full and both drive7 and drive8 were completely empty 2TB drives! I then tried creating different new Share names (eg "TV_Series_2", "TV_Series_Two", etc), but all would do exactly the same. So I then thought this must be an issue with the code I'd put into greyhole.yml, However, then I created a new share called "New_Share" and changed the yml file to be as follows:
- - TV_Series2/
- - New_Share/
- - /var/hda/files/drives/drive7/gh
- /var/hda/files/drives/drive8/gh
This worked (ie stuff correctly got copied to drive7 and drive8).
So, my thinking is that it can only be an issue with Greyhole only PARTIALLY matching the share name (ie if you search for "TV_Series", then it'll match both "TV_Series", "TV_Series2" and "TV_Series_Two") when it does a lookup to see if any sticky info is stored?
Any help would be gratefully appreciated...
I've been trying to work out why something weird is going on with my Greyhole pool, and I reckon it's caused by similarly named Shares both using the same "sticky_files" info, rather than their own.
Basically, I initially had a Share called "TV_Series" with the following sticky info in the greyhole.yml file:
- - TV_Series/
- - /var/hda/files/drives/drive3/gh
- /var/hda/files/drives/drive4/gh
I ran the above 2 drives as a kind of RAID1 (ie in Amahi, the share was set up to "use the Pool" and create "1 extra copy", and with the landing zone of "/var/hda/files/drives/drive3/TV_Series").
All was well until I ran out of space on both drives, and hence needed to extend the storage, so I go a new pair of drives (drive7 and drive8). Now since there doesn't seem a way to create a RAID10 type of arrangement so that I can split the share over 2 pairs of drives (ie drive3 mirrored with drive4, and drive7 mirrored with drive8), I thought I'd create another Share, called "TV_Series2". It was set up in the same way, but with the LZ as "/var/hda/files/drives/drive7/TV_Series2", and with the following added in greyhole.yml:
- - TV_Series2/
- - /var/hda/files/drives/drive7/gh
- /var/hda/files/drives/drive8/gh
The problem was, whenever files were added to this new share, Greyhole would copy them onto drive3 and drive4 instead, even though they were both nearly full and both drive7 and drive8 were completely empty 2TB drives! I then tried creating different new Share names (eg "TV_Series_2", "TV_Series_Two", etc), but all would do exactly the same. So I then thought this must be an issue with the code I'd put into greyhole.yml, However, then I created a new share called "New_Share" and changed the yml file to be as follows:
- - TV_Series2/
- - New_Share/
- - /var/hda/files/drives/drive7/gh
- /var/hda/files/drives/drive8/gh
This worked (ie stuff correctly got copied to drive7 and drive8).
So, my thinking is that it can only be an issue with Greyhole only PARTIALLY matching the share name (ie if you search for "TV_Series", then it'll match both "TV_Series", "TV_Series2" and "TV_Series_Two") when it does a lookup to see if any sticky info is stored?
Any help would be gratefully appreciated...