setxattr via policy - extended attributes - tips and hints
Nov. 22, 2017
4:51 p.m.
Assuming you have a recent version of Spectrum Scale... You can use ACTION(SetXattr(...)) in mmapplypolicy {MIGRATE,LIST} rules and/or in {SET POOL} rules that are evaluated at file creation time. Later... You can use WHERE .... Xattr(...) in any policy rules to test/compare an extended attribute. But watch out for NULL! See the "tips" section of the ILM chapter of the admin guide for some ways to deal with NULL (hints: COALESCE , expr IS NULL, expr IS NOT NULL, CASE ... ) See also mm{ch|ls}attr -d -X --hex-attr and so forth. Also can be used compatibly with {set|get}fattr on Linux --marc
3290
Age (days ago)
3290
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marc A Kaplan
