Searched refs:zpool (Results 76 - 100 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_010_neg.ksh60 log_must zpool create $TESTPOOL ${DISKS#$dsk1}
63 log_mustnot zpool add $TESTPOOL cache /dev/rdsk/${dsk1}s0
67 log_mustnot zpool add $TESTPOOL cache $VDEV2
73 log_mustnot zpool add $TESTPOOL cache "/dev/rlofi/${lofidev#/dev/lofi/}"
80 log_must zpool create $TESTPOOL2 $VDEV2
82 log_mustnot zpool add $TESTPOOL cache /dev/zvol/rdsk/$TESTPOOL2/$TESTVOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_018_pos.ksh38 # zpool create can create pools with specified properties
54 log_assert "zpool create can create pools with specified properties"
73 log_must zpool create -o ${props[$i]}=${vals[$i]} $TESTPOOL $disk
77 zpool get all $TESTPOOL
81 log_must zpool destroy $TESTPOOL
89 log_must zpool create -o delegation=off -o cachefile=$CPATH $TESTPOOL $disk
93 zpool get all $TESTPOOL
100 zpool get all $TESTPOOL
104 log_pass "zpool create can create pools with specified properties"
H A Dzpool_create_020_pos.ksh38 # zpool create -R works as expected
45 # 5. Verify that no reference to the pool is found in /etc/zfs/zpool.cache
60 log_assert "zpool create -R works as expected"
69 log_must zpool create -R /${TESTPOOL}.root $TESTPOOL $disk
72 log_fail "Mountpoint was not create when using zpool with -R flag!"
81 log_must zpool get all $TESTPOOL
82 zpool get all $TESTPOOL > /tmp/values.$$
88 log_fail "zpool property \'cachefile\' was not set to \'none\'."
95 log_fail "zpool property root was not found in pool output."
100 # finally, check that the pool has no reference in /etc/zfs/zpool
[all...]
H A Dzpool_create_008_pos.ksh37 # 'zpool create' have to use '-f' scenarios
51 log_must zpool create -f $TESTPOOL ${disk}s${SLICE0}
53 log_must zpool import $TESTPOOL
109 log_assert "'zpool create' have to use '-f' scenarios"
132 log_mustnot zpool create $TESTPOOL ${disk}s${SLICE0}
133 log_must zpool create -f $TESTPOOL ${disk}s${SLICE0}
138 log_must zpool create -f $TESTPOOL $disk
142 log_must zpool export $TESTPOOL
144 log_mustnot zpool create $TESTPOOL1 ${disk}s${SLICE3} spare ${disk}s${SLICE1}
149 log_pass "'zpool creat
[all...]
H A Dzpool_create_009_neg.ksh38 # devices, 'zpool create' should failed.
66 "same devices, 'zpool create' should fail."
82 log_mustnot zpool create -f $TESTPOOL1 $opt $disk
87 log_mustnot zpool create -f $TESTPOOL1 $opt ${DISKS% *}
91 log_mustnot zpool create -f $TESTPOOL $opt $disk $disk
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_004_pos.ksh44 # 4. Verify 'zpool import -D' succeed.
65 log_must zpool create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2
72 log_must zpool destroy $TESTPOOL1
78 log_must zpool import -d $DEVICE_DIR/newdir1 -d $DEVICE_DIR/newdir2 \
80 log_must zpool destroy -f $TESTPOOL1
85 log_must zpool import -d $DEVICE_DIR/newdir2 -D -f $target
86 log_must zpool destroy -f $TESTPOOL1
88 log_pass "Destroyed pools devices was moved, 'zpool import -D' passed."
H A Dzpool_import_005_pos.ksh42 # 3. Verify 'zpool import -D' succeed.
63 log_must zpool create $TESTPOOL1 $VDEV0 $VDEV1 $VDEV2
70 log_must zpool destroy $TESTPOOL1
74 log_must zpool import -d $DEVICE_DIR -D -f $target
75 log_must zpool destroy -f $TESTPOOL1
81 log_must zpool import -d $DEVICE_DIR/newdir1 -d $DEVICE_DIR/newdir2 \
83 log_must zpool destroy -f $TESTPOOL1
85 log_pass "Destroyed pools devices was renamed, 'zpool import -D' passed."
H A Dzpool_import_013_neg.ksh38 # 'zpool import' will prompt the warning and fails.
42 # 2. Verify 'zpool import' will fail.
43 # 3. Verify 'zpool import -f' succeed.
63 poolexists $POOL_NAME && log_must zpool destroy $POOL_NAME
68 log_assert "'zpool import' fails for pool that was not cleanly exported"
72 log_mustnot zpool import -d /$TESTPOOL $POOL_NAME
73 log_must zpool import -d /$TESTPOOL -f $POOL_NAME
75 log_pass "'zpool import' fails for pool that was not cleanly exported"
H A Dzpool_import_features_003_pos.ksh61 log_must zpool create $TESTPOOL1 $VDEV0
62 log_must zpool export $TESTPOOL1
72 log_mustnot zpool import -d $DEVICE_DIR $TESTPOOL1
75 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 | grep readonly"
79 log_mustnot eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \
85 log_must eval "zpool import -d $DEVICE_DIR $TESTPOOL1 \
90 log_must zpool import -o readonly=on -d $DEVICE_DIR $TESTPOOL1
93 state=$(zpool list -Ho unsupported@$feature $TESTPOOL1)
100 state=$(zpool list -Ho unsupported@$feature $TESTPOOL1)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog.kshlib37 log_must zpool destroy -f $TESTPOOL
40 log_must zpool destroy -f $TESTPOOL2
45 # Try zpool status/iostat for given pool
54 zpool status -xv $pool > /dev/null 2>&1
57 zpool iostat > /dev/null 2>&1
64 zpool iostat -v 1 3 > /dev/null
97 set -A dev_stat_tab $(zpool status -v $pool | nawk 'BEGIN {start=0} \
H A Dslog_002_pos.ksh56 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV
57 log_must zpool add $TESTPOOL log $logtype $LDEV
62 log_must zpool destroy -f $TESTPOOL
H A Dslog_003_pos.ksh58 log_must zpool create $TESTPOOL $type $VDEV \
60 log_must zpool add $TESTPOOL \
68 log_must zpool destroy -f $TESTPOOL
H A Dslog_004_pos.ksh56 log_must zpool create $TESTPOOL $type $VDEV \
61 log_must zpool attach $TESTPOOL $ldev $ldev2
68 log_must zpool destroy -f $TESTPOOL
H A Dslog_005_pos.ksh54 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \
57 log_must zpool detach $TESTPOOL $ldev
61 log_must zpool destroy -f $TESTPOOL
H A Dslog_006_pos.ksh56 log_must zpool create $TESTPOOL $type $VDEV \
60 log_must zpool replace $TESTPOOL $sdev $tdev
67 log_must zpool destroy -f $TESTPOOL
H A Dslog_009_neg.ksh56 log_must zpool create $TESTPOOL $type $VDEV \
59 log_mustnot zpool add $TESTPOOL log $logtype $LDEV2
64 log_must zpool destroy $TESTPOOL
H A Dslog_012_neg.ksh53 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \
64 log_must zpool scrub $TESTPOOL
69 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/online_offline/
H A Donline_offline_002_neg.ksh56 log_must zpool online $TESTPOOL $disk
82 zpool list -v $TESTPOOL | grep raidz >/dev/null 2>&1 && pooltype='raidz'
89 log_must zpool online $TESTPOOL ${disks[$i]}
97 log_must zpool offline $TESTPOOL ${disks[$j]}
104 log_must zpool offline $TESTPOOL ${disks[$i]}
112 log_mustnot zpool offline $TESTPOOL ${disks[$j]}
119 log_must zpool online $TESTPOOL ${disks[$i]}
H A Donline_offline_001_pos.ksh55 log_must zpool online $TESTPOOL $disk
74 log_must zpool offline $TESTPOOL $disk
81 log_must zpool online $TESTPOOL $disk
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_offline/
H A Dzpool_offline_001_pos.ksh36 # Executing 'zpool offline' with valid parameters succeeds.
39 # 1. Create an array of correctly formed 'zpool offline' options
58 log_must zpool online $TESTPOOL $disk
67 log_assert "Executing 'zpool offline' with correct options succeeds"
82 log_must zpool offline ${args[$i]} $TESTPOOL $disk
88 log_mustnot zpool offline ${args[$i]} $TESTPOOL $disk
100 log_note "Issuing repeated 'zpool offline' commands succeeds."
109 log_must zpool offline ${args[$index]} $TESTPOOL $disk
118 log_must zpool online $TESTPOOL $disk
125 log_pass "'zpool offlin
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_002_neg.ksh56 log_must zpool destroy $TESTPOOL
64 zpool set 2>&1 | grep bootfs > /dev/null
79 log_mustnot zpool set bootfs=$TESTPOOL/vol $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_snapshot/
H A Dzfs_snapshot_008_neg.ksh35 # 1. Create 2 separate zpools, zpool name lenghts must be the same.
46 log_must zpool destroy -f $pool
63 log_must zpool create $SNAPPOOL1 $SNAPDEV1
64 log_must zpool create $SNAPPOOL2 $SNAPDEV2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_clear/
H A Dzpool_clear_002_neg.ksh37 # A badly formed parameter passed to 'zpool clear' should
41 # 1. Create an array containing bad 'zpool clear' parameters.
51 log_must zpool destroy -f $TESTPOOL1
56 log_assert "Execute 'zpool clear' using invalid parameters."
63 log_must zpool create $TESTPOOL1 $file
71 log_mustnot zpool clear ${args[i]}
76 log_pass "Invalid parameters to 'zpool clear' fail as expected."
H A Dzpool_clear_003_neg.ksh37 # Verify 'zpool clear' cannot used to spare device.
50 log_must zpool destroy -f $TESTPOOL1
58 log_assert "Verify 'zpool clear' cannot clear error for spare device."
68 log_must zpool create $TESTPOOL1 raidz $TESTDIR/file.1 $TESTDIR/file.2 \
71 log_mustnot zpool clear $TESTPOOL1 $TESTDIR/file.4
73 log_pass "'zpool clear' works on spare device failed as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_005_pos.ksh34 log_must zpool create -f $TESTPOOL $DISK
46 log_must zpool export $TESTPOOL
49 log_must zpool import $TESTPOOL

Completed in 86 milliseconds

1234567891011