[LU-2469] Test-framework.sh ignores MDSDEV when FSTYPE=zfs Created: 11/Dec/12  Updated: 03/Apr/16  Resolved: 22/Nov/13

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.4.0
Fix Version/s: Lustre 2.6.0

Type: Bug Priority: Minor
Reporter: Cliff White (Inactive) Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: zfs

Issue Links:
Duplicate
is duplicated by LU-2787 review-zfs lustre-initialization_1 I... Resolved
is duplicated by LU-2678 Failure on test suite conf-sanity tes... Resolved
Related
is related to LU-2734 ZFS testin failure: "no label for lus... Closed
Severity: 3
Rank (Obsolete): 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



 Comments   
Comment by Nathaniel Clark [ 18/Dec/12 ]

http://review.whamcloud.com/4854

Comment by Di Wang [ 08/Jan/13 ]

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)

Comment by Andreas Dilger [ 10/Jan/13 ]

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.

Comment by Andreas Dilger [ 10/Jan/13 ]

See http://wiki.whamcloud.com/plugins/servlet/content/view/8552564

Comment by Nathaniel Clark [ 14/Jan/13 ]

Reworked patch

http://review.whamcloud.com/5016

Comment by Nathaniel Clark [ 19/Feb/13 ]

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

Comment by Andreas Dilger [ 24/Sep/13 ]

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

Comment by Jessica A. Popp (Inactive) [ 21/Nov/13 ]

Nathaniel - Can this be closed?

Comment by Nathaniel Clark [ 22/Nov/13 ]

Should this be cherry-picked for 2.5.1?

Generated at Sat Feb 10 01:25:28 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.