Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Lustre 2.4.0, Lustre 2.1.4
    • Lustre 2.3.0, Lustre 2.4.0
    • 4403

    Description

      some distros (like Fedora 16) link /etc/mtab to /proc/mounts. In such distros, mount.lustre cannot update mtab otherwise we false alarm user with errors.

      Attachments

        Issue Links

          Activity

            [LU-1833] Don't update mtab if it is symlink

            Patch to switch to from readpath to realpath. Can confirm it works with my indirect symlink. Haven't tested a non-symlink setup.

            twhitehead Tyson Whitehead (Inactive) added a comment - Patch to switch to from readpath to realpath. Can confirm it works with my indirect symlink. Haven't tested a non-symlink setup.

            Would add that this patch doesn't work on recent fedora as systemd creates /etc/mtab as a symlink to ../proc/self/mounts which doesn't match the check for it starting with /proc/.

            $ readlink /etc/mtab
            ../proc/self/mounts

            A simple hack would be to switch to strstr to see if the symlink contains /proc/ anywhere in it or, to be 100% correct, use realpath to fully get the canonical absolute path.

            $ realpath /etc/mtab
            /proc/19506/mounts

            Cheers! -Tyson

            twhitehead Tyson Whitehead (Inactive) added a comment - Would add that this patch doesn't work on recent fedora as systemd creates /etc/mtab as a symlink to ../proc/self/mounts which doesn't match the check for it starting with /proc/. $ readlink /etc/mtab ../proc/self/mounts A simple hack would be to switch to strstr to see if the symlink contains /proc/ anywhere in it or, to be 100% correct, use realpath to fully get the canonical absolute path. $ realpath /etc/mtab /proc/19506/mounts Cheers! -Tyson

            Gentoo. Client code was build from master + some patches to make 3.8 kernel work

            alexxy Alexey Shvetsov (Inactive) added a comment - Gentoo. Client code was build from master + some patches to make 3.8 kernel work

            What distro are you using?

            keith Keith Mannthey (Inactive) added a comment - What distro are you using?

            This bug still here on 2.4
            delta ~ # mount.lustre bootsrv@tcp:/home /home
            mount.lustre: addmntent: Invalid argument:

            ls -l /etc/mtab
            lrwxrwxrwx 1 root root 14 Jun 21 2011 /etc/mtab -> ../proc/mounts

            alexxy Alexey Shvetsov (Inactive) added a comment - This bug still here on 2.4 delta ~ # mount.lustre bootsrv@tcp:/home /home mount.lustre: addmntent: Invalid argument: ls -l /etc/mtab lrwxrwxrwx 1 root root 14 Jun 21 2011 /etc/mtab -> ../proc/mounts
            pjones Peter Jones added a comment -

            Carlos

            This fix was included in the 2.1.4 release. Ihara has already ported the fix to b1_8 and that patch can be applied anywhere that needs it.

            Peter

            pjones Peter Jones added a comment - Carlos This fix was included in the 2.1.4 release. Ihara has already ported the fix to b1_8 and that patch can be applied anywhere that needs it. Peter

            Hi.
            Another DDN customer is concerning about this issue. Running Lustre 2.1.3
            Any feedback if this patch will be backported to 2.1 and 1.8 versions?

            Thanks
            Carlos.

            cthomaz Carlos Thomaz added a comment - Hi. Another DDN customer is concerning about this issue. Running Lustre 2.1.3 Any feedback if this patch will be backported to 2.1 and 1.8 versions? Thanks Carlos.

            Although this was already closed, we needed this backport patches to b2_1 and b1_8 for diskless lustre environment.

            http://review.whamcloud.com/#change,4786 (b1_8)
            http://review.whamcloud.com/#change,4785 (b2_1)

            ihara Shuichi Ihara (Inactive) added a comment - Although this was already closed, we needed this backport patches to b2_1 and b1_8 for diskless lustre environment. http://review.whamcloud.com/#change,4786 (b1_8) http://review.whamcloud.com/#change,4785 (b2_1)
            pjones Peter Jones added a comment -

            Landed for 2.4

            pjones Peter Jones added a comment - Landed for 2.4
            bergwolf Peng Tao added a comment - patch submitted: http://review.whamcloud.com/3881

            People

              keith Keith Mannthey (Inactive)
              bergwolf Peng Tao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: