Searched refs:zpool (Results 101 - 125 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_009_neg.ksh37 # 'zpool add' should return fail if vdevs are the same or vdev is
58 log_assert "'zpool add' should fail if vdevs are the same or vdev is " \
66 log_mustnot zpool add -f "$TESTPOOL" ${disk}s${SLICE1} ${disk}s${SLICE1}
67 log_mustnot zpool add -f "$TESTPOOL" ${disk}s${SLICE0}
69 log_pass "'zpool add' get fail as expected if vdevs are the same or vdev is " \
H A Dzpool_add_005_pos.ksh37 # 'zpool add' should return fail if
65 log_assert "'zpool add' should fail with inapplicable scenarios."
81 log_mustnot zpool add -f "$TESTPOOL" ${disk}s${SLICE1}
82 log_mustnot zpool add -f "$TESTPOOL" $mnttab_dev
83 log_mustnot zpool add -f "$TESTPOOL" $vfstab_dev
87 log_mustnot zpool add -f "$TESTPOOL" $dump_dev
89 log_pass "'zpool add' should fail with inapplicable scenarios."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_002_pos.ksh37 # 'zpool create -f <pool> <vspec> ...' can successfully create a
70 log_assert "'zpool create -f <pool> <vspec> ...' can successfully create" \
87 log_must zpool export $TESTPOOL
88 log_note "'zpool create' without '-f' will fail " \
90 log_mustnot zpool create "$TESTPOOL1" "${disk}s${SLICE0}"
94 log_note "'zpool create' without '-f' will fail " \
96 log_mustnot zpool create "$TESTPOOL2" "${disk}s${SLICE1}"
100 log_note "'zpool create' mirror without '-f' will fail " \
102 log_mustnot zpool create "$TESTPOOL3" "mirror" $TESTDIR0/$FILEDISK0 $TESTDIR1/$FILEDISK1
106 log_note "'zpool creat
[all...]
H A Dzpool_create_021_pos.ksh37 # 'zpool create -O property=value pool' can successfully create a pool
55 log_assert "'zpool create -O property=value pool' can successfully create a pool \
78 log_must zpool create -O ${RW_FS_PROP[$i]} -f $TESTPOOL $DISKS
80 log_fail "zpool create $TESTPOOL fail."
83 log_must zpool destroy $TESTPOOL
87 log_pass "'zpool create -O property=value pool' can successfully create a pool \
H A Dzpool_create_022_pos.ksh37 # 'zpool create -O property=value pool' can successfully create a pool
50 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
55 log_assert "'zpool create -O property=value pool' can successfully create a pool \
83 log_must zpool create $opts -f $TESTPOOL $DISKS
84 datasetexists $TESTPOOL || log_fail "zpool create $TESTPOOL fail."
93 log_pass "'zpool create -O property=value pool' can successfully create a pool \
H A Dzpool_create_012_neg.ksh37 # 'zpool create' will fail with formal disk slice in swap
58 log_assert "'zpool create' should fail with disk slice in swap."
63 log_mustnot zpool create $opt $TESTPOOL $sdisk
67 log_pass "'zpool create' passed as expected with inapplicable scenario."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_destroy/
H A Dzpool_destroy_003_neg.ksh36 # 'zpool destroy' should return an error with badly formed parameters,
40 # 2. For each parameter in the array, execute 'zpool destroy'
49 log_assert "'zpool destroy' should return an error with badly-formed parameters."
53 log_mustnot zpool destroy ${args[i]}
57 log_pass "'zpool destroy' badly formed parameters fail as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_003_neg.ksh36 # 'zpool export' should return an error with badly formed parameters,
40 # 2. For each parameter in the array, execute 'zpool export'
50 log_must zpool import -d $dir $TESTPOOL
61 log_assert "'zpool export' should return an error with badly-formed parameters."
65 log_mustnot zpool export ${args[i]}
69 log_pass "'zpool export' badly formed parameters fail as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_003_pos.ksh58 log_must zpool create $TESTPOOL1 $VDEV0 $VDEV1
59 log_must zpool destroy $TESTPOOL1
62 # 'pool:' is the keywords of 'zpool import -D' output.
64 log_mustnot eval "zpool import -d $DEVICE_DIR | grep pool:"
65 log_must eval "zpool import -d $DEVICE_DIR -D | grep pool:"
H A Dzpool_import_all_001_pos.ksh38 # Verify that 'zpool import -a' succeeds as root.
68 log_must zpool export $pool
81 for pool in `zpool import | grep "pool:" | awk '{print $2}'`; do
82 zpool import -f $pool
85 for pool in `zpool import -d $DEVICE_DIR | grep "pool:" | awk '{print $2}'`; do
86 log_must zpool import -d $DEVICE_DIR -f $pool
96 log_must zpool export ${TESTPOOL}-$id
101 log_must zpool import -f ${TESTPOOL}-$id $TESTPOOL
150 log_assert "Verify that 'zpool import -a' succeeds as root."
156 log_must zpool expor
[all...]
H A Dzpool_import_rename_001_pos.ksh49 # 5. Verify it exists in the 'zpool list' output.
67 log_must zpool export "${pools[i]}-new"
72 log_must zpool import ${devs[i]} \
77 log_must zpool import ${devs[i]} ${pools[i]}
118 log_must zpool export ${pools[i]}
129 log_must zpool import ${devs[i]} ${options[j]} \
147 log_must zpool export "${pools[i]}-new"
156 log_must zpool import ${devs[i]} $target ${pools[i]}
167 log_must zpool create overflow $VDEV_FILE
169 ID=$(zpool ge
[all...]
H A Dzpool_import_009_neg.ksh37 # Try each 'zpool import' with inapplicable scenarios to make sure
71 log_must zpool export ${pools[i]}
74 log_must zpool import ${devs[i]} ${pools[i]}
89 log_assert "Badly-formed 'zpool import' with inapplicable scenarios " \
94 log_must zpool export $TESTPOOL
98 log_mustnot zpool import ${args[i]}
102 log_pass "Badly formed 'zpool import' with inapplicable scenarios " \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_set/
H A Dzpool_set_003_neg.ksh37 # zpool set cannot set a readonly property
48 zpool destroy $TESTPOOL
57 log_assert "zpool set cannot set a readonly property"
60 log_must zpool create $TESTPOOL /tmp/zpool_set_003.$$.dat
66 log_mustnot eval "zpool set ${props[$i]}=${vals[$i]} $TESTPOOL \
71 log_pass "zpool set cannot set a readonly property"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_status/
H A Dzpool_status_001_pos.ksh36 # Executing 'zpool status' command with bad options fails.
39 # 1. Create an array of badly formed 'zpool status' options
51 log_assert "Executing 'zpool status' with bad options fails"
57 log_mustnot zpool status ${args[$i]}
62 log_pass "'zpool status' command with bad options failed as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_iostat/
H A Dzpool_iostat_001_neg.ksh36 # Verify that 'zpool iostat' can be executed as non-root.
55 log_assert "zpool iostat [pool_name ...] [interval]"
59 log_must zpool ${args[i]}
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/zpool_list/
H A Dzpool_list_001_pos.ksh36 # Verify that 'zpool list' succeeds as non-root.
55 log_assert "zpool list [-H] [-o filed[,filed]*] [<pool_name> ...]"
59 log_must zpool ${args[i]}
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_006_pos.ksh33 log_must zpool create -f $TESTPOOL $DISK
37 log_must zpool add -f $TESTPOOL ${DISK_ARR[1]}
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_expand/
H A Dzpool_expand_003_neg.ksh37 # Once set zpool autoexpand=off, zpool can *NOT* autoexpand by
54 log_must zpool destroy $TESTPOOL1
66 log_assert "zpool can not expand if set autoexpand=off after LUN expansion"
73 log_must zpool create $TESTPOOL1 $type /dev/zvol/dsk/$VFS/vol1 \
78 log_fail "zpool $TESTPOOL1 autoexpand should off but is " \
92 # check for zpool history for the pool size expansion
93 zpool history -il $TESTPOOL1 | grep "pool '$TESTPOOL1' size:" | \
107 log_must zpool destroy $TESTPOOL1
115 log_pass "zpool ca
[all...]
H A Dzpool_expand_002_pos.ksh37 # After zpool online -e poolname zvol vdevs, zpool can autoexpand by
46 # 5 Use zpool online -e to online the zvol vdevs
55 log_must zpool destroy $TESTPOOL1
67 log_assert "zpool can expand after zpool online -e zvol vdevs on LUN expansion"
74 log_must zpool create $TESTPOOL1 $type /dev/zvol/dsk/$VFS/vol1 \
80 log_fail "zpool $TESTPOOL1 autoexpand should off but is " \
92 log_must zpool online -e $TESTPOOL1 /dev/zvol/dsk/$VFS/vol$i
107 # check for zpool histor
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_online/
H A Dzpool_online_001_pos.ksh36 # Executing 'zpool online' with valid parameters succeeds.
39 # 1. Create an array of correctly formed 'zpool online' options
56 log_must zpool online $TESTPOOL $disk
65 log_assert "Executing 'zpool online' with correct options succeeds"
78 log_must zpool offline $TESTPOOL $disk
84 log_must zpool online ${args[$i]} $TESTPOOL $disk
94 log_note "Issuing repeated 'zpool online' commands succeeds."
103 log_must zpool online ${args[$index]} $TESTPOOL $disk
113 log_pass "'zpool online' with correct options succeeded"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_get_001_neg.ksh38 # zpool get works when run as a user
48 log_assert "zpool get works when run as a user"
57 ACTUAL=$( zpool get $PROP $TESTPOOL | grep $PROP | awk '{print $1}' )
65 log_must zpool get all $TESTPOOL
67 log_pass "zpool get works when run as a user"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/rsend/
H A Drsend_009_pos.ksh51 log_must zpool destroy -f bpool
54 log_must zpool destroy -f spool
63 log_must zpool create bpool $TESTDIR/bfile
64 log_must zpool create spool $TESTDIR/sfile
H A Dsend-c_lz4_disabled.ksh43 log_must zpool create $POOL2 $DISK2
47 datasetexists $POOL2 && log_must zpool destroy $POOL2
48 log_must zpool create -d $POOL2 $DISK2
53 log_must zpool create $pool_opt $POOL3 $DISK3
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_001_pos.ksh55 log_must zpool create $TESTPOOL $type $VDEV \
63 log_must zpool destroy -f $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_unmount/
H A Dzfs_unmount_009_pos.ksh46 # 8. Verify that zpool destroy the pool will succeed
47 # 9. Verify 'ls' 'cd /' 'zpool list' and etc will succeed
64 log_must zpool create $TESTPOOL $DISK
117 log_must zpool destroy -f $TESTPOOL
123 log_must eval zpool list > /dev/null 2>&1
124 log_must eval zpool status > /dev/null 2>&1
125 zpool iostat > /dev/null 2>&1

Completed in 103 milliseconds

1234567891011