Searched refs:zpool (Results 176 - 200 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/inuse/
H A Dinuse_003_pos.ksh48 # 8. try to create a zpool during the ufsrestore
141 log_note "Attempt to zpool the source device in use by ufsdump"
142 log_mustnot zpool create $TESTPOOL1 "$disk1"
146 log_mustnot zpool create $TESTPOOL1 "$FS_SIDE2" spare "$disk1"
166 log_note "Attempt to zpool the restored device in use by ufsrestore"
167 log_mustnot zpool create -f $TESTPOOL2 "$disk1"
172 log_mustnot zpool create -f $TESTPOOL2 "$FS_SIDE2" spare "$disk1"
175 log_pass "Unable to zpool over a device in use by ufsdump or ufsrestore"
H A Dinuse_008_pos.ksh50 poolexists $TESTPOOL1 || zpool import $TESTPOOL1 >/dev/null 2>&1
96 log_must zpool export $TESTPOOL1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/replacement/
H A Dreplacement_001_pos.ksh110 log_must zpool replace $opt $TESTPOOL1 $disk1 $disk2
120 log_must zpool export $TESTPOOL1
121 log_must zpool import -d $TESTDIR $TESTPOOL1
150 zpool iostat -v $TESTPOOL1 | grep "$TESTDIR/$REPLACEFILE"
/illumos-gate/usr/src/cmd/zpool/
H A DMakefile27 PROG= zpool
31 POFILE= zpool.po
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_003_pos.ksh34 log_must zpool create -f $TESTPOOL mirror $DISKS
H A Dvdev_zaps.kshlib104 log_must zpool destroy -f $TESTPOOL
110 log_must zpool destroy -f $POOL2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_007_neg.ksh54 log_mustnot zpool create $TESTPOOL $type $VDEV \
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile_003_pos.ksh39 # Setting altroot=<path> and cachefile=$CPATH for zpool create is succeed
71 log_assert "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
83 log_must zpool create -o altroot=$TESTDIR -o cachefile=${opts[i]} \
96 log_must zpool destroy $TESTPOOL
100 log_pass "Setting altroot=path and cachefile=$CPATH for zpool create succeed."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zfs_receive/
H A Dzfs_receive_013_pos.ksh44 zpool destroy $temppool
53 log_must zpool create $temppool $tpoolfile
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_006_pos.ksh37 # Adding a large number of file based vdevs to a zpool works.
59 log_assert "Adding a large number of file based vdevs to a zpool works."
70 log_must zpool add -f "$TESTPOOL1" $vdevs_list
75 log_mustnot zpool add -f "$TESTPOOL1" ${TESTDIR}/broken_file
78 log_pass "Adding a large number of file based vdevs to a zpool works."
H A Dzpool_add_001_pos.ksh37 # 'zpool add <pool> <vdev> ...' can successfully add the specified
56 log_assert "'zpool add <pool> <vdev> ...' can add devices to the pool."
95 log_must zpool add -f "$TESTPOOL" ${keywords[i]} $vdev
106 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev
117 log_must zpool add "$TESTPOOL" ${keywords[i]} $vdev
128 log_pass "'zpool add <pool> <vdev> ...' executes successfully"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_015_neg.ksh38 # 'zpool create' will fail with zfs vol device in swap
42 # 1. Create a zpool
43 # 2. Create a zfs vol on zpool
78 log_assert "'zpool create' should fail with zfs vol device in swap."
88 log_mustnot zpool create $opt $TESTPOOL1 /dev/zvol/dsk/${vol_name}
94 log_must zpool destroy $TESTPOOL
96 log_pass "'zpool create' passed as expected with inapplicable scenario."
H A Dzpool_create_016_pos.ksh38 # 'zpool create' will success with no device in swap
43 # 2. create a zpool
81 log_assert "'zpool create' should success with no device in swap."
93 log_must zpool create $TESTPOOL $pool_dev
94 log_must zpool destroy $TESTPOOL
96 log_pass "'zpool create' passed as expected with applicable scenario."
H A Dzpool_create_006_pos.ksh36 # Verify zpool create succeed with multiple keywords combination.
41 # 3. Verify 'zpool create' succeed with valid keywords combination.
53 log_assert "Verify 'zpool create' succeed with keywords combination."
110 log_must zpool create $TESTPOOL1 ${valid_args[$i]}
112 log_must zpool destroy -f $TESTPOOL1
119 log_mustnot zpool create $TESTPOOL1 ${forced_args[$i]}
120 log_must zpool create -f $TESTPOOL1 ${forced_args[$i]}
122 log_must zpool destroy -f $TESTPOOL1
127 log_pass "'zpool create' succeed with keywords combination."
H A Dzpool_create_005_pos.ksh37 # 'zpool create [-R root][-m mountpoint] <pool> <vdev> ...' can create an
50 log_must zpool destroy -f $TESTPOOL
57 log_assert "'zpool create [-R root][-m mountpoint] <pool> <vdev> ...' can create" \
93 log_must zpool destroy -f $TESTPOOL
95 log_must zpool create $opt $TESTPOOL ${pooltype[i]} \
130 log_pass "'zpool create [-R root][-m mountpoint] <pool> <vdev> ...' works as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_detach/
H A Dzpool_detach_001_neg.ksh36 # Executing 'zpool detach' command with bad options fails.
39 # 1. Create an array of badly formed 'zpool detach' options.
55 log_assert "Executing 'zpool detach' with bad options fails"
65 log_mustnot zpool detach ${args[$i]}
70 log_pass "'zpool detach' command with bad options failed as expected."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_remove/
H A Dzpool_remove_001_neg.ksh37 # Verify that 'zpool can not remove device except inactive hot spares from pool'
61 log_mustnot zpool remove $dev
84 log_assert "Check zpool remove <pool> <device> can not remove " \
91 log_must zpool create $TESTPOOL ${create_args[i]}
96 log_pass "'zpool remove <pool> <device> fail as expected .'"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_add_001_neg.ksh37 # Verify that 'zpool add' fails as non-root.
61 log_assert "zpool add [-fn] pool_name vdev"
65 log_mustnot zpool ${args[i]}
H A Dzpool_create_001_neg.ksh37 # Verify that 'zpool create' fails as a non-root user.
61 log_assert "zpool create [-fn] pool_name vdev"
65 log_mustnot zpool ${args[i]}
H A Dzpool_set_001_neg.ksh38 # zpool set returns an error when run as a user
48 log_assert "zpool set returns an error when run as a user"
62 ACTUAL=$( zpool get $PROP $TESTPOOL | grep $PROP | awk '{print $1}' )
71 log_pass "zpool set returns an error when run as a user"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/no_space/
H A Denospc_002_pos.ksh65 log_must zpool scrub $TESTPOOL
66 zpool scrub -s $TESTPOOL
67 log_must zpool set comment="Use the force, Luke." $TESTPOOL
68 log_must zpool set comment="" $TESTPOOL
/illumos-gate/usr/src/test/zfs-tests/tests/functional/redundancy/
H A Dredundancy.kshlib124 log_must zpool create -m $TESTDIR $pool $keyword $vdevs
152 typeset real_output=$(zpool status -x $pool)
158 zpool status -x $pool | grep "state:" | \
164 l_scan=$(zpool status -x $pool | grep "scan:")
200 typeset all_devs=$(zpool iostat -v $pool | awk '{print $1}'| \
229 zpool scrub $pool >/dev/null 2>&1
232 log_fail "zpool scrub $pool failed."
256 log_must zpool replace -f $pool $vdev $vdev
309 log_must zpool clear $pool
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_missing_003_pos.ksh51 # 4. Verify 'zpool import -d' with these two pools will have results
79 myhealth=$(zpool list -H -o health $pool)
188 log_must zpool export $TESTPOOL1
195 log_must zpool export $TESTPOOL2
209 $action zpool import -d $DEVICE_DIR $TESTPOOL1
210 log_must zpool import -d $DEVICE_DIR $TESTPOOL2
H A Dzpool_import_012_pos.ksh66 log_must zpool export ${pools[i]}
68 zpool import ${devs[i]} ${pools[i]}
71 zpool import $option ${devs[i]} ${pools[i]}
150 log_must zpool export $pool
152 log_must zpool destroy $pool
168 zpool import $option ${devs[i]} \
175 log_must zpool import $option \
H A Dzpool_import_missing_001_pos.ksh56 # 5. Verify 'zpool import' will handle d/m device successfully.
63 # - The pool shows up under 'zpool list'.
140 log_must zpool export $TESTPOOL1
169 $action zpool import \
176 health=$(zpool list -H -o health $TESTPOOL1)

Completed in 82 milliseconds

1234567891011