Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-9751

ZFS snapshot doesn't work when using RSH

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.12.0
    • Lustre 2.10.0
    • None
    • 3
    • 9223372036854775807

    Description

      build: b2_10 #2 tag-RC1

      When testing the ZFS Snapshot with Subdir Mount, I found that the lctl snapshot_* command only works with ssh, with rsh, it returns error. I have tried with both snapshot_create and list, both return the same error.

      with ssh:

      [root@onyx-69 ~]# lctl snapshot_list -d -F lustre --name test-snap
      Password: 
      
      filesystem_name: lustre
      snapshot_name: test-snap
      
      snapshot_role: MDT0000
      Password: 
      modify_time: Fri Jul  7 21:26:41 2017
      create_time: Fri Jul  7 21:26:41 2017
      snapshot_fsname: 55284e9 
      Password: 
      status: not mount
      
      snapshot_role: OST0000
      modify_time: Fri Jul  7 21:26:41 2017
      create_time: Fri Jul  7 21:26:41 2017
      snapshot_fsname: 55284e9 
      status: not mount
      

      try with same environment but with rsh option

      [root@onyx-69 ~]# lctl snapshot_list -d -F lustre --name test-snap -r rsh
      bash: zfs: command not found
      Can't list the snapshot test-snap
      [root@onyx-69 ~]# 
      

      The rsh did work between nodes.

      [root@onyx-69 ~]# rsh onyx-70
      Last login: Fri Jul  7 21:26:07 from onyx-69.onyx.hpdd.intel.com
      [root@onyx-70 ~]#
      

      Attachments

        Issue Links

          Activity

            [LU-9751] ZFS snapshot doesn't work when using RSH

            The patch has been landed to master.

            yong.fan nasf (Inactive) added a comment - The patch has been landed to master.

            Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27999/
            Subject: LU-9751 snapshot: set PATH for remote zfs commands
            Project: fs/lustre-release
            Branch: master
            Current Patch Set:
            Commit: 13fa5f46bff31d6836409383733f817989cca59d

            gerrit Gerrit Updater added a comment - Oleg Drokin (oleg.drokin@intel.com) merged in patch https://review.whamcloud.com/27999/ Subject: LU-9751 snapshot: set PATH for remote zfs commands Project: fs/lustre-release Branch: master Current Patch Set: Commit: 13fa5f46bff31d6836409383733f817989cca59d
            sarah Sarah Liu added a comment -

            #8 works! Verified with rsh, ssh and default with no problem.

            sarah Sarah Liu added a comment - #8 works! Verified with rsh, ssh and default with no problem.

            updated the patch as set 8, and simply tested it on onyx-69/70.

            yong.fan nasf (Inactive) added a comment - updated the patch as set 8, and simply tested it on onyx-69/70.
            sarah Sarah Liu added a comment -

            Here is the problem of patch #7

            1. with rsh, snapshot_create return error message but it did create the snapshot;
            2. snapshot_list/destroy with rsh still don't work

            [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test
            cannot open 'lustre-mdt1/mdt1@test': dataset does not exist
            Can't list the snapshot test
            [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r rsh
            bash: zfs: command not found
            bash: zfs: command not found
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test
            
            filesystem_name: lustre
            snapshot_name: test
            snapshot_fsname: 0cb2593 
            modify_time: Thu Jul 20 22:14:52 2017
            create_time: Thu Jul 20 22:14:52 2017
            status: not mount
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh
            bash: zfs: command not found
            Can't list the snapshot test
            [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test -r rsh
            bash: zfs: command not found
            Can't destroy the snapshot test
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh
            
            filesystem_name: lustre
            snapshot_name: test
            snapshot_fsname: 0cb2593 
            modify_time: Thu Jul 20 22:14:52 2017
            create_time: Thu Jul 20 22:14:52 2017
            status: not mount
            [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test -r ssh
            [root@onyx-69 ~]# 
            
            sarah Sarah Liu added a comment - Here is the problem of patch #7 1. with rsh, snapshot_create return error message but it did create the snapshot; 2. snapshot_list/destroy with rsh still don't work [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test cannot open 'lustre-mdt1/mdt1@test': dataset does not exist Can't list the snapshot test [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r rsh bash: zfs: command not found bash: zfs: command not found [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test filesystem_name: lustre snapshot_name: test snapshot_fsname: 0cb2593 modify_time: Thu Jul 20 22:14:52 2017 create_time: Thu Jul 20 22:14:52 2017 status: not mount [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh bash: zfs: command not found Can't list the snapshot test [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test -r rsh bash: zfs: command not found Can't destroy the snapshot test [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh filesystem_name: lustre snapshot_name: test snapshot_fsname: 0cb2593 modify_time: Thu Jul 20 22:14:52 2017 create_time: Thu Jul 20 22:14:52 2017 status: not mount [root@onyx-69 ~]# lctl snapshot_destroy -F lustre -n test -r ssh [root@onyx-69 ~]#

            Update as Sarah suggested (set 7)

            yong.fan nasf (Inactive) added a comment - Update as Sarah suggested (set 7)
            sarah Sarah Liu added a comment -

            can the PATH set to include both? I got following error..

            [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r rsh
            sh: rsh: command not found
            sh: rsh: command not found
            Can't create the snapshot test
            [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r ssh
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh
            
            filesystem_name: lustre
            snapshot_name: test
            snapshot_fsname: 5aa1a00 
            modify_time: Wed Jul 19 23:05:29 2017
            create_time: Wed Jul 19 23:05:29 2017
            status: not mount
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh
            sh: rsh: command not found
            Can't list the snapshot test
            [root@onyx-69 ~]# 
            
            
            sarah Sarah Liu added a comment - can the PATH set to include both? I got following error.. [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r rsh sh: rsh: command not found sh: rsh: command not found Can't create the snapshot test [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r ssh [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh filesystem_name: lustre snapshot_name: test snapshot_fsname: 5aa1a00 modify_time: Wed Jul 19 23:05:29 2017 create_time: Wed Jul 19 23:05:29 2017 status: not mount [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh sh: rsh: command not found Can't list the snapshot test [root@onyx-69 ~]#

            Sorry, the "PATH" should be set for "zfs/zpool", not for "rsh/ssh". I updated the patch (set 6).

            yong.fan nasf (Inactive) added a comment - Sorry, the "PATH" should be set for "zfs/zpool", not for "rsh/ssh". I updated the patch (set 6).
            sarah Sarah Liu added a comment -

            the rsh still doesn't work, the same error as before

            [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r ssh
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh
            bash: zfs: command not found
            Can't list the snapshot test
            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test
            
            filesystem_name: lustre
            snapshot_name: test
            modify_time: Tue Jul 18 17:38:29 2017
            snapshot_fsname: 19d3a51 
            create_time: Tue Jul 18 17:38:29 2017
            status: not mount
            
            
            sarah Sarah Liu added a comment - the rsh still doesn't work, the same error as before [root@onyx-69 ~]# lctl snapshot_create -F lustre -n test -r ssh [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r rsh bash: zfs: command not found Can't list the snapshot test [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test filesystem_name: lustre snapshot_name: test modify_time: Tue Jul 18 17:38:29 2017 snapshot_fsname: 19d3a51 create_time: Tue Jul 18 17:38:29 2017 status: not mount

            Sorry Sarah, it is my typo. I have updated the patch set 5

            yong.fan nasf (Inactive) added a comment - Sorry Sarah, it is my typo. I have updated the patch set 5

            People

              yong.fan nasf (Inactive)
              sarah Sarah Liu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: