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

Test-framework.sh ignores MDSDEV when FSTYPE=zfs

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.6.0
    • Lustre 2.4.0
    • 3
    • 5815

    Description

      Test-framework.sh ignores MDSDEV here:

      mdsdevname() {
          num=$1
          DEVNAME=MDSDEV$num
      
              local fstype=$(facet_fstype mds$num)
      
              case $fstype in
                      ldiskfs )
                              #if $MDSDEVn isn't defined, default is $MDSDEVBASE + num
                              eval DEVPTR=${!DEVNAME:=${MDSDEVBASE}${num}};;
                      zfs )   
                              #dataset name is independent of vdev device names
                              eval DEVPTR=${FSNAME}-mdt${num}/mdt${num};;
                      * )
                              error "unknown fstype!";;
              esac
      

      andreas suggests:
      eval DEVPTR=${!DEVNAME:=${FSNAME}-mdt${num}/mdt${num}}"
      as a fix

      Attachments

        Issue Links

          Activity

            [LU-2469] Test-framework.sh ignores MDSDEV when FSTYPE=zfs

            Should this be cherry-picked for 2.5.1?

            utopiabound Nathaniel Clark added a comment - Should this be cherry-picked for 2.5.1?

            Nathaniel - Can this be closed?

            jessica Jessica A. Popp (Inactive) added a comment - Nathaniel - Can this be closed?

            Patches for this bug are landed, should it be closed?

            adilger Andreas Dilger added a comment - Patches for this bug are landed, should it be closed?

            Skip failing zfs tests:
            http://review.whamcloud.com/5472

            utopiabound Nathaniel Clark added a comment - Skip failing zfs tests: http://review.whamcloud.com/5472
            utopiabound Nathaniel Clark added a comment - Reworked patch http://review.whamcloud.com/5016
            adilger Andreas Dilger added a comment - See http://wiki.whamcloud.com/plugins/servlet/content/view/8552564

            Oleg is reverting this patch due to the severe breakage. It needs to be fixed and resubmitted after it passes testing with ZFS enabled (using Test-Parameters.

            adilger Andreas Dilger added a comment - Oleg is reverting this patch due to the severe breakage. It needs to be fixed and resubmitted after it passes testing with ZFS enabled (using Test-Parameters.
            di.wang Di Wang added a comment -

            This patch cause following error. Please check

            [root@testnode tests]# FSTYPE=zfs sh llmount.sh
            Stopping clients: testnode /mnt/lustre (opts
            Stopping clients: testnode /mnt/lustre2 (opts
            Loading modules from /work/lustre-release/lustre/tests/..
            detected 2 online CPUs by sysfs
            Force libcfs to create 2 CPU partitions
            ../libcfs/libcfs/libcfs options: 'cpu_npartitions=2'
            debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super
            subsystem_debug=all -lnet -lnd -pinger
            gss/krb5 is not supported
            quota/lquota options: 'hash_lqs_cur_bits=3'
            Formatting mgs, mds, osts
            Format mds1: /tmp/lustre-mdt1

            mkfs.lustre FATAL: Invalid filesystem name /tmp/lustre-mdt1

            mkfs.lustre FATAL: unable to prepare backend (22)
            mkfs.lustre: exiting with 22 (Invalid argument)

            di.wang Di Wang added a comment - This patch cause following error. Please check [root@testnode tests] # FSTYPE=zfs sh llmount.sh Stopping clients: testnode /mnt/lustre (opts Stopping clients: testnode /mnt/lustre2 (opts Loading modules from /work/lustre-release/lustre/tests/.. detected 2 online CPUs by sysfs Force libcfs to create 2 CPU partitions ../libcfs/libcfs/libcfs options: 'cpu_npartitions=2' debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super subsystem_debug=all -lnet -lnd -pinger gss/krb5 is not supported quota/lquota options: 'hash_lqs_cur_bits=3' Formatting mgs, mds, osts Format mds1: /tmp/lustre-mdt1 mkfs.lustre FATAL: Invalid filesystem name /tmp/lustre-mdt1 mkfs.lustre FATAL: unable to prepare backend (22) mkfs.lustre: exiting with 22 (Invalid argument)
            utopiabound Nathaniel Clark added a comment - http://review.whamcloud.com/4854

            People

              utopiabound Nathaniel Clark
              cliffw Cliff White (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: