Searched refs:zpool (Results 1 - 25 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_history_001_neg.ksh38 # zpool history works when run as a user
47 log_assert "zpool history returns an error when run as a user"
49 log_mustnot zpool history
50 log_mustnot zpool history $TESTPOOL
51 log_mustnot zpool history -i $TESTPOOL
52 log_mustnot zpool history -l $TESTPOOL
53 log_mustnot zpool history -il $TESTPOOL
55 log_assert "zpool history returns an error when run as a user"
H A Dzpool_upgrade_001_neg.ksh38 # zpool upgrade returns an error when run as a user
48 log_assert "zpool upgrade returns an error when run as a user"
51 # zpool upgrade returns 0 when it can't do anything
52 log_must zpool upgrade $TESTPOOL.virt
55 log_mustnot zpool upgrade v1-pool
58 # of zpool upgrade anymore
59 RESULT=$(zpool upgrade | grep v1-pool)
65 log_pass "zpool upgrade returns an error when run as a user"
H A Dzpool_export_001_neg.ksh38 # zpool export returns an error when run as a user
47 RESULT=$(zpool list | grep $TESTPOOL.virt )
57 log_assert "zpool export returns an error when run as a user"
59 log_mustnot zpool export $TESTPOOL.virt
62 log_mustnot zpool export -f $TESTPOOL.virt
65 log_pass "zpool export returns an error when run as a user"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_features_002_pos.ksh45 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
50 for prop in $(zpool get all $TESTPOOL | awk '$2 ~ /feature@/ { print $2 }'); do
51 state=$(zpool list -Ho "$prop" $TESTPOOL)
60 log_assert "'zpool create -d' creates pools with all features disabled"
62 log_must zpool create -f -d $TESTPOOL $DISKS
64 log_must zpool destroy -f $TESTPOOL
66 log_must zpool create -f -o version=28 $TESTPOOL $DISKS
H A Dzpool_create_features_001_pos.ksh46 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
51 for state in $(zpool get all $TESTPOOL | \
61 log_assert "'zpool create' creates pools with all features enabled"
63 log_must zpool create -f $TESTPOOL $DISKS
65 log_must zpool destroy -f $TESTPOOL
67 log_must zpool create -f -o feature@async_destroy=enabled $TESTPOOL $DISKS
70 log_pass "'zpool create' creates pools with all features enabled"
H A Dzpool_create_features_003_pos.ksh46 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
51 log_assert "'zpool create -d -o feature@async_destroy=enabled' only " \
54 log_must zpool create -f -d -o feature@async_destroy=enabled $TESTPOOL $DISKS
56 state=$(zpool list -Ho feature@async_destroy $TESTPOOL)
61 for prop in $(zpool get all $TESTPOOL | awk '$2 ~ /feature@/ { print $2 }'); do
62 state=$(zpool list -Ho "$prop" $TESTPOOL)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade_001_pos.ksh37 # Executing 'zpool upgrade -v' command succeeds, prints a description of legacy
48 log_assert "Executing 'zpool upgrade -v' command succeeds"
50 log_must zpool upgrade -v
55 log_must eval "zpool upgrade -v | head -1 | grep 'feature flags'"
57 zpool upgrade -v > /tmp/zpool-versions.$$
60 # Current output for 'zpool upgrade -v' has different indent space
67 log_must eval "awk '/^ $version / { print $1 }' /tmp/zpool-versions.$$ | grep $version"
69 rm /tmp/zpool-versions.$$
71 log_pass "Executing 'zpool upgrad
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_002_pos.ksh40 # 2. zpool scrub the pool
41 # 3. Verify zpool scrub -s succeed when the system is scrubbing.
48 log_must zpool scrub $TESTPOOL
49 log_must zpool scrub -s $TESTPOOL
H A Dzpool_scrub_005_pos.ksh49 log_must zpool scrub $TESTPOOL
50 log_must zpool detach $TESTPOOL $DISK2
51 log_must zpool attach $TESTPOOL $DISK1 $DISK2
57 log_must zpool scrub $TESTPOOL
58 log_must zpool detach $TESTPOOL $DISK1
59 log_must zpool attach $TESTPOOL $DISK2 $DISK1
H A Dzpool_scrub_004_pos.ksh49 log_must zpool detach $TESTPOOL $DISK2
50 log_must zpool attach $TESTPOOL $DISK1 $DISK2
52 log_mustnot zpool scrub $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_001_pos.ksh39 # 1. Run zpool set
45 log_assert "zpool set usage message is displayed when called with no arguments"
47 zpool set > /dev/null 2>&1
51 log_fail "\"zpool set\" exit status $RET should be equal to 2."
54 OUTPUT=$(zpool set 2>&1 | grep -i usage)
57 log_fail "Usage message for zpool set did not contain the word 'usage'."
60 log_pass "zpool set usage message is displayed when called with no arguments"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool/
H A Dzpool_003_pos.ksh36 # Verify debugging features of zpool such as ABORT and freeze/unfreeze
40 # 1. Create an array containg each zpool options.
41 # 2. For each element, execute the zpool command.
47 log_assert "Debugging features of zpool should succeed."
49 log_must zpool -? > /dev/null 2>&1
52 log_must zpool freeze $TESTPOOL
54 log_mustnot zpool freeze $TESTPOOL
55 log_mustnot zpool freeze ${TESTPOOL%%/*}
58 log_mustnot zpool freeze fakepool
64 zpool > /de
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/poolversion/
H A Dpoolversion_002_pos.ksh37 # zpool set version can only increment pool version
47 log_assert "zpool set version can only increment pool version"
49 log_must zpool set version=6 $TESTPOOL2
53 VERSION=$(zpool get version $TESTPOOL2| grep version | awk '{print $3}')
58 log_must zpool set bootfs=$TESTPOOL2 $TESTPOOL2
61 log_mustnot zpool set version=5 $TESTPOOL2
62 log_mustnot zpool set version=-1 $TESTPOOL2
65 VERSION=$(zpool get version $TESTPOOL2 | grep version | awk '{print $3}')
71 log_pass "zpool set version can only increment pool version"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_006_pos.ksh47 zpool set 2>&1 | grep bootfs > /dev/null
62 log_must zpool set bootfs=$POOL/$TESTFS $POOL
63 VAL=$(zpool get bootfs $POOL | tail -1 | awk '{print $3}' )
66 log_must zpool status -v $POOL
70 log_must zpool destroy $POOL
76 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL
77 VAL=$(zpool get bootfs $POOL | tail -1 | awk '{print $3}' )
80 log_must zpool status -v $POOL
83 log_must zpool destroy $POOL
89 log_must zpool destro
[all...]
H A Dbootfs_003_pos.ksh51 log_must zpool destroy $POOL
57 zpool set 2>&1 | grep bootfs > /dev/null
65 log_assert "Valid pool names are accepted by zpool set bootfs"
73 log_must zpool create $POOL /bootfs_003.$$.dat
76 log_must zpool set bootfs=$POOL/$TESTFS $POOL
77 RES=$(zpool get bootfs $POOL | tail -1 | awk '{print $3}' )
82 log_must zpool destroy $POOL
86 log_pass "Valid pool names are accepted by zpool set bootfs"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_007_pos.ksh66 log_must zpool create $TESTPOOL1 raidz $VDEV0 $VDEV1 $VDEV2 $VDIV3
73 log_must zpool destroy $TESTPOOL1
75 log_must zpool create $TESTPOOL2 $VDEV0
76 log_must zpool import -d $DEVICE_DIR -D -f $target
77 log_must zpool destroy $TESTPOOL1
79 log_must zpool destroy $TESTPOOL2
81 log_must zpool import -d $DEVICE_DIR -D -f $target
82 log_must zpool destroy $TESTPOOL1
86 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
87 log_mustnot zpool impor
[all...]
H A Dzpool_import_008_pos.ksh66 log_must zpool create $TESTPOOL1 raidz2 $VDEV0 $VDEV1 $VDEV2 $VDIV3
73 log_must zpool destroy $TESTPOOL1
75 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
76 log_must zpool import -d $DEVICE_DIR -D -f $target
77 log_must zpool destroy $TESTPOOL1
79 log_must zpool destroy $TESTPOOL2
81 log_must zpool import -d $DEVICE_DIR -D -f $target
82 log_must zpool destroy $TESTPOOL1
87 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1 $VDEV2
88 log_mustnot zpool impor
[all...]
H A Dzpool_import_010_pos.ksh37 # 'zpool -D -a' can import all the specified directories destroyed pools.
45 # 6. Verify 'zpool import -D -a' recover all the pools.
65 log_assert "'zpool -D -a' can import all the specified directories " \
71 log_must zpool create $poolA mirror $VDEV0 $VDEV1 $VDEV2 $VDEV3 $VDEV4
72 log_must zpool destroy $poolA
74 log_must zpool create $poolB $VDEV1
75 log_must zpool destroy $poolB
77 log_must zpool create $poolC raidz2 $VDEV2 $VDEV3 $VDEV4
78 log_must zpool destroy $poolC
80 log_must zpool creat
[all...]
H A Dzpool_import_011_neg.ksh37 # For strip pool, any destroyed pool devices was demaged, zpool import -D
63 "zpool import -D will failed."
66 log_must zpool create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2
73 log_must zpool destroy $TESTPOOL1
74 log_must zpool create $TESTPOOL2 $VDEV2
76 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
78 log_must zpool destroy $TESTPOOL2
79 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh36 # Verify zpool export succeed or fail with spare.
40 # 2. Verify zpool export one pool succeed.
43 # 5. Verify zpool export the pool succeed.
46 # 8. Verify zpool export the pool fail.
47 # 9. Verify zpool export the pool with "-f" succeed.
56 datasetexists $TESTPOOL1 || log_must zpool import -d $mntpnt $TESTPOOL1
69 log_assert "Verify zpool export succeed or fail with spare."
81 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
82 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4
84 log_must zpool expor
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Dsetup.ksh38 log_must zpool create $POOL $DISK1
39 log_must zpool create $POOL2 $DISK2
40 log_must zpool create $POOL3 $DISK3
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_006_pos.ksh56 log_must zpool create $TESTPOOL $type $VDEV \
65 log_must zpool export $TESTPOOL
66 log_must zpool import -d $VDIR $TESTPOOL
75 log_must zpool destroy $TESTPOOL
76 log_must zpool import -Df -d $VDIR $TESTPOOL
82 log_must zpool destroy -f $TESTPOOL
H A Dcache_011_pos.ksh50 log_must zpool destroy -f $TESTPOOL
59 log_must zpool create $TESTPOOL $type $VDEV \
62 log_must zpool remove $TESTPOOL $LDEV
65 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_014_pos.ksh52 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \
60 log_must zpool scrub $TESTPOOL
62 log_must zpool status $TESTPOOL 2>&1 >/dev/null
64 zpool status -v $TESTPOOL | \
70 zpool status -v $TESTPOOL | grep logs | \
76 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_send/
H A Dzfs_send_005_pos.ksh49 poolexists $TESTPOOL && log_must zpool export $TESTPOOL
50 log_must zpool import $TESTPOOL
61 log_must zpool export $TESTPOOL
62 log_must zpool import -o readonly=on $TESTPOOL

Completed in 196 milliseconds

1234567891011