[gpfsug-discuss] setxattr via policy - extended attributes - tips and hints

Marc A Kaplan makaplan at us.ibm.com
Wed Nov 22 16:51:27 GMT 2017


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20171122/4acd4920/attachment.htm>


More information about the gpfsug-discuss mailing list