Lines Matching refs:pool
51 typeset pool=$1
54 [[ -z $pool ]] && log_fail "No specified pool."
58 mntpnt=$(get_prop mountpoint $pool)
76 typeset pool=$1
88 destroy_pool $pool
92 log_must $ZPOOL create -m $TESTDIR $pool $keyword $vdevs
107 typeset pool=$1
109 record_data $pool $PST_RECORD_FILE
125 typeset pool=$1
138 typeset pool=$1
146 $ZPOOL scrub $pool >/dev/null 2>&1
147 is_pool_scrubbing $pool || is_pool_scrubbed $pool || \
148 log_fail "$ZPOOL scrub $pool failed."
149 log_note "$pool: $ZPOOL scrub issued."
160 typeset pool=$1
166 log_must $ZPOOL replace -f $pool $vdev $vdev
167 wait_for 20 1 is_pool_resilvered $pool
177 typeset pool=$1
182 check_state $pool $vdev UNAVAIL && continue
187 sync_pool $pool
200 typeset pool=$1
206 vdevs=$(get_vdevs $pool $cnt)
207 log_note "Damaging pool $pool devices: $vdevs"
210 log_mustnot pool_has_errors $pool
215 sync_pool $pool
216 wait_for 20 1 is_pool_scrubbed $pool
218 log_must pool_has_errors $pool
222 wait_for 20 1 damage_dev_labels $pool $vdevs
225 log_note "Pool $pool vdevs $vdevs damage completed."
235 typeset pool=$1
237 log_must $ZPOOL clear $pool
240 wait_for 30 1 is_pool_healthy $pool
242 if ! is_data_valid $pool ; then
243 $ZPOOL status -x $pool
244 log_note "Data should be valid in $pool."
259 typeset pool=$1
263 vdevs=$(get_vdevs $pool $cnt)
264 log_note "Removing pool $pool vdevs: $vdevs"
267 sync_pool $pool
269 wait_for 20 1 check_state $pool $vdev UNAVAIL
281 typeset pool=$1
285 vdevs=$(get_vdevs $pool $cnt)
286 log_note "Replacing missing pool $pool vdevs: $vdevs"
287 replace_missing_devs $pool $vdevs
289 if ! is_pool_healthy $pool ; then
290 log_note "$pool should be healthy."
293 if ! is_data_valid $pool ; then
294 log_note "Data should be valid in $pool."