Jordan Schweller
2006-Oct-24 13:50 UTC
[Lustre-discuss] nfs export problem with symbolic links
Hello Group, I am testing the NFS export capabilities of lustre 1.6b5. I have successfully mounted the filesystem on the nfs client, but I get errors with symbolic links. Here is the example: pria:/mnt/sfsmall 845G 4.1G 798G 1% /mnt/lustre [root@sanjay lustre]# mount | grep pria pria:/mnt/sfsmall on /mnt/lustre type nfs (rw,hard,addr=<HOST_IP>) [root@sanjay test]# pwd /mnt/lustre/test [root@sanjay test]# ls -l /tmp/ total 4 drwxr-xr-x 3 root root 4096 Oct 24 15:40 symlink-test [root@sanjay test]# ls -l /tmp/symlink-test/ total 8 lrwxrwxrwx 1 root root 5 Oct 24 15:40 dir -> dir01 drwxr-xr-x 2 root root 4096 Oct 24 15:40 dir01 -rw-r--r-- 1 root root 3 Oct 24 15:37 file lrwxrwxrwx 1 root root 4 Oct 24 15:38 file-link -> file [root@sanjay test]# ls -ld . drwxrwxrwx 2 root root 135168 Oct 24 15:41 . **** Now the interesting bits: [root@sanjay test]# cp -R /tmp/symlink-test . [root@sanjay test]# ls -l symlink-test/ total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link [root@sanjay test]# sync [root@sanjay test]# ls -l symlink-test/ total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link [root@sanjay test]# cd symlink-test/ [root@sanjay symlink-test]# ls -l total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link [root@sanjay symlink-test]# ln -s file file-link2 [root@sanjay symlink-test]# ls -l total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link ?--------- ? ? ? ? ? file-link2 [root@sanjay symlink-test]# ll total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link ?--------- ? ? ? ? ? file-link2 I should be able to write here as root (nfsnobody). ------------------------------------------------ Now, note that on the NFS server (the lustre client), I see this at this point: root@pria:/mnt/sfsmall/test/symlink-test $ ls -l total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:42 file ?--------- ? ? ? ? ? file-link ?--------- ? ? ? ? ? file-link2 root@pria:/mnt/sfsmall/test/symlink-test $ touch file root@pria:/mnt/sfsmall/test/symlink-test $ ls -l total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:44 file lrwxrwxrwx 1 nfsnobody nfsnobody 4 Oct 24 15:42 file-link -> file lrwxrwxrwx 1 nfsnobody nfsnobody 4 Oct 24 15:42 file-link2 -> file (It "healed" itself) ------------------------------------------------ And Lastly, to complete the circle on the NFS client: [root@sanjay symlink-test]# touch file2 [root@sanjay symlink-test]# ls -l total 8 lrwxrwxrwx 1 nfsnobody nfsnobody 5 Oct 24 15:42 dir -> dir01 drwxr-xr-x 2 nfsnobody nfsnobody 4096 Oct 24 15:42 dir01 -rw-r--r-- 1 nfsnobody nfsnobody 3 Oct 24 15:44 file -rw-r--r-- 1 nfsnobody nfsnobody 0 Oct 24 15:45 file2 lrwxrwxrwx 1 nfsnobody nfsnobody 4 Oct 24 15:42 file-link -> file lrwxrwxrwx 1 nfsnobody nfsnobody 4 Oct 24 15:42 file-link2 -> file (It "healed" itself) ------------------------------------------------ Is this how things are supposed to behave? It seems like there is a bug somewhere in the lustre/nfs interface. Thanks! -- Jordan Schweller Systems Developer/Engineer * (E): jordan@osc.edu * (V): 937.328.5708 * (F): 937.322.7869 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://mail.clusterfs.com/pipermail/lustre-discuss/attachments/20061024/ea43610f/attachment.bin