<div class="socmaildefaultfont" dir="ltr" style="font-family:Arial, Helvetica, sans-serif;font-size:10.5pt" ><div dir="ltr" >Hi Ilan,</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >1. Your command might work from the server side; you said you tried it from the client side. Could you find anything in the docs about this? I could not.</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >2. I can share this NFSv4-themed wrapper around mmputacl if it would be useful to you. You would have to run it from the GPFS side, not the NFS client side.</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >Regards,</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" >Jamie</div>
<div dir="ltr" >&nbsp;</div>
<div dir="ltr" ><div># ./updateNFSv4ACL -h<br>Update the NFSv4 ACL governing a file's access permissions.<br>&nbsp; Appends to the existing ACL, overwriting conflicting permissions.</div>
<div>Usage: ./updateNFSv4ACL -file /path/to/file { ADD_PERM_SPEC | DEL_PERM_SPEC }+<br>&nbsp; ADD_PERM_SPEC: { -owningUser PERM | -owningGroup PERM | -other PERM | -ace nameType:name:PERM:aceType }<br>&nbsp; DEL_PERM_SPEC: { -noACEFor nameType:name }<br>&nbsp; PERM: Specify a string composed of one or more of the following letters in no particular order: &nbsp;<br>&nbsp;&nbsp;&nbsp; r (ead)<br>&nbsp;&nbsp;&nbsp; w (rite)<br>&nbsp;&nbsp;&nbsp; a (ppend)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Must agree with write<br>&nbsp;&nbsp;&nbsp; x (execute)<br>&nbsp;&nbsp;&nbsp; d (elete)<br>&nbsp;&nbsp;&nbsp; D (elete child)&nbsp;&nbsp;&nbsp; Dirs only<br>&nbsp;&nbsp;&nbsp; t (read attrs)<br>&nbsp;&nbsp;&nbsp; T (write attrs)<br>&nbsp;&nbsp;&nbsp; c (read ACL)<br>&nbsp;&nbsp;&nbsp; C (write ACL)<br>&nbsp;&nbsp;&nbsp; o (change owner)<br>&nbsp; You can also provide these, but they will have no effect in GPFS:<br>&nbsp;&nbsp;&nbsp; n (read named attrs)<br>&nbsp;&nbsp;&nbsp; N (write named attrs)<br>&nbsp;&nbsp;&nbsp; y (support synchronous I/O)<br>&nbsp;<br>&nbsp; To indicate no permissions, give a -</div>
<div>&nbsp; nameType: 'user' or 'group'.<br>&nbsp; aceType:&nbsp; 'allow' or 'deny'.</div>
<div>Examples: ./updateNFSv4ACL -file /fs1/f -owningUser rtc -owningGroup rwaxdtc -other '-'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assign these permissions to 'owner', 'group', 'other'.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./updateNFSv4ACL -file /fs1/f -ace 'user:pfs001:rtc:allow' -noACEFor 'group:fvt001'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Allow user pfs001 read/read attrs/read ACL permission<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Remove all ACEs (allow and deny) for group fvt001.<br>Notes:<br>&nbsp; Permissions you do not allow are denied by default.<br>&nbsp; See the GPFS docs for some other restrictions.<br>&nbsp; ace is short for Access Control Entry</div></div>
<div dir="ltr" >&nbsp;</div>
<blockquote data-history-content-modified="1" dir="ltr" style="border-left:solid #aaaaaa 2px; margin-left:5px; padding-left:5px; direction:ltr; margin-right:0px" >----- Original message -----<br>From: Ilan Schwarts &lt;ilan84@gmail.com&gt;<br>Sent by: gpfsug-discuss-bounces@spectrumscale.org<br>To: gpfsug main discussion list &lt;gpfsug-discuss@spectrumscale.org&gt;<br>Cc:<br>Subject: [gpfsug-discuss] How to use nfs4_getfacl (or set) on GPFS cluster<br>Date: Mon, Aug 7, 2017 9:27 AM<br>&nbsp;
<div><font size="2" face="Default Monospace,Courier New,Courier,monospace" >Hi all,<br>My setup is 2 nodes GPFS and 1 machine as NFS Client.<br>All machines (3 total) run CentOS 7.2<br><br>The 3rd CentOS machine (not part of the cluster) used as NFS Client.<br><br>I mount the NFS Client machine to one of the nodes: mount -t nfs<br>10.10.158.61:/fs_gpfs01/nfs /mnt/nfs4<br><br>This gives me the following:<br><br>[root@CentOS7286-64 ~]# mount -v | grep gpfs<br>10.10.158.61:/fs_gpfs01/nfs on /mnt/nfs4 type nfs4<br>(rw,relatime,vers=4.0,rsize=524288,wsize=524288,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=10.10.149.188,local_lock=none,addr=10.10.158.61)<br><br>Now, From the Client NFS Machine, I go to the mount directory ("cd<br>/mnt/nfs4") and try to set an acl. Since NFSv4 should be supported, I<br>use nfs4_getfacl:<br>[root@CentOS7286-64 nfs4]# nfs4_getfacl mydir11<br>Operation to request attribute not supported.<br>[root@CentOS7286-64 nfs4]#<br><br>From the NODE machine i see the status:<br>[root@LH20-GPFS1 fs_gpfs01]# mmlsfs fs_gpfs01<br>flag &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;value &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;description<br>------------------- ------------------------ -----------------------------------<br>&nbsp;-f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8192 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Minimum fragment size in bytes<br>&nbsp;-i &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4096 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Inode size in bytes<br>&nbsp;-I &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 16384 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Indirect block size in bytes<br>&nbsp;-m &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Default number of metadata replicas<br>&nbsp;-M &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Maximum number of metadata replicas<br>&nbsp;-r &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Default number of data replicas<br>&nbsp;-R &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Maximum number of data replicas<br>&nbsp;-j &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cluster &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Block allocation type<br>&nbsp;-D &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfs4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; File locking semantics in effect<br>&nbsp;-k &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nfs4 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ACL semantics in effect<br>&nbsp;-n &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Estimated number of nodes<br>that will mount file system<br>&nbsp;-B &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 262144 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Block size<br>&nbsp;-Q &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quotas accounting enabled<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Quotas enforced<br>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Default quotas enabled<br>&nbsp;--perfileset-quota No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Per-fileset quota enforcement<br>&nbsp;--filesetdf &nbsp; &nbsp; &nbsp; &nbsp;No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Fileset df enabled?<br>&nbsp;-V &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 16.00 (4.2.2.0) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File system version<br>&nbsp;--create-time &nbsp; &nbsp; &nbsp;Wed Jul &nbsp;5 12:28:39 2017 File system creation time<br>&nbsp;-z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Is DMAPI enabled?<br>&nbsp;-L &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 4194304 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Logfile size<br>&nbsp;-E &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Exact mtime mount option<br>&nbsp;-S &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Suppress atime mount option<br>&nbsp;-K &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; whenpossible &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Strict replica allocation option<br>&nbsp;--fastea &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fast external attributes enabled?<br>&nbsp;--encryption &nbsp; &nbsp; &nbsp; No &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Encryption enabled?<br>&nbsp;--inode-limit &nbsp; &nbsp; &nbsp;171840 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Maximum number of inodes<br>in all inode spaces<br>&nbsp;--log-replicas &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Number of log replicas<br>&nbsp;--is4KAligned &nbsp; &nbsp; &nbsp;Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;is4KAligned?<br>&nbsp;--rapid-repair &nbsp; &nbsp; Yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rapidRepair enabled?<br>&nbsp;--write-cache-threshold 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HAWC Threshold (max 65536)<br>&nbsp;-P &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; system &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Disk storage pools in file system<br>&nbsp;-d &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nynsd1;nynsd2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Disks in file system<br>&nbsp;-A &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Automatic mount option<br>&nbsp;-o &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; none &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Additional mount options<br>&nbsp;-T &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /fs_gpfs01 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Default mount point<br>&nbsp;--mount-priority &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Mount priority<br><br><br><br>I saw this thread:<br><a href="https://serverfault.com/questions/655112/nfsv4-acls-on-gpfs/722200" target="_blank" >https://serverfault.com/questions/655112/nfsv4-acls-on-gpfs/722200</a><br><br>Is it still relevant ? Since 2014..<br><br>Thanks !<br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at spectrumscale.org<br><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss" target="_blank" >http://gpfsug.org/mailman/listinfo/gpfsug-discuss</a></font><br>&nbsp;</div></blockquote>
<div dir="ltr" >&nbsp;</div></div><BR>