Hello Wendy,
Yes, this is what I told in my previous mail.
""stripe_count" attribute is not implemented for policy rules. This is
definitely a lack that should be fixed..."
Thomas
Le 06/02/2017 à 14:16, Wendy Poole a écrit :
Thanks for the reply. I had tried something very similar to the above
but got :
Error 22 reading policies configuration:
Unknown or unsupported criteria 'stripe_count' . line 138
On Tue, Jan 31, 2017 at 8:48 AM, LEIBOVICI Thomas
<thomas.leibov...@cea.fr <mailto:thomas.leibov...@cea.fr>> wrote:
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
<mailto:robinhood-support@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/robinhood-support
<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
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus
------------------------------------------------------------------------------
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