Searched refs:zpool (Results 51 - 75 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_offline_001_neg.ksh38 # zpool offline returns an error when run as a user
48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-1.dat \
58 log_assert "zpool offline returns an error when run as a user"
60 log_mustnot zpool offline $TESTPOOL.virt /$TESTDIR/disk-1.dat
63 log_mustnot zpool offline -t $TESTPOOL.virt /$TESTDIR/disk-1.dat
66 log_pass "zpool offline returns an error when run as a user"
H A Dzpool_online_001_neg.ksh38 # zpool online returns an error when run as a user
48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-offline.dat \
58 log_assert "zpool online returns an error when run as a user"
60 log_mustnot zpool online $TESTPOOL.virt /$TESTDIR/disk-offline.dat
63 log_mustnot zpool online -t $TESTPOOL.virt /$TESTDIR/disk-offline.dat
66 log_pass "zpool online returns an error when run as a user"
H A Dzpool_replace_001_neg.ksh38 # zpool replace returns an error when run as a user
49 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-additional.dat)
58 log_assert "zpool replace returns an error when run as a user"
60 log_mustnot zpool replace $TESTPOOL.virt /$TESTDIR/disk-1.dat \
64 log_mustnot zpool replace -f $TESTPOOL.virt /$TESTDIR/disk-1.dat \
68 log_pass "zpool replace returns an error when run as a user"
H A Dcleanup.ksh37 log_must zpool destroy $TESTPOOL.virt
42 log_must zpool destroy v1-pool
H A Dzpool_detach_001_neg.ksh38 # zpool detach returns an error when run as a user
48 log_assert "zpool detach returns an error when run as a user"
50 log_mustnot zpool detach $TESTPOOL.virt /$TESTDIR/disk1.dat
52 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk1.dat)
58 log_pass "zpool detach returns an error when run as a user"
H A Dzpool_remove_001_neg.ksh38 # zpool remove returns an error when run as a user
48 log_assert "zpool remove returns an error when run as a user"
50 log_mustnot zpool remove $TESTPOOL.virt /$TESTDIR/disk-spare1.dat
52 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-spare1.dat)
59 log_pass "zpool remove returns an error when run as a user"
H A Dzpool_clear_001_neg.ksh38 # zpool clear returns an error when run as a user
42 # 1. Attempt to clear errors on a zpool
48 log_assert "zpool clear returns an error when run as a user"
50 log_mustnot zpool clear $TESTPOOL
52 log_pass "zpool clear returns an error when run as a user"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_007_pos.ksh62 log_must zpool create $TESTPOOL $type $VDEV \
71 log_must zpool export $TESTPOOL
72 log_must zpool import -d $VDIR -d $VDIR2 $TESTPOOL
81 log_must zpool destroy $TESTPOOL
82 log_must zpool import -Df -d $VDIR -d $VDIR2 $TESTPOOL
88 log_must zpool destroy -f $TESTPOOL
H A Dcleanup.ksh42 log_must zpool destroy -f $TESTPOOL
45 log_must zpool destroy -f $TESTPOOL2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_004_neg.ksh37 # Invalid pool names are rejected by zpool set bootfs
52 log_must zpool destroy $POOL
58 zpool set 2>&1 | grep bootfs > /dev/null
64 log_assert "Invalid pool names are rejected by zpool set bootfs"
88 log_mustnot zpool create $POOL /bootfs_004.$$.dat
90 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL
95 log_pass "Invalid pool names are rejected by zpool set bootfs"
H A Dbootfs_005_neg.ksh43 # 3. Verify that zpool set bootfs fails on each
57 log_must zpool destroy $pool_name
62 log_must zpool destroy $TESTPOOL
72 log_must zpool create -f $TESTPOOL $DISKS
79 log_mustnot zpool set bootfs=$POOL_NAME/$TESTFS $POOL_NAME
H A Dbootfs_001_pos.ksh50 log_must zpool destroy $TESTPOOL
58 zpool set 2>&1 | grep bootfs > /dev/null
76 log_must zpool set bootfs=$TESTPOOL/$TESTFS $TESTPOOL
77 log_must zpool set bootfs=$TESTPOOL/$TESTFS@snap $TESTPOOL
78 log_must zpool set bootfs=$TESTPOOL/clone $TESTPOOL
81 log_must zpool set bootfs=$TESTPOOL/clone $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcleanup.ksh38 log_must zpool destroy -f $TESTPOOL
41 log_must zpool destroy -f $TESTPOOL2
H A Dcache_001_pos.ksh52 log_must zpool create $TESTPOOL $type $VDEV \
59 log_must zpool remove $TESTPOOL $ldev
62 log_must zpool destroy -f $TESTPOOL
H A Dcache_004_neg.ksh53 log_must zpool create $TESTPOOL $type $VDEV \
58 log_mustnot zpool attach $TESTPOOL $ldev $ldev2
61 log_must zpool destroy -f $TESTPOOL
H A Dcache_005_neg.ksh54 log_must zpool create $TESTPOOL $type $VDEV \
58 log_mustnot zpool replace $TESTPOOL $sdev $tdev
62 log_must zpool destroy -f $TESTPOOL
H A Dcache_008_neg.ksh55 log_must zpool create $TESTPOOL $type $VDEV \
58 log_mustnot zpool add $TESTPOOL cache $cachetype $LDEV2
63 log_must zpool destroy $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_features_001_pos.ksh56 log_must zpool create $TESTPOOL1 $VDEV0
57 log_must zpool export $TESTPOOL1
63 log_must zpool import -d $DEVICE_DIR $TESTPOOL1
65 state=$(zpool list -Ho unsupported@$feature $TESTPOOL1)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/poolversion/
H A Dsetup.ksh38 log_must zpool create -o version=1 $TESTPOOL /tmp/zpool_version_1.dat
43 log_must zpool create -o version=1 $TESTPOOL2 /tmp/zpool2_version_1.dat
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/
H A Dzpool_001_neg.ksh36 # A badly formed sub-command passed to zpool(1) should
40 # 1. Create an array containg each zpool sub-command name.
61 log_assert "Execute zpool sub-command without proper parameters."
65 log_mustnot zpool ${args[i]}
70 log_pass "Badly formed zpool sub-commands fail as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_001_pos.ksh36 # Exported pools should no longer be visible from 'zpool list'.
53 log_must zpool import -d $dir $TESTPOOL
65 log_must zpool export $TESTPOOL
68 log_fail "$TESTPOOL unexpectedly found in 'zpool list' output."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_001_neg.ksh36 # A badly formed parameter passed to 'zpool scrub' should
40 # 1. Create an array containing bad 'zpool scrub' parameters.
54 log_assert "Execute 'zpool scrub' using invalid parameters."
58 log_mustnot zpool scrub ${args[i]}
63 log_pass "Badly formed 'zpool scrub' parameters fail as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade_006_neg.ksh52 log_mustnot zpool upgrade $NO_POOL
H A Dzpool_upgrade_009_neg.ksh38 # zpool upgrade -V shouldn't be able to upgrade a pool to an unknown version
53 log_assert "zpool upgrade -V shouldn't be able to upgrade a pool to" \
60 log_mustnot zpool upgrade -V 999 $pool_name
61 log_mustnot zpool upgrade -V 999
65 log_pass "zpool upgrade -V shouldn't be able to upgrade a pool to" \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_list/
H A Dzpool_list_002_neg.ksh36 # Executing 'zpool list' command with bad options fails.
39 # 1. Create an array of badly formed 'zpool list' options.
49 log_assert "Executing 'zpool list' with bad options fails"
53 log_mustnot zpool list ${args[i]}
57 log_pass "Executing 'zpool list' with bad options fails"

Completed in 118 milliseconds

1234567891011