/titanic_44/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 74 log_must $ZPOOL create $TESTPOOL1 $type /dev/zvol/dsk/$VFS/vol1 \ 77 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 80 log_fail "zpool $TESTPOOL1 autoexpand should off but is " \ 83 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 84 typeset zfs_prev_size=$($ZFS get -p avail $TESTPOOL1 | $TAIL -1 | \ 92 log_must $ZPOOL online -e $TESTPOOL1 /dev/zvol/dsk/$VFS/vol$i 99 typeset expand_size=$(get_pool_prop size $TESTPOOL1) 100 typeset zfs_expand_size=$($ZFS get -p avail $TESTPOOL1 | $TAIL -1 | \ [all …]
|
H A D | zpool_expand_001_pos.ksh | 53 if poolexists $TESTPOOL1; then 54 log_must $ZPOOL destroy $TESTPOOL1 74 log_must $ZPOOL create -o autoexpand=on $TESTPOOL1 $type \ 78 typeset autoexp=$(get_pool_prop autoexpand $TESTPOOL1) 80 log_fail "zpool $TESTPOOL1 autoexpand should on but is $autoexp" 83 typeset prev_size=$(get_pool_prop size $TESTPOOL1) 84 typeset zfs_prev_size=$($ZFS get -p avail $TESTPOOL1 | $TAIL -1 | \ 95 typeset expand_size=$(get_pool_prop size $TESTPOOL1) 96 typeset zfs_expand_size=$($ZFS get -p avail $TESTPOOL1 | $TAIL -1 | \ 99 log_note "$TESTPOOL1 $type has previous size: $prev_size and " \ [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 …]
|
/titanic_44/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" \ 93 "$TESTPOOL1 mirror mirror $mirror1 mirror $mirror2" \ 94 "$TESTPOOL1 raidz raidz $raidz1 raidz $raidz2" \ 95 "$TESTPOOL1 raidz1 raidz1 $raidz1 raidz1 $raidz2" \ 96 "$TESTPOOL1 mirror raidz $raidz1 raidz $raidz2" \ 97 "$TESTPOOL1 mirror raidz1 $raidz1 raidz1 $raidz2" \ 98 "$TESTPOOL1 raidz mirror $mirror1 mirror $mirror2" \ 99 "$TESTPOOL1 raidz1 mirror $mirror1 mirror $mirror2" \ [all …]
|
H A D | zpool_create_004_pos.ksh | 50 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 67 create_pool "$TESTPOOL1" $vdevs_list 68 log_must vdevs_in_pool "$TESTPOOL1" "$vdevs_list" 70 if poolexists $TESTPOOL1; then 71 destroy_pool $TESTPOOL1 78 log_mustnot $ZPOOL create -f $TESTPOOL1 $vdevs_list
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/ |
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 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 | 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 | zpool_import_features_001_pos.ksh | 47 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 56 log_must $ZPOOL create $TESTPOOL1 $VDEV0 57 log_must $ZPOOL export $TESTPOOL1 60 log_must $ZHACK -d $DEVICE_DIR feature enable $TESTPOOL1 $feature 63 log_must $ZPOOL import -d $DEVICE_DIR $TESTPOOL1 65 state=$($ZPOOL list -Ho unsupported@$feature $TESTPOOL1)
|
H A D | zpool_import_009_neg.ksh | 57 "$TESTPOOL $TESTPOOL1" \ 58 "$TESTPOOL ${TESTPOOL1}*" "$TESTPOOL ${TESTPOOL1}?" 60 set -A pools "$TESTPOOL" "$TESTPOOL1" 82 cleanup_filesystem $TESTPOOL1 $TESTFS 84 destroy_pool $TESTPOOL1 92 setup_filesystem "$DEVICE_FILES" $TESTPOOL1 $TESTFS $TESTDIR1
|
H A D | zpool_import_missing_002_pos.ksh | 74 poolexists $TESTPOOL1 || \ 75 log_must $ZPOOL import -d $DEVICE_DIR $TESTPOOL1 77 cleanup_filesystem $TESTPOOL1 $TESTFS 79 destroy_pool $TESTPOOL1 129 $TESTPOOL1 $TESTFS $TESTDIR1 \ 132 guid=$(get_config $TESTPOOL1 pool_guid) 154 poolexists $TESTPOOL1 && \ 155 log_must $ZPOOL export $TESTPOOL1 179 typeset target=$TESTPOOL1
|
H A D | zpool_import_004_pos.ksh | 51 destroy_pool $TESTPOOL1 65 log_must $ZPOOL create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2 66 typeset guid=$(get_config $TESTPOOL1 pool_guid) 67 typeset target=$TESTPOOL1 72 log_must $ZPOOL destroy $TESTPOOL1 80 log_must $ZPOOL destroy -f $TESTPOOL1 86 log_must $ZPOOL destroy -f $TESTPOOL1
|
H A D | zpool_import_005_pos.ksh | 49 destroy_pool $TESTPOOL1 63 log_must $ZPOOL create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2 64 typeset guid=$(get_config $TESTPOOL1 pool_guid) 65 typeset target=$TESTPOOL1 70 log_must $ZPOOL destroy $TESTPOOL1 75 log_must $ZPOOL destroy -f $TESTPOOL1 83 log_must $ZPOOL destroy -f $TESTPOOL1
|
/titanic_44/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 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 134 create_pool $TESTPOOL1 mirror $specials_list 135 log_must $ZFS create $TESTPOOL1/$TESTFS1 [all …]
|
H A D | replacement_002_pos.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 110 log_must $ZPOOL attach $opt $TESTPOOL1 $disk1 $disk2 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 143 create_pool $TESTPOOL1 mirror $specials_list 144 log_must $ZFS create $TESTPOOL1/$TESTFS1 [all …]
|
H A D | replacement_001_pos.ksh | 57 if poolexists $TESTPOOL1; then 58 destroy_pool $TESTPOOL1 110 log_must $ZPOOL replace $opt $TESTPOOL1 $disk1 $disk2 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 [all …]
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 52 datasetexists $TESTPOOL1 || log_must $ZPOOL import -d $mntpnt $TESTPOOL1 53 datasetexists $TESTPOOL1 && destroy_pool $TESTPOOL1 77 log_must $ZPOOL create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4 80 log_must $ZPOOL export $TESTPOOL1 81 log_must $ZPOOL import -d $mntpnt $TESTPOOL1 83 log_must $ZPOOL replace $TESTPOOL1 $vdev0 $vdev4 84 log_must $ZPOOL detach $TESTPOOL1 $vdev4 85 log_must $ZPOOL export $TESTPOOL1 86 log_must $ZPOOL import -d $mntpnt $TESTPOOL1 88 log_must $ZPOOL replace $TESTPOOL1 $vdev0 $vdev4 [all …]
|
/titanic_44/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 …]
|
/titanic_44/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 109 create_pool $TESTPOOL1 ${vdevs[i]} $vslices spare $sslices 110 log_must $ZPOOL export $TESTPOOL1 112 log_must $ZPOOL import $TESTPOOL1 113 destroy_pool $TESTPOOL1 125 create_pool $TESTPOOL1 ${vdevs[i]} $vdisks spare $sdisks 126 log_must $ZPOOL export $TESTPOOL1 128 log_must $ZPOOL import $TESTPOOL1 129 destroy_pool $TESTPOOL1
|
H A D | inuse_009_pos.ksh | 50 poolexists $TESTPOOL1 || $ZPOOL import $TESTPOOL1 >/dev/null 2>&1 52 poolexists $TESTPOOL1 && destroy_pool $TESTPOOL1 101 create_pool $TESTPOOL1 ${vdevs[i]} $vslices spare $sslices 102 log_must $ZPOOL export $TESTPOOL1 115 create_pool $TESTPOOL1 ${vdevs[i]} $vdisks spare $sdisks 116 log_must $ZPOOL export $TESTPOOL1
|
/titanic_44/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"
|
H A D | zpool_add_006_pos.ksh | 49 poolexists $TESTPOOL1 && \ 50 destroy_pool $TESTPOOL1 65 create_pool "$TESTPOOL1" "$TESTDIR/file.00" 70 log_must $ZPOOL add -f "$TESTPOOL1" $vdevs_list 71 log_must vdevs_in_pool "$TESTPOOL1" "$vdevs_list" 75 log_mustnot $ZPOOL add -f "$TESTPOOL1" ${TESTDIR}/broken_file 76 log_mustnot vdevs_in_pool "$TESTPOOL1" "${TESTDIR}/broken_file"
|
/titanic_44/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
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/ |
H A D | zpool_clear_001_pos.ksh | 50 poolexists $TESTPOOL1 && \ 51 log_must $ZPOOL destroy -f $TESTPOOL1 135 typeset FS=$TESTPOOL1/fs 141 log_must $ZPOOL create -f $TESTPOOL1 $vdev 185 log_must $ZPOOL scrub $TESTPOOL1 187 while is_pool_scrubbing $TESTPOOL1; do 191 check_err $TESTPOOL1 && \ 194 log_must $ZPOOL clear $TESTPOOL1 $fbase.$i 195 ! check_err $TESTPOOL1 $fbase.$i && \ 200 log_must $ZPOOL clear $TESTPOOL1 [all …]
|
/titanic_44/usr/src/test/zfs-tests/tests/functional/online_offline/ |
H A D | online_offline_003_neg.ksh | 47 if poolexists $TESTPOOL1; then 48 destroy_pool $TESTPOOL1 66 create_pool $TESTPOOL1 $specials_list 67 log_must $ZFS create $TESTPOOL1/$TESTFS1 68 log_must $ZFS set mountpoint=$TESTDIR1 $TESTPOOL1/$TESTFS1 74 log_mustnot $ZPOOL offline $TESTPOOL1 ${disk[$i]} 75 check_state $TESTPOOL1 ${disk[$i]} "online"
|