On 01/25/17 14:15, Wendy Poole wrote:
Is there a way to set up policies so that a file would be restriped if
size > (given size) and the stripe_count < (desired stripe) ,
last_access > 1d and then action = cmd("lfs migrate -c {new_stripe}
{fullpath}) Is there a particular status_manager you should use as well ?
It should be doable... except the "stripe_count" attribute is not
implemented for policy rules. What a pity!
This is definitely a lack that should be fixed...
I don't think it needs a particular status manager, except if you only
want to move entries once.
The policy could be something like:
define_policy restripe {
scope { type == file }
status_manager = none;
default_action = cmd("lfs migrate -c {new_stripe} {fullpath});
lru_sort_attr = none; # preferably last_mod, but its really too
expensive to
}
Note you can specify "new_stripe" parameter directly in fileclass
definitions, like this
fileclass small {
definition { size < 16MB and stripe_count > 1 }
restripe_action_params { new_stripe = 1 }
}
fileclass medium {
definition { size >= 16MB and size < 1GB and stripe_count != 2 }
restripe_action_params { new_stripe = 2 }
}
....
then rules:
restripe_rules {
rume default {
condition { last_access > 1d }
}
}
I have tried some things but get errors reported for policy settings
or it doesn't behave as expected.
Thanks,
Wendy
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
robinhood-support mailing list
robinhood-support@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/robinhood-support