/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_expand/ |
H A D | zpool_expand_002_pos.ksh | 54 if poolexists $TESTPOOL1; then 55 log_must zpool destroy $TESTPOOL1 83 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 110 | grep "pool '$TESTPOOL1' size:" | \ 115 log_fail "pool $TESTPOOL1 is not autoexpand " \ 119 zpool history -il $TESTPOOL1 | \ 120 grep "pool '$TESTPOOL1' size:" | \ 125 log_fail "pool $TESTPOOL1 is not autoexpand " \ 129 zpool history -il $TESTPOOL1 | \ 130 grep "pool '$TESTPOOL1' size:" | \ [all …]
|
H A D | zpool_expand_001_pos.ksh | 53 if poolexists $TESTPOOL1; then 54 log_must zpool destroy $TESTPOOL1 83 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 106 grep "pool '$TESTPOOL1' size:" | \ 111 log_fail "pool $TESTPOOL1 is not autoexpand " \ 115 zpool history -il $TESTPOOL1 | \ 116 grep "pool '$TESTPOOL1' size:" | \ 121 log_fail "pool $TESTPOOL1 is not autoexpand " \ 125 zpool history -il $TESTPOOL1 | \ 126 grep "pool '$TESTPOOL1' size:" | \ [all …]
|
H A D | zpool_expand_003_neg.ksh | 53 if poolexists $TESTPOOL1; then 54 log_must zpool destroy $TESTPOOL1 73 log_must zpool create $TESTPOOL1 $type /dev/zvol/dsk/$VFS/vol1 \ 76 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 78 log_fail "zpool $TESTPOOL1 autoexpand should off but is " \ 82 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 93 zpool history -il $TESTPOOL1 | grep "pool '$TESTPOOL1' size:" | \ 97 log_fail "pool $TESTPOOL1 is not autoexpand after LUN " \ 101 typeset expand_size=$(get_pool_prop size $TESTPOOL1) 104 log_fail "pool $TESTPOOL1 size changed after LUN expansion" [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | import_cachefile_device_removed.ksh | 59 log_must zpool export $TESTPOOL1 65 log_must zpool destroy $TESTPOOL1 84 log_must zpool remove $TESTPOOL1 $VDEV4 87 log_must zpool remove $TESTPOOL1 $VDEV3 91 log_must zpool export $TESTPOOL1 97 log_must zpool destroy $TESTPOOL1 116 log_must zpool remove $TESTPOOL1 $VDEV1 118 log_must zpool remove $TESTPOOL1 $VDEV3 121 log_must zpool add $TESTPOOL1 $VDEV4 123 log_must zpool export $TESTPOOL1 [all …]
|
H A D | import_rewind_device_replaced.ksh | 88 log_must write_some_data $TESTPOOL1 94 txg=$(get_last_txg_synced $TESTPOOL1) 95 log_must zfs snapshot -r $TESTPOOL1@snap1 98 log_must overwrite_data $TESTPOOL1 "" 100 log_must zpool export $TESTPOOL1 108 log_must pool_is_replacing $TESTPOOL1 109 log_must zpool export $TESTPOOL1 121 log_must zpool export $TESTPOOL1 125 log_must overwrite_data $TESTPOOL1 "" 127 log_must zpool export $TESTPOOL1 [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 72 log_mustnot zpool import -d $DEVICE_DIR $TESTPOOL1 76 log_mustnot poolexists $TESTPOOL1 79 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ 81 log_mustnot poolexists $TESTPOOL1 85 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ 87 log_mustnot poolexists $TESTPOOL1 93 state=$(zpool list -Ho unsupported@$feature $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 73 log_mustnot poolexists $TESTPOOL1 76 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ 78 log_mustnot poolexists $TESTPOOL1 82 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \ [all …]
|
H A D | import_cachefile_device_replaced.ksh | 84 log_must write_some_data $TESTPOOL1 85 log_must zpool export $TESTPOOL1 95 log_must pool_is_replacing $TESTPOOL1 96 log_must zpool export $TESTPOOL1 105 log_must zpool import -c $CPATH $TESTPOOL1 109 log_must zpool export $TESTPOOL1 116 log_must zpool import -c $CPATHBKP $TESTPOOL1 117 log_must check_pool_config $TESTPOOL1 "$poolfinalstate" 118 log_must zpool export $TESTPOOL1 123 log_must zpool import -c $CPATHBKP2 $TESTPOOL1 [all …]
|
H A D | import_rewind_config_changed.ksh | 68 log_must zpool create $TESTPOOL1 $poolcreate 70 log_must generate_data $TESTPOOL1 $MD5FILE 76 txg=$(get_last_txg_synced $TESTPOOL1) 77 log_must zfs snapshot -r $TESTPOOL1@snap1 83 log_must zpool add -f $TESTPOOL1 $addvdevs 101 zpool export $TESTPOOL1 107 zpool import -d $DEVICE_DIR $TESTPOOL1 124 log_must zpool checkpoint $TESTPOOL1 126 log_must overwrite_data $TESTPOOL1 "" 128 log_must zpool export $TESTPOOL1 [all …]
|
H A D | import_devices_missing.ksh | 47 poolexists $TESTPOOL1 && log_must zpool export $TESTPOOL1 63 log_must zpool create $TESTPOOL1 $poolcreate 65 log_must generate_data $TESTPOOL1 $MD5FILE "first" 67 log_must zpool add $TESTPOOL1 $addvdevs 69 log_must generate_data $TESTPOOL1 $MD5FILE2 "second" 71 log_must zpool export $TESTPOOL1 80 log_must zpool import -o readonly=on -d $DEVICE_DIR $TESTPOOL1 88 log_must zpool export $TESTPOOL1 96 log_must zpool import -d $DEVICE_DIR $TESTPOOL1 102 log_must zpool destroy $TESTPOOL1
|
H A D | zpool_import_missing_001_pos.ksh | 84 if poolexists "$TESTPOOL1" ; then 85 cleanup_filesystem $TESTPOOL1 $TESTFS 86 destroy_pool $TESTPOOL1 114 $TESTPOOL1 $TESTFS $TESTDIR1 \ 119 guid=$(get_config $TESTPOOL1 pool_guid) 139 poolexists $TESTPOOL1 && \ 140 log_must zpool export $TESTPOOL1 164 typeset target=$TESTPOOL1 174 log_must poolexists $TESTPOOL1 176 health=$(zpool list -H -o health $TESTPOOL1) [all …]
|
H A D | import_paths_changed.ksh | 42 log_must zpool create $TESTPOOL1 $poolcreate 44 log_must zpool export $TESTPOOL1 50 log_must zpool import -d $DEVICE_DIR $TESTPOOL1 51 log_must check_pool_healthy $TESTPOOL1 54 log_must zpool destroy $TESTPOOL1 71 log_must zpool create $TESTPOOL1 $poolcreate 73 log_must zpool export $TESTPOOL1 79 log_must zpool import -d $DEVICE_DIR $TESTPOOL1 80 log_must check_pool_healthy $TESTPOOL1 83 log_must zpool destroy $TESTPOOL1
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_011_neg.ksh | 52 for pool in $TESTPOOL $TESTPOOL1 91 "$TESTPOOL1 $pooldev1" \ 92 "$TESTPOOL1 $TESTDIR0/$FILEDISK0" \ 94 "$TESTPOOL1 raidz raidz $raidz1 raidz $raidz2" \ 96 "$TESTPOOL1 mirror raidz $raidz1 raidz $raidz2" \ 100 "$TESTPOOL1 mirror $diff_size_dev" \ 101 "$TESTPOOL1 raidz $diff_size_dev" \ 102 "$TESTPOOL1 raidz1 $diff_size_dev" \ 104 "$TESTPOOL1 $vfstab_dev" \ 105 "$TESTPOOL1 ${disk}s10" \ [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/replacement/ |
H A D | replacement_003_pos.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 108 log_must zpool detach $TESTPOOL1 $disk1 118 log_must zpool export $TESTPOOL1 121 log_must zdb -cdui $TESTPOOL1/$TESTFS1 134 create_pool $TESTPOOL1 mirror $specials_list 135 log_must zfs create $TESTPOOL1/$TESTFS1 145 destroy_pool $TESTPOOL1 150 create_pool $TESTPOOL1 $type $specials_list 151 log_must zfs create $TESTPOOL1/$TESTFS1 [all …]
|
H A D | replacement_002_pos.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 120 log_must zpool export $TESTPOOL1 123 log_must zdb -cdui $TESTPOOL1/$TESTFS1 124 log_must zfs mount $TESTPOOL1/$TESTFS1 143 create_pool $TESTPOOL1 mirror $specials_list 144 log_must zfs create $TESTPOOL1/$TESTFS1 154 destroy_pool $TESTPOOL1 161 create_pool $TESTPOOL1 $type $specials_list 162 log_must zfs create $TESTPOOL1/$TESTFS1 [all …]
|
H A D | replacement_001_pos.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 120 log_must zpool export $TESTPOOL1 121 log_must zpool import -d $TESTDIR $TESTPOOL1 122 log_must zfs umount $TESTPOOL1/$TESTFS1 123 log_must zdb -cdui $TESTPOOL1/$TESTFS1 124 log_must zfs mount $TESTPOOL1/$TESTFS1 144 create_pool $TESTPOOL1 $type $specials_list 145 log_must zfs create $TESTPOOL1/$TESTFS1 155 destroy_pool $TESTPOOL1 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 56 datasetexists $TESTPOOL1 || log_must zpool import -d $mntpnt $TESTPOOL1 57 datasetexists $TESTPOOL1 && destroy_pool $TESTPOOL1 84 log_must zpool export $TESTPOOL1 85 log_must zpool import -d $mntpnt $TESTPOOL1 87 log_must zpool replace $TESTPOOL1 $vdev0 $vdev4 88 log_must zpool detach $TESTPOOL1 $vdev4 89 log_must zpool export $TESTPOOL1 90 log_must zpool import -d $mntpnt $TESTPOOL1 93 log_mustnot zpool export $TESTPOOL1 95 log_must zpool export -f $TESTPOOL1 [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/projectquota/ |
H A D | projectquota_002_pos.ksh | 48 if poolexists $TESTPOOL1; then 49 log_must zpool destroy $TESTPOOL1 65 if poolexists $TESTPOOL1; then 66 zpool destroy $TESTPOOL1 70 -O projectobjquota@$PRJID2=$PQUOTA_OBJLIMIT $TESTPOOL1 $pool_vdev 73 -o projectobjquota@$PRJID2=$PQUOTA_OBJLIMIT $TESTPOOL1/fs 76 $TESTPOOL1 > /dev/null 2>&1" 78 log_must check_quota "projectquota@$PRJID1" $TESTPOOL1 "$PQUOTA_LIMIT" 79 log_must check_quota "projectobjquota@$PRJID2" $TESTPOOL1 "$PQUOTA_OBJLIMIT" 82 $TESTPOOL1 > /dev/null 2>&1" [all …]
|
/illumos-gate/usr/src/test/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 …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/ |
H A D | inuse_007_pos.ksh | 54 poolexists $TESTPOOL1 || zpool import $TESTPOOL1 >/dev/null 2>&1 56 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 101 create_pool $TESTPOOL1 ${vdevs[i]} $vslices spare $sslices 102 log_must zpool export $TESTPOOL1 104 log_must zpool import $TESTPOOL1 105 destroy_pool $TESTPOOL1 117 create_pool $TESTPOOL1 ${vdevs[i]} $vdisks spare $sdisks 118 log_must zpool export $TESTPOOL1 120 log_must zpool import $TESTPOOL1 121 destroy_pool $TESTPOOL1
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_readonly.ksh | 44 destroy_pool $TESTPOOL1 53 log_must zpool create $TESTPOOL1 raidz $TESTDIR/file.* 56 log_must zpool export $TESTPOOL1 57 log_must zpool import -d $TESTDIR -o readonly=on $TESTPOOL1 58 if [[ "$(get_pool_prop readonly $TESTPOOL1)" != 'on' ]]; then 59 log_fail "Pool $TESTPOOL1 was not imported readonly." 63 log_mustnot zpool clear $TESTPOOL1 66 log_must check_state $TESTPOOL1 $TESTDIR/file.$i 'online' 68 log_mustnot zpool clear $TESTPOOL1 $TESTDIR/file.$i
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | zpool_add_004_pos.ksh | 53 datasetexists $TESTPOOL1/$TESTVOL && \ 54 log_must zfs destroy -f $TESTPOOL1/$TESTVOL 55 poolexists $TESTPOOL1 && \ 56 destroy_pool "$TESTPOOL1" 69 create_pool "$TESTPOOL1" "${disk}s${SLICE1}" 70 log_must poolexists "$TESTPOOL1" 71 log_must zfs create -V $VOLSIZE $TESTPOOL1/$TESTVOL 73 log_must zpool add "$TESTPOOL" /dev/zvol/dsk/$TESTPOOL1/$TESTVOL 75 log_must vdevs_in_pool "$TESTPOOL" "/dev/zvol/dsk/$TESTPOOL1/$TESTVOL"
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_replace/ |
H A D | replace_prop_ashift.ksh | 46 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 63 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 64 log_must zpool set ashift=$pprop $TESTPOOL1 68 log_must zpool replace $TESTPOOL1 $disk1 $disk2 69 wait_replacing $TESTPOOL1 78 log_mustnot zpool replace $TESTPOOL1 $disk1 $disk2 80 log_must zpool replace -o ashift=$ashift $TESTPOOL1 \ 82 wait_replacing $TESTPOOL1 91 log_must zpool destroy $TESTPOOL1
|
H A D | replace-o_ashift.ksh | 44 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 62 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1 72 log_must zpool replace -o ashift=$cmdval $TESTPOOL1 \ 80 wait_replacing $TESTPOOL1 82 log_mustnot zpool replace -o ashift=$cmdval $TESTPOOL1 \ 86 log_must zpool destroy $TESTPOOL1 95 log_must zpool create $TESTPOOL1 $disk1 96 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2 97 log_must zpool destroy $TESTPOOL1
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/ |
H A D | cachefile_004_pos.ksh | 55 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 92 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL1 $vdev0 93 log_must pool_in_cache $TESTPOOL1 $CPATH1 97 log_must zpool set cachefile=$CPATH2 $TESTPOOL1 98 log_must pool_in_cache $TESTPOOL1 $CPATH2 105 log_must zpool export $TESTPOOL1 111 log_must zpool import -d $mntpnt $TESTPOOL1 112 log_must zpool set cachefile=$CPATH2 $TESTPOOL1 113 log_must pool_in_cache $TESTPOOL1 $CPATH2 118 log_must zpool destroy $TESTPOOL1
|