/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_expand/ |
H A D | zpool_expand_002_pos.ksh | 55 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 72 log_must zpool create $TESTPOOL1 $type $TEMPFILE.1 \ 75 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 78 log_fail "zpool $TESTPOOL1 autoexpand should be off but is " \ 81 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 82 typeset zfs_prev_size=$(get_prop avail $TESTPOOL1) 90 log_must zpool reopen $TESTPOOL1 91 typeset zpool_expandsize=$(get_pool_prop expandsize $TESTPOOL1) 102 log_fail "pool $TESTPOOL1 did not detect any " \ 107 log_fail "pool $TESTPOOL1 did not detect correct " \ [all …]
|
H A D | zpool_expand_005_pos.ksh | 50 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 63 log_must zpool create $TESTPOOL1 $SDISK 65 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 67 log_fail "zpool $TESTPOOL1 autoexpand should be off but is $autoexp" 70 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 80 log_must zpool reopen $TESTPOOL1 82 typeset expandsize=$(get_pool_prop expandsize $TESTPOOL1) 85 log_fail "pool $TESTPOOL1 did not detect any " \ 90 log_must zpool online -e $TESTPOOL1 $SDISK 92 typeset new_size=$(get_pool_prop size $TESTPOOL1) [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/replacement/ |
H A D | rebuild_multiple.ksh | 41 destroy_pool $TESTPOOL1 69 log_must zpool create -f $TESTPOOL1 \ 72 log_must zfs create $TESTPOOL1/$TESTFS 74 mntpnt=$(get_prop mountpoint $TESTPOOL1/$TESTFS) 76 sync_pool $TESTPOOL1 80 log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]} $SPARE_VDEV_FILE 81 log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[3]} $SPARE_VDEV_FILE2 83 check_history $TESTPOOL1 "started" 2 84 check_history $TESTPOOL1 "reset" 0 85 check_history $TESTPOOL1 "complete" 0 [all …]
|
H A D | attach_rebuild.ksh | 59 if poolexists $TESTPOOL1; then 60 destroy_pool $TESTPOOL1 109 log_must zpool attach -sw $opt $TESTPOOL1 $disk1 $disk2 116 log_must zpool export $TESTPOOL1 117 log_must zpool import -d $TESTDIR $TESTPOOL1 118 log_must zfs umount $TESTPOOL1/$TESTFS1 119 log_must zdb -cdui $TESTPOOL1/$TESTFS1 120 log_must zfs mount $TESTPOOL1/$TESTFS1 121 verify_pool $TESTPOOL1 139 create_pool $TESTPOOL1 mirror $specials_list [all …]
|
H A D | attach_resilver.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 107 log_must zpool attach -w $opt $TESTPOOL1 $disk1 $disk2 115 log_must zpool export $TESTPOOL1 116 log_must zpool import -d $TESTDIR $TESTPOOL1 117 log_must zfs umount $TESTPOOL1/$TESTFS1 118 log_must zdb -cdui $TESTPOOL1/$TESTFS1 119 log_must zfs mount $TESTPOOL1/$TESTFS1 120 verify_pool $TESTPOOL1 138 create_pool $TESTPOOL1 mirror $specials_list [all …]
|
H A D | detach.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 105 log_must zpool detach $TESTPOOL1 $disk1 115 log_must zpool export $TESTPOOL1 116 log_must zpool import -d $TESTDIR $TESTPOOL1 117 log_must zfs umount $TESTPOOL1/$TESTFS1 118 log_must zdb -cdui $TESTPOOL1/$TESTFS1 119 log_must zfs mount $TESTPOOL1/$TESTFS1 131 create_pool $TESTPOOL1 mirror $specials_list 132 log_must zfs create $TESTPOOL1/$TESTFS1 [all …]
|
H A D | attach_multiple.ksh | 43 destroy_pool $TESTPOOL1 56 log_must zpool create -f $TESTPOOL1 ${VDEV_FILES[0]} 69 log_mustnot is_pool_resilvering $TESTPOOL1 73 log_must zpool attach $flags $TESTPOOL1 \ 75 log_must is_pool_resilvering $TESTPOOL1 78 log_must zpool attach $flags $TESTPOOL1 \ 80 log_must is_pool_resilvering $TESTPOOL1 83 log_mustnot zpool detach $TESTPOOL1 ${VDEV_FILES[0]} 86 log_must zpool detach $TESTPOOL1 ${VDEV_FILES[1]} 87 log_must is_pool_resilvering $TESTPOOL1 [all …]
|
H A D | rebuild_raidz.ksh | 40 destroy_pool $TESTPOOL1 54 log_must zpool create -f $TESTPOOL1 $vdev_type ${VDEV_FILES[@]} 55 log_mustnot zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]} \ 57 destroy_pool $TESTPOOL1 61 log_must zpool create $TESTPOOL1 ${VDEV_FILES[@]} 62 log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]} $SPARE_VDEV_FILE 63 destroy_pool $TESTPOOL1 66 log_must zpool create $TESTPOOL1 mirror ${VDEV_FILES[0]} ${VDEV_FILES[1]} 67 log_must zpool replace -s $TESTPOOL1 ${VDEV_FILES[1]} $SPARE_VDEV_FILE 68 destroy_pool $TESTPOOL1 [all …]
|
H A D | replace_resilver.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 107 log_must zpool replace -w $opt $TESTPOOL1 $disk1 $disk2 115 log_must zpool export $TESTPOOL1 116 log_must zpool import -d $TESTDIR $TESTPOOL1 117 log_must zfs umount $TESTPOOL1/$TESTFS1 118 log_must zdb -cdui $TESTPOOL1/$TESTFS1 119 log_must zfs mount $TESTPOOL1/$TESTFS1 120 verify_pool $TESTPOOL1 139 create_pool $TESTPOOL1 $type $specials_list [all …]
|
H A D | replace_rebuild.ksh | 60 if poolexists $TESTPOOL1; then 61 destroy_pool $TESTPOOL1 110 log_must zpool replace -sw $opt $TESTPOOL1 $disk1 $disk2 118 log_must zpool export $TESTPOOL1 119 log_must zpool import -d $TESTDIR $TESTPOOL1 120 log_must zfs umount $TESTPOOL1/$TESTFS1 121 log_must zdb -cdui $TESTPOOL1/$TESTFS1 122 log_must zfs mount $TESTPOOL1/$TESTFS1 123 verify_pool $TESTPOOL1 142 create_pool $TESTPOOL1 $type $specials_list [all …]
|
H A D | scrub_cancel.ksh | 45 destroy_pool $TESTPOOL1 58 log_must zpool create -f $TESTPOOL1 ${VDEV_FILES[@]} 59 log_must zfs create $TESTPOOL1/$TESTFS 61 mntpnt=$(get_prop mountpoint $TESTPOOL1/$TESTFS) 63 sync_pool $TESTPOOL1 86 log_must zpool scrub $TESTPOOL1 89 log_must zpool replace $flags $TESTPOOL1 ${VDEV_FILES[1]} \ 93 while is_pool_scrubbing $TESTPOOL1; do 96 log_mustnot is_pool_scrubbing $TESTPOOL1 99 log_must is_pool_resilvering $TESTPOOL1 [all …]
|
H A D | resilver_restart_001.ksh | 55 destroy_pool $TESTPOOL1 75 VDEV_DEFERS=$(zdb -C $TESTPOOL1 | awk ' 114 log_must zpool create -f -o feature@resilver_defer=disabled $TESTPOOL1 \ 120 log_must zfs create -o primarycache=none -o recordsize=1k $TESTPOOL1/$fs 124 set -A DATAPATHS /$TESTPOOL1/fs{0..3}/dat.0 139 log_must zpool set feature@resilver_defer=enabled $TESTPOOL1 159 log_must zpool replace $TESTPOOL1 $VDEV_REPLACE 167 log_must zpool offline $TESTPOOL1 ${VDEV_FILES[2]} 168 sync_pool $TESTPOOL1 169 log_must zpool online $TESTPOOL1 ${VDEV_FILES[2]} [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_011_neg.ksh | 52 for pool in $TESTPOOL $TESTPOOL1 94 "$TESTPOOL1 $DISK0" \ 95 "$TESTPOOL1 mirror mirror $mirror1 mirror $mirror2" \ 96 "$TESTPOOL1 raidz raidz $raidz1 raidz $raidz2" \ 97 "$TESTPOOL1 raidz1 raidz1 $raidz1 raidz1 $raidz2" \ 98 "$TESTPOOL1 draid draid $draid draid $draid2" \ 99 "$TESTPOOL1 mirror raidz $raidz1 raidz $raidz2" \ 100 "$TESTPOOL1 mirror raidz1 $raidz1 raidz1 $raidz2" \ 101 "$TESTPOOL1 mirror draid $draid1 draid $draid2" \ 102 "$TESTPOOL1 raidz mirror $mirror1 mirror $mirror2" \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | import_cachefile_device_removed.ksh | 51 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate 55 log_must zpool remove $TESTPOOL1 $removevdev 56 log_must wait_for_pool_config $TESTPOOL1 "$poolcheck" 59 log_must zpool export $TESTPOOL1 61 log_must zpool import -c $CPATHBKP $TESTPOOL1 62 log_must check_pool_config $TESTPOOL1 "$poolcheck" 65 log_must zpool destroy $TESTPOOL1 79 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 \ 84 log_must zpool remove $TESTPOOL1 $VDEV4 85 log_must wait_for_pool_config $TESTPOOL1 \ [all …]
|
H A D | import_rewind_device_replaced.ksh | 83 log_must zpool create $TESTPOOL1 $poolcreate 86 log_must generate_data $TESTPOOL1 $MD5FILE 89 log_must write_some_data $TESTPOOL1 $writedata 93 log_must sync_some_data_a_few_times $TESTPOOL1 95 txg=$(get_last_txg_synced $TESTPOOL1) 96 log_must zfs snapshot -r $TESTPOOL1@snap1 99 log_must overwrite_data $TESTPOOL1 "" 101 log_must zpool export $TESTPOOL1 102 log_must zpool import -d $DEVICE_DIR $TESTPOOL1 106 log_must zpool replace $TESTPOOL1 $replacevdev $replaceby [all …]
|
H A D | zpool_import_features_003_pos.ksh | 52 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 61 log_must zpool create $TESTPOOL1 $VDEV0 62 log_must zpool export $TESTPOOL1 65 log_must zhack -d $DEVICE_DIR feature enable -r $TESTPOOL1 $feature 69 log_must zhack -d $DEVICE_DIR feature ref $TESTPOOL1 $feature 72 log_mustnot zpool import -d $DEVICE_DIR $TESTPOOL1 75 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 | grep readonly" 76 log_mustnot poolexists $TESTPOOL1 79 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ 81 log_mustnot poolexists $TESTPOOL1 [all …]
|
H A D | zpool_import_features_002_neg.ksh | 49 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 58 log_must zpool create $TESTPOOL1 $VDEV0 59 log_must zpool export $TESTPOOL1 62 log_must zhack -d $DEVICE_DIR feature enable $TESTPOOL1 $feature 66 log_must zhack -d $DEVICE_DIR feature ref $TESTPOOL1 $feature 69 log_mustnot zpool import -d $DEVICE_DIR $TESTPOOL1 72 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 | grep -q readonly" 73 log_mustnot poolexists $TESTPOOL1 76 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ 78 log_mustnot poolexists $TESTPOOL1 [all …]
|
H A D | import_cachefile_device_replaced.ksh | 80 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate 86 log_must write_some_data $TESTPOOL1 $writedata 87 log_must zpool export $TESTPOOL1 89 log_must zpool import -c $CPATH -o cachefile=$CPATH $TESTPOOL1 91 log_must zpool replace $TESTPOOL1 $replacevdev $replaceby 97 log_must pool_is_replacing $TESTPOOL1 98 log_must zpool export $TESTPOOL1 107 log_must zpool import -c $CPATH $TESTPOOL1 110 log_must wait_for_pool_config $TESTPOOL1 "$poolfinalstate" 111 log_must zpool export $TESTPOOL1 [all …]
|
H A D | zpool_import_status.ksh | 55 destroy_pool $TESTPOOL1 63 log_must zpool create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2 64 typeset guid=$(zpool get -H -o value guid $TESTPOOL1) 66 log_must zfs create -o recordsize=8k $TESTPOOL1/fs 72 log_must dd if=/dev/zero of=/$TESTPOOL1/fs/sync conv=fsync bs=1 count=1 77 log_must dd if=/dev/urandom of=/$TESTPOOL1/fs/00 bs=1M count=200 79 log_must dd if=/dev/urandom of=/$TESTPOOL1/fs/00 bs=1M count=200 85 log_must zpool freeze $TESTPOOL1 88 log_must fill_fs /$TESTPOOL1/fs 1 2000 100 1024 R 90 log_must zpool list -v $TESTPOOL1 [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/ |
H A D | zpool_create_011_neg.ksh | 60 for pool in $TESTPOOL $TESTPOOL1 97 "$TESTPOOL1 $pooldev1" \ 98 "$TESTPOOL1 $TESTDIR0/$FILEDISK0" \ 99 "$TESTPOOL1 mirror mirror $mirror1 mirror $mirror2" \ 100 "$TESTPOOL1 raidz raidz $raidz1 raidz $raidz2" \ 101 "$TESTPOOL1 raidz1 raidz1 $raidz1 raidz1 $raidz2" \ 102 "$TESTPOOL1 mirror raidz $raidz1 raidz $raidz2" \ 103 "$TESTPOOL1 mirror raidz1 $raidz1 raidz1 $raidz2" \ 104 "$TESTPOOL1 raidz mirror $mirror1 mirror $mirror2" \ 105 "$TESTPOOL1 raidz1 mirror $mirror1 mirror $mirror2" \ [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 67 datasetexists $TESTPOOL1 || log_must $ZPOOL import -d $mntpnt $TESTPOOL1 68 datasetexists $TESTPOOL1 && destroy_pool $TESTPOOL1 94 log_must $ZPOOL create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4 97 log_must $ZPOOL export $TESTPOOL1 98 log_must $ZPOOL import -d $mntpnt $TESTPOOL1 100 log_must $ZPOOL replace $TESTPOOL1 $vdev0 $vdev4 101 log_must $ZPOOL detach $TESTPOOL1 $vdev4 102 log_must $ZPOOL export $TESTPOOL1 103 log_must $ZPOOL import -d $mntpnt $TESTPOOL1 105 log_must $ZPOOL replace $TESTPOOL1 $vdev0 $vdev4 [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_expand/ |
H A D | zpool_expand_002_pos.ksh | 62 destroy_pool $TESTPOOL1 80 log_must $ZPOOL create $TESTPOOL1 $type \ 85 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 87 log_fail "zpool $TESTPOOL1 autoexpand should off but is $autoexp" 90 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 97 log_must $ZPOOL online -e $TESTPOOL1 /dev/zvol/$VFS/vol$i 106 $ZPOOL history -il $TESTPOOL1 | \ 107 $GREP "pool '$TESTPOOL1' size:" | \ 112 log_fail "pool $TESTPOOL1" \ 116 $ZPOOL history -il $TESTPOOL1 | \ [all …]
|
H A D | zpool_expand_001_pos.ksh | 61 destroy_pool $TESTPOOL1 80 log_must $ZPOOL create -o autoexpand=on $TESTPOOL1 $type \ 85 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 87 log_fail "zpool $TESTPOOL1 autoexpand should on but is $autoexp" 90 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 100 typeset expand_size=$(get_pool_prop size $TESTPOOL1) 104 $ZPOOL history -il $TESTPOOL1 | \ 105 $GREP "pool '$TESTPOOL1' size:" | \ 110 log_fail "pool $TESTPOOL1" \ 114 $ZPOOL history -il $TESTPOOL1 | \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/projectquota/ |
H A D | projectquota_002_pos.ksh | 47 if poolexists $TESTPOOL1; then 48 log_must zpool destroy $TESTPOOL1 64 if poolexists $TESTPOOL1; then 65 zpool destroy $TESTPOOL1 69 -O projectobjquota@$PRJID2=$PQUOTA_OBJLIMIT $TESTPOOL1 $pool_vdev 72 $TESTPOOL1 > /dev/null 2>&1" 74 log_must check_quota "projectquota@$PRJID1" $TESTPOOL1 "$PQUOTA_LIMIT" 75 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL1 "$PQUOTA_OBJLIMIT" 78 -o projectobjquota@$PRJID2=$PQUOTA_OBJLIMIT $TESTPOOL1/fs 81 $TESTPOOL1 > /dev/null 2>&1" [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/userquota/ |
H A D | userquota_002_pos.ksh | 48 if poolexists $TESTPOOL1; then 49 log_must zpool destroy $TESTPOOL1 66 if poolexists $TESTPOOL1; then 67 zpool destroy $TESTPOOL1 71 -O groupquota@$QGROUP=$GQUOTA_SIZE $TESTPOOL1 $pool_vdev 74 $TESTPOOL1 > /dev/null 2>&1" 76 log_must check_quota "userquota@$QUSER1" $TESTPOOL1 "$UQUOTA_SIZE" 77 log_must check_quota "groupquota@$QGROUP" $TESTPOOL1 "$GQUOTA_SIZE" 80 -o groupquota@$QGROUP=$GQUOTA_SIZE $TESTPOOL1/fs 83 $TESTPOOL1 > /dev/null 2>&1" [all …]
|