Searched refs:zpool (Results 26 - 50 of 251) sorted by relevance

1234567891011

/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_get/
H A Dzpool_get_001_pos.ksh40 # 1. Run zpool get
47 zpool get > /dev/null 2>&1
51 log_fail "\"zpool get\" exit status $RET should be equal to 2."
54 OUTPUT=$(zpool get 2>&1 | grep -i usage)
58 log_fail "Usage message for zpool get did not contain the word 'usage'."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_user/misc/
H A Dzpool_import_001_neg.ksh38 # zpool import returns an error when run as a user
48 RESULT=$(zpool list -H -o name | grep $TESTPOOL.exported)
57 log_assert "zpool import returns an error when run as a user"
58 log_mustnot zpool import
60 log_mustnot zpool import -a
63 log_mustnot zpool import -d /$TESTDIR $TESTPOOL.exported
66 log_pass "zpool import returns an error when run as a user"
H A Dzpool_scrub_001_neg.ksh38 # zpool scrub returns an error when run as a user
48 log_assert "zpool scrub returns an error when run as a user"
50 log_mustnot zpool scrub $TESTPOOL
51 log_mustnot zpool scrub -s $TESTPOOL
53 log_pass "zpool scrub returns an error when run as a user"
H A Dzpool_attach_001_neg.ksh38 # zpool attach returns an error when run as a user
48 RESULT=$(zpool status -v $TESTPOOL.virt | grep disk-additional.dat)
57 log_assert "zpool attach returns an error when run as a user"
59 log_mustnot zpool attach $TESTPOOL.virt /$TESTDIR/disk1.dat \
63 log_mustnot zpool attach -f $TESTPOOL.virt /$TESTDIR/disk1.dat \
67 log_pass "zpool attach returns an error when run as a user"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/poolversion/
H A Dcleanup.ksh36 log_must zpool destroy $TESTPOOL
37 log_must zpool destroy $TESTPOOL2
H A Dpoolversion_001_pos.ksh37 # zpool set version can upgrade a pool
41 # 2. For all known versions, set the version of the pool using zpool set
46 log_assert "zpool set version can upgrade a pool"
49 log_must zpool set version=$version $TESTPOOL
50 ACTUAL=$(zpool get version $TESTPOOL | grep version \
58 log_pass "zpool set version can upgrade a pool"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache_002_pos.ksh53 log_must zpool create $TESTPOOL $type $VDEV
54 log_must zpool add $TESTPOOL cache $LDEV
59 log_must zpool remove $TESTPOOL $ldev
62 log_must zpool destroy -f $TESTPOOL
H A Dcache_003_pos.ksh54 log_must zpool create $TESTPOOL $type $VDEV \
56 log_must zpool add $TESTPOOL \
63 log_must zpool remove $TESTPOOL $ldev
66 log_must zpool destroy -f $TESTPOOL
H A Dcache_009_pos.ksh54 log_must zpool create $TESTPOOL $type $VDEV \
58 log_must zpool offline $TESTPOOL $ldev
62 log_must zpool online $TESTPOOL $ldev
66 log_must zpool destroy -f $TESTPOOL
H A Dcache.kshlib36 log_must zpool destroy -f $TESTPOOL
39 log_must zpool destroy -f $TESTPOOL2
44 # Try zpool status/iostat for given pool
53 zpool status -xv $pool > /dev/null 2>&1
56 zpool iostat > /dev/null 2>&1
63 zpool iostat -v 1 3 > /dev/null
96 set -A dev_stat_tab $(zpool status -v $pool | nawk 'BEGIN {start=0} \
151 zpool upgrade -v | grep "Cache devices" > /dev/null 2>&1
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cachefile/
H A Dcachefile_002_pos.ksh39 # Importing a pool with "cachefile" set doesn't update zpool.cache
43 # 2. Verify the pool doesn't have an entry in zpool.cache
46 # 5. Verify the pool does have an entry in zpool.cache
49 # 8. Verify the pool doesn't have an entry in zpool.cache
61 log_assert "Importing a pool with \"cachefile\" set doesn't update zpool.cache"
64 log_must zpool create -o cachefile=none $TESTPOOL $DISKS
68 log_must zpool export $TESTPOOL
69 log_must zpool import -d $DEVICEDIR $TESTPOOL
72 log_must zpool export $TESTPOOL
73 log_must zpool impor
[all...]
H A Dcachefile_004_pos.ksh82 log_must zpool create $TESTPOOL $DISKS
92 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL1 $vdev0
94 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL2 $vdev1
97 log_must zpool set cachefile=$CPATH2 $TESTPOOL1
99 log_must zpool set cachefile=$CPATH2 $TESTPOOL2
105 log_must zpool export $TESTPOOL1
106 log_must zpool export $TESTPOOL2
111 log_must zpool import -d $mntpnt $TESTPOOL1
112 log_must zpool set cachefile=$CPATH2 $TESTPOOL1
114 log_must zpool impor
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/casenorm/
H A Dsetup.ksh26 log_must zpool create $TESTPOOL $DISK
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_023_neg.ksh36 # 'zpool create -O' should return an error with badly formed parameters.
40 # 2. For each parameter in the array, execute 'zpool create -O'
48 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
76 log_assert "'zpool create -O' should return an error with badly formed parameters."
80 log_mustnot zpool create -O ${args[i]} -f $TESTPOOL $DISKS
84 log_pass "'zpool create -O' should return an error with badly formed parameters."
H A Dzpool_create_features_004_neg.ksh50 datasetexists $TESTPOOL && log_must zpool destroy $TESTPOOL
53 log_assert "'zpool create' with invalid feature names/states fails"
57 log_mustnot zpool create -f -o "$prop" $TESTPOOL $DISKS
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_upgrade/
H A Dzpool_upgrade_005_neg.ksh50 log_mustnot zpool upgrade $arg
/illumos-gate/usr/src/test/zfs-tests/tests/functional/history/
H A Dhistory_005_neg.ksh37 # Verify the following zpool subcommands are not logged.
38 # zpool get
39 # zpool history
40 # zpool list
41 # zpool status
42 # zpool iostat
46 # 2. Separately invoke zpool list|status|iostat
52 log_assert "Verify 'zpool get|history|list|status|iostat' will not be logged."
55 log_must eval "zpool history $TESTPOOL >$OLD_HISTORY"
57 log_must zpool ge
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_011_neg.ksh54 log_must zpool create $TESTPOOL $type $VDEV $spare $SDEV \
58 log_must zpool offline $TESTPOOL $ldev
62 log_must zpool online $TESTPOOL $ldev
66 log_must zpool destroy -f $TESTPOOL
H A Dslog_013_pos.ksh51 log_must zpool destroy -f $TESTPOOL2
64 log_must zpool create $TESTPOOL ${DISKS#$dsk1}
67 log_must zpool add $TESTPOOL log $dsk1
70 log_must zpool add $TESTPOOL log $LDEV
78 log_must zpool add $TESTPOOL log $lofidev
87 log_must zpool add $TESTPOOL $mntpnt/vdev
91 log_must zpool create -V $MINVDEVSIZE $vol
92 log_must zpool add $TESTPOOL /dev/zvol/dsk/$vol
H A Dslog_010_neg.ksh50 log_must zpool create $TESTPOOL $VDEV spare $SDEV log $LDEV
53 log_mustnot zpool replace $TESTPOOL $ldev $sdev
57 log_must zpool create $TESTPOOL2 $VDEV2 spare $SDEV2
59 log_mustnot zpool replace $TESTPOOL $ldev $sdev2
60 log_mustnot zpool replace -f $TESTPOOL $ldev $sdev2
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_remove/
H A Dzpool_remove_002_pos.ksh37 # Verify that 'zpool can only remove inactive hot spare devices from pool'
58 log_assert "zpool remove can only remove inactive hotspare device from pool"
60 log_note "check hotspare device which is created by zpool create"
61 log_must zpool create $TESTPOOL $spare_devs1 spare $spare_devs2
62 log_must zpool remove $TESTPOOL $spare_devs2
64 log_note "check hotspare device which is created by zpool add"
65 log_must zpool add $TESTPOOL spare $spare_devs2
66 log_must zpool remove $TESTPOOL $spare_devs2
67 log_must zpool destroy $TESTPOOL
69 log_pass "zpool remov
[all...]
H A Dzpool_remove_003_pos.ksh37 # Verify that 'zpool can remove hotspare devices from pool when it state
44 # 3. Verify that the zpool remove succeed.
62 log_assert "zpool remove can remove hotspare device which state go though" \
66 log_must zpool create $TESTPOOL $spare_devs1 $spare_devs2 spare \
68 log_must zpool replace $TESTPOOL $spare_devs2 $spare_devs3
69 log_mustnot zpool remove $TESTPOOL $spare_devs3
70 log_must zpool detach $TESTPOOL $spare_devs3
71 log_must zpool remove $TESTPOOL $spare_devs3
73 log_pass "'zpool remove device passed as expected.'"
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_006_pos.ksh66 log_must zpool create $TESTPOOL1 mirror $VDEV0 $VDEV1 $VDEV2
73 log_must zpool destroy $TESTPOOL1
75 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV2
76 log_must zpool import -d $DEVICE_DIR -D -f $target
77 log_must zpool destroy $TESTPOOL1
79 log_must zpool destroy $TESTPOOL2
81 log_must zpool import -d $DEVICE_DIR -D -f $target
83 log_pass "zpool import -D mirror passed."
/illumos-gate/usr/src/test/zfs-tests/tests/functional/pool_names/
H A Dpool_names_002_neg.ksh56 log_must zpool destroy $POOLNAME
67 for pool in $(zpool list -H -o name | \
71 log_must zpool destroy $pool
86 log_mustnot zpool create -m $TESTDIR $POOLNAME $DISK
91 log_mustnot zpool destroy $POOLNAME
102 log_mustnot zpool create -m $TESTDIR $POOLNAME $DISK
107 log_mustnot zpool destroy $POOLNAME
121 log_mustnot zpool create -m $TESTDIR ${POOLNAME[$i]} $DISK
126 log_mustnot zpool destroy ${POOLNAME[$i]}
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_scrub/
H A Dzpool_scrub_003_pos.ksh51 percent=$(zpool status $TESTPOOL | grep "^ scrub" | \
62 log_must zpool scrub $TESTPOOL
68 log_must zpool scrub $TESTPOOL
71 log_fail "zpool scrub don't stop existing scrubbing process."

Completed in 90 milliseconds

1234567891011