[gpfsug-discuss] Changing filesystem from -k all to -k nfs4 with mmchfs

Ryan Novosielski novosirj at rutgers.edu
Fri Sep 30 15:58:48 BST 2022


I don’t need this information now, but I can imagine it would be very helpful if I found myself where you were, so I just wanted to take a moment and thank you for taking the time!

--
#BlackLivesMatter
____
|| \\UTGERS,    |---------------------------*O*---------------------------
||_// the State  |         Ryan Novosielski - novosirj at rutgers.edu<mailto:novosirj at rutgers.edu>
|| \\ University | Sr. Technologist - 973/972.0922 (2x0922) ~*~ RBHS Campus
||  \\    of NJ  | Office of Advanced Research Computing - MSB C630, Newark
     `'

On Sep 29, 2022, at 3:14 PM, Losen, Stephen C (scl) <scl at virginia.edu<mailto:scl at virginia.edu>> wrote:

Hi folks,
Recently I asked what happens when you use “mmchfs -k nfs4” when you already have numerous files (we have millions) with posix ACLs. I have discovered the answer – NOTHING.  No existing ACLs change. However, you cannot feed posix ACLs to mmputacl, it only accepts nfs4 ACLs. You cannot run setfacl, it fails. If you run mmgetacl it shows the ACL in nfs4 format. But if you use mmgetacl -k native it shows you the “real” ACL, which may be a posix ACL. If you have a default posix ACL set on a directory, new files inherit from the posix ACL and they themselves end up with a posix ACL. The behavior of chmod is different. If a file has a nfs4 ACL then chmod destroys it and replaces it with a nfs4 ACL that essentially mimics the permissions set by the chmod command. In particular, the new ACL only has ACEs for special:owner@, special:group@, and special:everyone at . Any other ACEs are lost. However, if the file has a posix ACL, then chmod  works as expected for a posix ACL. It does not completely replace the ACL, but it may change the mask:: entry or the user:: entry or the other:: entry. If you set a nfs4 ACL on a file with a posix ACL, then it converts to a nfs4 ACL (mmgetacl -k native outputs the nfs4 ACL).

Needless to say this is all rather confusing, but we had to run mmchfs -k nfs4 in order to enable SMB access, which we need.

Steve Losen
Research Computing
University of Virginia
scl at virginia.edu<mailto:scl at virginia.edu>  434-924-0640
_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at gpfsug.org<http://gpfsug.org/>
http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20220930/77426fe5/attachment-0002.htm>


More information about the gpfsug-discuss mailing list