Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • Lustre 2.5.0
    • None
    • RHEL 6.4, Lustre master
    • 3
    • 10874

    Description

      If on server reexport sub-directory instead of root it not visible through NFS. There is no error during mount from both side NFS and Lustre but mount point is not valid.

      cd /net/l201u2/mnt/lustre && ls export
      d????????? ? ?    ?    ?            ? export
      
      stat /net/l201u2/mnt/lustre/export
      stat: cannot stat `/net/l201u2/mnt/lustre/export': Stale file handle
      

      Attachments

        Issue Links

          Activity

            [LU-4057] sub-directory NFS reexport issue

            The root cause is described in LU-2904:
            nfs defects, it does not work if the "inode::i_ino" is larger than 2^32, which is known issue.

            dmiter Dmitry Eremin (Inactive) added a comment - The root cause is described in LU-2904 : nfs defects, it does not work if the "inode::i_ino" is larger than 2^32, which is known issue.
            dmiter Dmitry Eremin (Inactive) added a comment - - edited

            The no_subtree_check option don't change behavior.

            # cat /etc/exports
            /mnt/lustre/export 192.168.1.0/24(rw,no_root_squash,no_all_squash,no_subtree_check)
            
            dmiter Dmitry Eremin (Inactive) added a comment - - edited The no_subtree_check option don't change behavior. # cat /etc/exports /mnt/lustre/export 192.168.1.0/24(rw,no_root_squash,no_all_squash,no_subtree_check)

            On NFS node:

            # mount
            l201u2:/mnt/lustre/export on /net/l201u2/mnt/lustre/export type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=192.168.1.2,clientaddr=192.168.1.1)
            # ls -la /net/l201u2/mnt/lustre
            ls: cannot access /net/l201u2/mnt/lustre/export: Stale file handle
            total 0
            dr-xr-xr-x 3 root root 0 Oct  5 16:02 .
            dr-xr-xr-x 3 root root 0 Oct  5 16:02 ..
            d????????? ? ?    ?    ?            ? export
            
            dmiter Dmitry Eremin (Inactive) added a comment - On NFS node: # mount l201u2:/mnt/lustre/export on /net/l201u2/mnt/lustre/export type nfs (rw,nosuid,nodev,intr,sloppy,vers=4,addr=192.168.1.2,clientaddr=192.168.1.1) # ls -la /net/l201u2/mnt/lustre ls: cannot access /net/l201u2/mnt/lustre/export: Stale file handle total 0 dr-xr-xr-x 3 root root 0 Oct 5 16:02 . dr-xr-xr-x 3 root root 0 Oct 5 16:02 .. d????????? ? ? ? ? ? export

            On Lustre node I launch llmount.sh and then service nfs start.

            # mount
            l201u2@tcp:/lustre on /mnt/lustre type lustre (rw,user_xattr,flock)
            # cat /etc/exports
            /mnt/lustre/export 192.168.1.0/24(rw,no_root_squash,no_all_squash)
            
            dmiter Dmitry Eremin (Inactive) added a comment - On Lustre node I launch llmount.sh and then service nfs start. # mount l201u2@tcp:/lustre on /mnt/lustre type lustre (rw,user_xattr,flock) # cat /etc/exports /mnt/lustre/export 192.168.1.0/24(rw,no_root_squash,no_all_squash)

            I can't get past the cd. Did you use no_subtree_check in /etc/exports? Can you post the /etc/exports and mount options you used?

            jhammond John Hammond added a comment - I can't get past the cd. Did you use no_subtree_check in /etc/exports? Can you post the /etc/exports and mount options you used?

            People

              dmiter Dmitry Eremin (Inactive)
              dmiter Dmitry Eremin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: