Searched refs:zpool (Results 151 - 175 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_007_pos.ksh67 log_must zpool set bootfs=$EFI_BOOTFS $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_get/
H A Dzpool_get_002_pos.ksh38 # zpool get all works as expected
42 # 1. Using zpool get, retrieve all default values
48 # default values are sane, or whether they can be changed with zpool set.
59 log_must zpool get all $TESTPOOL
60 zpool get all $TESTPOOL > /tmp/values.$$
62 log_note "Checking zpool get all output for a header."
66 log_fail "The header was not printed from zpool get all"
76 log_fail "zpool property ${properties[$i]} was not found\
88 log_fail "Found zpool features not in the zpool_get test config."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_002_pos.ksh36 # Verify that 'zpool iostat [interval [count]' can be executed as non-root.
57 log_assert "zpool iostat [pool_name ...] [interval] [count]"
63 zpool iostat $TESTPOOL 1 4 > $tmpfile 2>&1 &
68 log_fail "zpool iostat [pool_name] [interval] [count] failed"
71 log_pass "zpool iostat [pool_name ...] [interval] [count] passed"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/grow_pool/
H A Dgrow_pool_001_pos.ksh49 log_assert "A zpool may be increased in capacity by adding a disk"
65 log_must zpool add $TESTPOOL $DISK"s"$SLICE1
67 log_must zpool add $TESTPOOL $DISK1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/clean_mirror/
H A Dclean_mirror_common.kshlib52 zpool scrub $pool >/dev/null 2>&1
55 log_fail "zpool scrub $pool failed."
92 log_must zpool export $TESTPOOL
93 log_must zpool import $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/
H A Dzpool_002_pos.ksh36 # With ZFS_ABORT set, all zpool commands should be able to abort and generate a core file.
39 # 1. Create an array of zpool command
54 log_must zpool destroy -f $pool
58 log_assert "With ZFS_ABORT set, all zpool commands can abort and generate a core file."
91 zpool $subcmd >/dev/null 2>&1
92 corefile=${corepath}/core.zpool
94 log_fail "zpool $subcmd cannot generate core file with ZFS_ABORT set."
99 log_pass "With ZFS_ABORT set, zpool command can abort and generate core file as expected."
H A DMakefile19 TESTDIR = $(ROOTOPTPKG)/tests/functional/cli_root/zpool
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_features_002_neg.ksh58 log_must zpool create $TESTPOOL1 $VDEV0
59 log_must zpool export $TESTPOOL1
69 log_mustnot zpool import -d $DEVICE_DIR $TESTPOOL1
72 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 | grep readonly"
76 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \
82 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \
H A Dzpool_import_002_pos.ksh47 # 4. Verify it shows up under 'zpool list'.
65 log_must zpool export ${pools[i]}
68 log_must zpool import ${devs[i]} ${pools[i]}
108 log_must zpool export ${pools[i]}
116 log_must zpool import ${devs[i]} ${options[j]} $target
133 log_mustnot zpool import ${devs[i]} $target
H A Dzpool_import_001_pos.ksh48 # 4. Verify it shows up under 'zpool list'.
66 log_must zpool export ${pools[i]}
69 log_must zpool import ${devs[i]} ${pools[i]}
108 log_must zpool export ${pools[i]}
115 log_must zpool import ${devs[i]} ${options[j]} $target
/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/
H A Dinuse_009_pos.ksh50 poolexists $TESTPOOL1 || zpool import $TESTPOOL1 >/dev/null 2>&1
94 log_must zpool export $TESTPOOL1
108 log_must zpool export $TESTPOOL1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsend-c_recv_lz4_disabled.ksh45 log_must zpool create $POOL2 $DISK2
49 datasetexists $POOL3 && log_must zpool destroy $POOL3
50 log_must zpool create -d $POOL3 $DISK3
/illumos-gate/usr/src/test/zfs-tests/tests/functional/userquota/
H A Duserquota_002_pos.ksh37 # the userquota and groupquota can be set during zpool or zfs creation"
41 # 1. Set userquota and groupquota via "zpool -O or zfs create -o"
49 log_must zpool destroy $TESTPOOL1
60 "the userquota and groupquota can be set during zpool,zfs creation"
67 zpool destroy $TESTPOOL1
70 log_must zpool create -O userquota@$QUSER1=$UQUOTA_SIZE \
89 "the userquota and groupquota can be set during zpool,zfs creation"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_007_pos.ksh45 zpool destroy tmp_pool
91 log_must zpool create -o version=1 tmp_pool $vdev
93 log_must zpool destroy tmp_pool
94 log_must zpool create -d tmp_pool $vdev
96 log_must zpool destroy tmp_pool
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_001_pos.ksh37 # Verify 'zpool clear' can clear pool errors.
42 # 3. Use zpool clear to clear errors
51 log_must zpool destroy -f $TESTPOOL1
59 log_assert "Verify 'zpool clear' can clear errors of a storage pool."
90 typeset output="`zpool status -x $pool`"
94 zpool status -x $pool | grep -v "^$" | grep -v "pool:" \
141 log_must zpool create -f $TESTPOOL1 $vdev
185 log_must zpool scrub $TESTPOOL1
194 log_must zpool clear $TESTPOOL1 $fbase.$i
196 log_fail "'zpool clea
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_004_pos.ksh37 log_must zpool create -f $TESTPOOL $DISK
52 log_must zpool attach $TESTPOOL $DISK $disk2
81 log_must zpool detach $TESTPOOL $DISK
H A Dvdev_zaps_007_pos.ksh35 log_must zpool create -f $TESTPOOL mirror ${DISK_ARR[0]} ${DISK_ARR[1]}
49 log_must zpool split $TESTPOOL $POOL2 ${DISK_ARR[1]}
64 log_must zpool import $POOL2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/replacement/
H A Dreplacement_002_pos.ksh110 log_must zpool attach $opt $TESTPOOL1 $disk1 $disk2
120 log_must zpool export $TESTPOOL1
121 log_must zpool import -d $TESTDIR $TESTPOOL1
149 zpool iostat -v $TESTPOOL1 | grep "$TESTDIR/$REPLACEFILE"
157 log_note "Verify 'zpool attach' fails with non-mirrors."
165 log_mustnot zpool attach "$opt" $TESTDIR/$TESTFILE1.1 \
168 zpool iostat -v $TESTPOOL1 | grep "$TESTDIR/$REPLACEFILE"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dsetup.ksh117 # Now create several virtual disks to test zpool with
130 log_must zpool create $TESTPOOL.virt mirror /$TESTDIR/disk1.dat \
136 log_must zpool offline $TESTPOOL.virt /$TESTDIR/disk-offline.dat
140 log_must zpool create $TESTPOOL.exported /$TESTDIR/disk-export.dat
141 log_must zpool export $TESTPOOL.exported
151 log_must zpool set $prop_name=$prop_val $TESTPOOL
159 log_must zpool import -d /$TESTDIR v1-pool
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_007_neg.ksh37 # 'zpool add' should return an error with badly-formed parameters,
41 # 2. For each parameter in the array, execute 'zpool add'
55 log_assert "'zpool add' should return an error with badly-formed parameters."
67 log_mustnot zpool add ${args[i]}
71 log_pass "'zpool add' badly formed parameters fail as expected."
H A Dzpool_add_008_neg.ksh37 # 'zpool add' should return an error with nonexistent pools or vdevs
41 # 2. For each parameter in the array, execute 'zpool add'
56 log_assert "'zpool add' should return an error with nonexistent pools and vdevs"
68 log_mustnot zpool add ${args[i]}
72 log_pass "'zpool add' with nonexistent pools and vdevs fail as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_019_pos.ksh37 # zpool create cannot create pools specifying readonly properties
53 log_assert "zpool create cannot create pools specifying readonly properties"
68 log_mustnot zpool create -o ${props[$i]}=${vals[$i]} $TESTPOOL $disk
76 log_pass "zpool create cannot create pools specifying readonly properties"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade.kshlib55 log_must zpool import -d /$TESTPOOL $pool_name
67 # not using "zpool status -x" to see if the pool is healthy, as it's possible
80 log_must zpool upgrade $pool_name
97 log_must zpool destroy $pool_name
120 # as reported by zdb and zpool upgrade -v
135 # check version using zpool upgrade
136 actual=$(zpool upgrade | grep $pool$ | \
139 log_fail "$pool: zpool reported version $actual, expected $vers"
H A Dzpool_upgrade_008_pos.ksh38 # zpool upgrade should be able to upgrade pools to a given version using -V
56 log_assert "zpool upgrade should be able to upgrade pools to a given version" \
64 # a zpool upgrade operation to succeed from.
73 log_must zpool upgrade -V $ver_new $pool_name > /dev/null
78 log_pass "zpool upgrade should be able to upgrade pools to a given version" \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_001_pos.ksh35 # Create a scenario to verify the following zpool subcommands are logged.
58 log_assert "Verify zpool sub-commands which modify state are logged."
69 run_and_verify -p "$MPOOL" "zpool create $MPOOL mirror $VDEV1 $VDEV2"
70 run_and_verify -p "$MPOOL" "zpool add -f $MPOOL spare $VDEV3"
71 run_and_verify -p "$MPOOL" "zpool remove $MPOOL $VDEV3"
72 run_and_verify -p "$MPOOL" "zpool offline $MPOOL $VDEV1"
73 run_and_verify -p "$MPOOL" "zpool online $MPOOL $VDEV1"
74 run_and_verify -p "$MPOOL" "zpool attach $MPOOL $VDEV1 $VDEV4"
75 run_and_verify -p "$MPOOL" "zpool detach $MPOOL $VDEV4"
76 run_and_verify -p "$MPOOL" "zpool replac
[all...]

Completed in 125 milliseconds

1234567891011