Wednesday, May 6, 2015

cp preserving permissions for | Operation not supported | NFS

This issue was in Exalogic ZFS , when we had exported shares via NFS3 over to few Linux Guest VMs.

 [root@dummyserver uxyz]# cp -p /uxyz/log.txt /uxyz/test.log  
 cp: preserving permissions for `/uxyz/test.log': Operation not supported  

----As you can see + sign for ACL permissions

 [root@dummyserver ~]# cd /uxyz  
 [root@dummyserver uxyz]# ll  
 -rw-r--r--+ 1 appUSER dba 0 May 6 15:59 bkp.txt  
 drwxr-sr-x+ 3 appUSER dba 3 Apr 25 02:22 home  
 -rw-r--r--+ 1 appUSER dba 0 May 6 15:59 log.txt  
 -rw-r--r--+ 1 appUSER dba 0 May 6 15:59 test.txt  

/etc/fstab file entry looked like this .

 000.00.0.9:/export/share-2-uxyz     /uxyz      nfs rw,nointr,bg,hard,timeo=600,wsize=65536,rsize=65536,nfsvers=3,tcp  

--to overcome this issue. append "noacl" at end of line.

 000.00.0.9:/export/share-2-uxyz     /uxyz      nfs rw,nointr,bg,hard,timeo=600,wsize=65536,rsize=65536,nfsvers=3,tcp,noacl  

----dont try to mount -o noacl,remount /u11
----unmount properly

 [root@dummyserver ~]# umount /uxyz  
 [root@dummyserver ~]# mount /uxyz  

------Magic. .

 [appUSER@dummyserver ~]$ cp -p /uxyz/log.txt /uxyz/test.log  
 [appUSER@dummyserver ~]$ ll  

-----There is no + sign for ACL.

 [root@dummyserver uxyz]# ll  
 total 10  
 -rw-r--r-- 1 appUSER dba 0 May 6 15:59 bkp.txt  
 drwxr-sr-x 3 appUSER dba 3 Apr 25 02:22 home  
 -rw-r--r-- 1 appUSER dba 0 May 6 15:59 log.txt  
 -rw-r--r-- 1 appUSER dba 0 May 6 15:59 test.log  
 -rw-r--r-- 1 appUSER dba 0 May 6 15:59 test.txt  

---Reference.

Solaris 10 NFS client fails in ACL or permissions when copying files to Linux NFS server (Doc ID 1917349.1)
cp ACL Error Creating OSB Domain, 'Operation not supported' (Doc ID 1959764.1)

No comments:

Post a Comment