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

Test-framework.sh ignores MDSDEV when FSTYPE=zfs

XMLWordPrintable

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

      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

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

              Created:
              Updated:
              Resolved: