Greyhole / Sticky Files
Posted: Sun Aug 01, 2010 8:25 am
Hi guys.
I've just moved over to amahi and greyhole from WHS because of the new drive extender technology being introduced in Vail. So far I'm becoming more comfortable with greyhole, its principles and how it works. I even decided to use a third drive as the staging area thats very fast but not part of the storage pool that seems to work well.
I have a question though about the distribution of the files across the drives in the pool. I understand that the algorithim is set to always favour the drive with the most space which makes sense. However, I noticed that when copying files into the staging area that the files are then split across the physical drives even if they're part of the same folder. This means that for example when I added a movie to the share which was in two parts, the resultant location of the movie was split across both physical drives. Here's an example from my HDA.
You can see how the two parts of the same movie have been distributed across two drives. The same principle can be applied to any folder where there might be more than one file critical to the integrity of the app/movie/tune.
Another example. I noticed that music share has default sticky files set, however, I personally don't see the need to store all music on the same drive, but would like to ensure that all tracks from the same album (which are stored in their respective folders)are kept on the same drive together.
I understand that some might say, why not just use multiple copies to ensure both drives have all the data but I don't use multiple copies for my movies/music as I can always re-rip them but would always prefer for the folder its in and its contents to be stored on the same drive. I looked at sticky files as a possible solution but this only appears to keep all files in the share on the specified drive. So really my question is whether it's possible to extend the concept of sticky files so that it doesn't store the whole share on the same drive, but automatically keeps the sub-folders within the share on the same drive?
This would make life easier for me because if I did lose one of the drives or wanted to remove one of the drives from the storage pool, the folder and its relevant contents would still be in tack. Additionally power usage could also be reduced as only one drive needs to powered up to access the movie. If this functionality isn't in greyhole could it be considered a feature request?
I hope that made some sort of sense, if not just ask and I'll try to explain more clearly.
Huxy
I've just moved over to amahi and greyhole from WHS because of the new drive extender technology being introduced in Vail. So far I'm becoming more comfortable with greyhole, its principles and how it works. I even decided to use a third drive as the staging area thats very fast but not part of the storage pool that seems to work well.
I have a question though about the distribution of the files across the drives in the pool. I understand that the algorithim is set to always favour the drive with the most space which makes sense. However, I noticed that when copying files into the staging area that the files are then split across the physical drives even if they're part of the same folder. This means that for example when I added a movie to the share which was in two parts, the resultant location of the movie was split across both physical drives. Here's an example from my HDA.
Code: Select all
find -name "*A Space Odyssey*.avi"
./sdc1/gh/Movies/Standard Definition/2001/2001 - A Space Odyssey Pt1.avi
./sdb1/gh/Movies/Standard Definition/2001/2001 - A Space Odyssey Pt2.avi
Another example. I noticed that music share has default sticky files set, however, I personally don't see the need to store all music on the same drive, but would like to ensure that all tracks from the same album (which are stored in their respective folders)are kept on the same drive together.
I understand that some might say, why not just use multiple copies to ensure both drives have all the data but I don't use multiple copies for my movies/music as I can always re-rip them but would always prefer for the folder its in and its contents to be stored on the same drive. I looked at sticky files as a possible solution but this only appears to keep all files in the share on the specified drive. So really my question is whether it's possible to extend the concept of sticky files so that it doesn't store the whole share on the same drive, but automatically keeps the sub-folders within the share on the same drive?
This would make life easier for me because if I did lose one of the drives or wanted to remove one of the drives from the storage pool, the folder and its relevant contents would still be in tack. Additionally power usage could also be reduced as only one drive needs to powered up to access the movie. If this functionality isn't in greyhole could it be considered a feature request?
I hope that made some sort of sense, if not just ask and I'll try to explain more clearly.
Huxy