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

            Fan Yong (fan.yong@intel.com) uploaded a new 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: 1
            Commit: aaadad709778cba02bdb22aaac17613df63356e2

            gerrit Gerrit Updater added a comment - Fan Yong (fan.yong@intel.com) uploaded a new 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: 1 Commit: aaadad709778cba02bdb22aaac17613df63356e2
            sarah Sarah Liu added a comment -

            env is
            MDS/MDT onyx-69
            OST onyx-70
            client onyx-23vm1

            [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh
            
            filesystem_name: lustre
            snapshot_name: test
            snapshot_fsname: 7cf6c78 
            create_time: Tue Jul 11 18:55:53 2017
            modify_time: Tue Jul 11 18:55:53 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_list -F lustre -n test
            
            filesystem_name: lustre
            snapshot_name: test
            snapshot_fsname: 7cf6c78 
            create_time: Tue Jul 11 18:55:53 2017
            modify_time: Tue Jul 11 18:55:53 2017
            status: not mount
            
            
            sarah Sarah Liu added a comment - env is MDS/MDT onyx-69 OST onyx-70 client onyx-23vm1 [root@onyx-69 ~]# lctl snapshot_list -F lustre -n test -r ssh filesystem_name: lustre snapshot_name: test snapshot_fsname: 7cf6c78 create_time: Tue Jul 11 18:55:53 2017 modify_time: Tue Jul 11 18:55:53 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_list -F lustre -n test filesystem_name: lustre snapshot_name: test snapshot_fsname: 7cf6c78 create_time: Tue Jul 11 18:55:53 2017 modify_time: Tue Jul 11 18:55:53 2017 status: not mount

            Thanks Sarah. If you still have the environment, I can login and try by myself.

            yong.fan nasf (Inactive) added a comment - Thanks Sarah. If you still have the environment, I can login and try by myself.
            sarah Sarah Liu added a comment -

            yes, before rsh, it failed with ssh since I didn't setup the keyless. Then I want to try with the easy way(rsh) and failed.
            I will try the commands and update you.

            sarah Sarah Liu added a comment - yes, before rsh, it failed with ssh since I didn't setup the keyless. Then I want to try with the easy way(rsh) and failed. I will try the commands and update you.
            Sat Jul  8 01:33:28 2017 (33860:jt_snapshot_list:2161:lustre:ssh): Can't list snapshot test with detail <no>: -22
            Sat Jul  8 01:37:17 2017 (33964:jt_snapshot_list:2161:lustre:rsh): Can't list snapshot test with detail <no>: -22
            

            The log shows that the snapshot_list has ever failed with "ssh" before the "rsh" failure, right? Would you please to try the following:

            lctl snapshot_list -F lustre --name test-snap -r ssh
            lctl snapshot_list -F lustre --name test-snap -r rsh
            lctl snapshot_list -F lustre --name test-snap
            

            Thanks!

            yong.fan nasf (Inactive) added a comment - Sat Jul 8 01:33:28 2017 (33860:jt_snapshot_list:2161:lustre:ssh): Can't list snapshot test with detail <no>: -22 Sat Jul 8 01:37:17 2017 (33964:jt_snapshot_list:2161:lustre:rsh): Can't list snapshot test with detail <no>: -22 The log shows that the snapshot_list has ever failed with "ssh" before the "rsh" failure, right? Would you please to try the following: lctl snapshot_list -F lustre --name test-snap -r ssh lctl snapshot_list -F lustre --name test-snap -r rsh lctl snapshot_list -F lustre --name test-snap Thanks!

            Sarah,

            Would you please to attach the log file /var/log/lsnapshot.log? Thanks!

            yong.fan nasf (Inactive) added a comment - Sarah, Would you please to attach the log file /var/log/lsnapshot.log? Thanks!
            pjones Peter Jones added a comment -

            Fan Yong

            Can you please advise on this one?

            Thanks

            Peter

            pjones Peter Jones added a comment - Fan Yong Can you please advise on this one? Thanks Peter

            People

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

              Dates

                Created:
                Updated:
                Resolved: