gboudreau/Greyhole — Issue #39: Cannot get "most_available_space" to work.
Author: psampaio
Created: 2011-12-01 20:13:37+00:00
State: open

Hi.

I posted this at #greyhole, but I believe it was Thanksgiving, and didn't manage to get an answer. I figured this would be a good place to see what I'm doing wrong.

I started with one 2TB drive, mounted as "/var/storage/drives/hdd0" and added it to greyhole.conf as "storage_pool_directory = /var/storage/drives/hdd0/gh, min_free: 10gb "
. I've added recently a second drive mounted as hdd1, but greyhole keeps filling the first drive, and that one is almost full while the new 1TB is almost empty
.

The new drive has the "gh" dir in it with the metastore stuff in it, so greyhole recognizes it
, and I have "dir_selection_algorithm = most_available_space" in the conf
ig. I've even tried with the dir_selection_groups, to see if would make any difference or not, but it doesn't
. I also tried setting df_cache_time = 0, doesn't work
.

Running greyhole --stats outputs this: http://pastebin.com/cWtexGuJ

Even if I try to add a file to a share that is configured for 100 copies, the new drive doesn't get the file
.

Here are the relevant parts of greyhole.conf -> http://pastebin.com/kztdijgk

(note: the dir_selection_group line got cropped, but the rest of it is for hdd1)

Can someone help me fix this?