Lines Matching refs:zpool
35 # Create a scenario to verify the following zpool subcommands are logged.
58 log_assert "Verify zpool sub-commands which modify state are logged."
69 run_and_verify -p "$MPOOL" "zpool create $MPOOL mirror $VDEV1 $VDEV2"
70 run_and_verify -p "$MPOOL" "zpool add -f $MPOOL spare $VDEV3"
71 run_and_verify -p "$MPOOL" "zpool remove $MPOOL $VDEV3"
72 run_and_verify -p "$MPOOL" "zpool offline $MPOOL $VDEV1"
73 run_and_verify -p "$MPOOL" "zpool online $MPOOL $VDEV1"
74 run_and_verify -p "$MPOOL" "zpool attach $MPOOL $VDEV1 $VDEV4"
75 run_and_verify -p "$MPOOL" "zpool detach $MPOOL $VDEV4"
76 run_and_verify -p "$MPOOL" "zpool replace -f $MPOOL $VDEV1 $VDEV4"
77 run_and_verify -p "$MPOOL" "zpool scrub $MPOOL"
78 run_and_verify -p "$MPOOL" "zpool clear $MPOOL"
83 commands=("zpool export $MPOOL" "zpool import -d $mntpnt $MPOOL"
84 "zpool destroy $MPOOL" "zpool import -D -f -d $mntpnt $MPOOL")
89 zpool history $MPOOL > $OLD_HISTORY 2>/dev/null
92 zpool history $MPOOL > $TMP_HISTORY 2>/dev/null
101 run_and_verify -p "$MPOOL" "zpool split $MPOOL ${MPOOL}_split"
107 upgrade_pool=$(zpool import -d $import_dir | grep "pool:" | awk '{print $2}')
108 log_must zpool import -d $import_dir $upgrade_pool
109 run_and_verify -p "$upgrade_pool" "zpool upgrade $upgrade_pool"
111 log_pass "zpool sub-commands which modify state are logged passed. "