Tuesday, April 29, 2014

(Lustre) Best practice for changing file permissions

On a Lustre filesystem, don't use chmod/chgrp/chown by themselves.

The best method incorporates the lfs find command:
lfs find <subdirectory> | xargs chgrp <new group>
chmod or chown commands with -R option (or using the normal find) are not very fast if the subdirectory contains lots of files.

3 comments :

  1. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement the concept. Thank you for the post.
    Lustre

    ReplyDelete
  2. Keep up the good work; I read few posts on this website, including I consider that your blog is fascinating and has sets of the fantastic piece of information. Thanks for your valuable efforts. BinaryToday.com

    ReplyDelete
  3. Much appreciated, was looking for a quick reference to accomplish this without nuking the metadata servers.

    ReplyDelete