Home
last modified time | relevance | path

Searched refs:zpool (Results 1 – 25 of 677) sorted by relevance

12345678910>>...28

/freebsd-13.1/cddl/sbin/zpool/
H A DMakefile14 PROG= zpool
18 zpool.8 \
19 zpool-add.8 \
20 zpool-attach.8 \
22 zpool-clear.8 \
29 zpool-get.8 \
35 zpool-list.8 \
45 zpool-sync.8 \
46 zpool-trim.8 \
52 zpool-offline.8 zpool-online.8 \
[all …]
/freebsd-13.1/sbin/bectl/tests/
H A Dbectl_test.sh44 zpool=$1
49 atf_check test -n "$zpool"
61 atf_check zpool create -R ${mnt} ${zpool} ${disk}
64 ${zpool}/ROOT/default
68 zpool=$1
86 zpool=$1
87 if [ -z "$zpool" ]; then
89 elif zpool get health ${zpool} >/dev/null 2>&1; then
90 zpool destroy -f ${zpool}
114 zpool=$(make_zpool_name)
[all …]
/freebsd-13.1/sys/contrib/openzfs/cmd/zpool/
H A DMakefile.am8 sbin_PROGRAMS = zpool program
48 zpool.d/enc \
54 zpool.d/label \
56 zpool.d/lsblk \
57 zpool.d/media \
58 zpool.d/model \
60 zpool.d/ses \
61 zpool.d/size \
62 zpool.d/slot \
63 zpool.d/smart \
[all …]
/freebsd-13.1/lib/libbe/tests/
H A Dbe_create.sh47 zpool=$1
52 atf_check test -n "$zpool"
57 atf_check zpool create -o altroot=${mnt} ${zpool} ${disk}
60 ${zpool}/ROOT/default
62 ${zpool}/ROOT/default/usr
64 ${zpool}/ROOT/default/usr/obj
69 zpool=$1
72 if [ -z "$zpool" ]; then
74 elif zpool get health ${zpool} >/dev/null 2>&1; then
75 zpool destroy -f ${zpool}
[all …]
/freebsd-13.1/sys/contrib/openzfs/man/
H A DMakefile.am18 man7/zpool-features.7 \
68 man8/zpool.8 \
69 man8/zpool-add.8 \
72 man8/zpool-clear.8 \
78 man8/zpool-get.8 \
84 man8/zpool-list.8 \
92 man8/zpool-scrub.8 \
93 man8/zpool-set.8 \
96 man8/zpool-sync.8 \
97 man8/zpool-trim.8 \
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
H A Dredundancy_draid.ksh70 log_must zpool export $pool
91 log_must zpool clear $pool
93 log_must zpool export $pool
109 log_must zpool clear $pool
122 log_must zpool export $pool
141 log_must zpool clear $pool
147 log_must zpool export $pool
166 log_must zpool clear $pool
175 log_must zpool export $pool
187 log_must zpool clear $pool
[all …]
H A Dredundancy_raidz.ksh70 log_must zpool export $pool
91 log_must zpool clear $pool
93 log_must zpool export $pool
109 log_must zpool clear $pool
122 log_must zpool export $pool
141 log_must zpool clear $pool
147 log_must zpool export $pool
166 log_must zpool clear $pool
175 log_must zpool export $pool
187 log_must zpool clear $pool
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/
H A Dbootfs_006_pos.ksh47 zpool set 2>&1 | grep bootfs > /dev/null
62 log_must zpool set bootfs=$POOL/$TESTFS $POOL
66 log_must zpool status -v $POOL
70 log_must zpool destroy $POOL
76 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL
80 log_must zpool status -v $POOL
83 log_must zpool destroy $POOL
89 log_must zpool destroy $TESTPOOL
105 log_must zpool create $TESTPOOL $VDEV1
122 log_must zpool create $TESTPOOL $VDEV1 $VDEV2
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dadd-o_ashift.ksh65 log_must zpool create $TESTPOOL $disk1
74 log_must zpool destroy $TESTPOOL
75 log_must zpool labelclear $disk1
76 log_must zpool labelclear $disk2
83 log_must zpool add $TESTPOOL $disk2
92 log_must zpool destroy $TESTPOOL
93 log_must zpool labelclear $disk1
94 log_must zpool labelclear $disk2
103 log_must zpool destroy $TESTPOOL
104 log_must zpool labelclear $disk1
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_draid_003_pos.ksh68 log_must zpool create $TESTPOOL $draid $draid_vdevs
83 log_mustnot zpool create $TESTPOOL draid:d8 $draid_vdevs
84 log_mustnot zpool create $TESTPOOL draid:s3 $draid_vdevs
85 log_mustnot zpool create $TESTPOOL draid:c32 $draid_vdevs
86 log_mustnot zpool create $TESTPOOL draid:10x $draid_vdevs
87 log_mustnot zpool create $TESTPOOL draid:x10 $draid_vdevs
90 log_must zpool create $TESTPOOL draid2:30d $draid_vdevs
95 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs
98 log_mustnot zpool create $TESTPOOL draid0 $draid_vdevs
99 log_mustnot zpool create $TESTPOOL draid4 $draid_vdevs
[all …]
H A Dzpool_create_encrypted.ksh68 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS
69 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS
73 log_must zpool create -O encryption=off $TESTPOOL $DISKS
74 log_must zpool destroy $TESTPOOL
76 log_mustnot zpool create -O encryption=off -O keylocation=prompt \
78 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \
80 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \
83 log_mustnot zpool create -O encryption=on $TESTPOOL $DISKS
84 log_mustnot zpool create -O encryption=on -O keylocation=prompt \
93 log_must zpool destroy $TESTPOOL
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dimport_cachefile_device_removed.ksh59 log_must zpool export $TESTPOOL1
65 log_must zpool destroy $TESTPOOL1
84 log_must zpool remove $TESTPOOL1 $VDEV4
87 log_must zpool remove $TESTPOOL1 $VDEV3
91 log_must zpool export $TESTPOOL1
97 log_must zpool destroy $TESTPOOL1
116 log_must zpool remove $TESTPOOL1 $VDEV1
118 log_must zpool remove $TESTPOOL1 $VDEV3
121 log_must zpool add $TESTPOOL1 $VDEV4
123 log_must zpool export $TESTPOOL1
[all …]
H A Dzpool_import_007_pos.ksh66 log_must zpool create $TESTPOOL1 raidz $VDEV0 $VDEV1 $VDEV2 $VDEV3
73 log_must zpool destroy $TESTPOOL1
75 log_must zpool create $TESTPOOL2 $VDEV0
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
82 log_must zpool destroy $TESTPOOL1
86 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
87 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
[all …]
H A Dzpool_import_016_pos.ksh67 log_must zpool create $TESTPOOL1 draid $VDEV0 $VDEV1 $VDEV2 $VDEV3
74 log_must zpool destroy $TESTPOOL1
76 log_must zpool create $TESTPOOL2 $VDEV0
77 log_must zpool import -d $DEVICE_DIR -D -f $target
78 log_must zpool destroy $TESTPOOL1
80 log_must zpool destroy $TESTPOOL2
82 log_must zpool import -d $DEVICE_DIR -D -f $target
83 log_must zpool destroy $TESTPOOL1
87 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
88 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
[all …]
H A Dzpool_import_010_pos.ksh71 log_must zpool create $poolA mirror $VDEV0 $VDEV1 $VDEV2 $VDEV3 $VDEV4
72 log_must zpool destroy $poolA
74 log_must zpool create $poolB $VDEV1
75 log_must zpool destroy $poolB
77 log_must zpool create $poolC draid2 $VDEV2 $VDEV3 $VDEV4 $VDEV5
78 log_must zpool destroy $poolC
80 log_must zpool create $poolD raidz $VDEV3 $VDEV4
81 log_must zpool destroy $poolD
83 log_must zpool create $poolE $VDEV4
84 log_must zpool destroy $poolE
[all …]
H A Dzpool_import_008_pos.ksh66 log_must zpool create $TESTPOOL1 raidz2 $VDEV0 $VDEV1 $VDEV2 $VDEV3
73 log_must zpool destroy $TESTPOOL1
75 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
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
82 log_must zpool destroy $TESTPOOL1
87 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1 $VDEV2
88 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
[all …]
H A Dzpool_import_017_pos.ksh67 log_must zpool create $TESTPOOL1 draid2 $VDEV0 $VDEV1 $VDEV2 $VDEV3
74 log_must zpool destroy $TESTPOOL1
76 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1
77 log_must zpool import -d $DEVICE_DIR -D -f $target
78 log_must zpool destroy $TESTPOOL1
80 log_must zpool destroy $TESTPOOL2
82 log_must zpool import -d $DEVICE_DIR -D -f $target
83 log_must zpool destroy $TESTPOOL1
88 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1 $VDEV2
89 log_mustnot zpool import -d $DEVICE_DIR -D -f $target
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh68 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
71 log_must zpool export $TESTPOOL1
72 log_must zpool import -d $mntpnt $TESTPOOL1
74 log_must zpool replace $TESTPOOL1 $vdev0 $vdev4
75 log_must zpool detach $TESTPOOL1 $vdev4
76 log_must zpool export $TESTPOOL1
77 log_must zpool import -d $mntpnt $TESTPOOL1
79 log_must zpool replace $TESTPOOL1 $vdev0 $vdev4
80 log_mustnot zpool export $TESTPOOL1
82 log_must zpool export -f $TESTPOOL1
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/
H A Dalloc_class_003_pos.ksh36 log_must zpool create $TESTPOOL $type $ZPOOL_DISKS
39 log_must zpool add $TESTPOOL special mirror \
41 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0
42 log_must zpool iostat -H $TESTPOOL $CLASS_DISK1
43 log_must zpool iostat -H $TESTPOOL $CLASS_DISK2
45 log_must zpool add $TESTPOOL special mirror \
47 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0
48 log_must zpool iostat -H $TESTPOOL $CLASS_DISK1
50 log_must zpool add $TESTPOOL special $CLASS_DISK0
51 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cachefile/
H A Dcachefile_004_pos.ksh82 log_must zpool create $TESTPOOL $DISKS
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 import -d $mntpnt $TESTPOOL2
115 log_must zpool set cachefile=$CPATH2 $TESTPOOL2
118 log_must zpool destroy $TESTPOOL1
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/
H A Dcheckpoint_discard_busy.ksh72 log_must zpool checkpoint $NESTEDPOOL
76 log_must zpool checkpoint -d $NESTEDPOOL
78 log_must zpool export $NESTEDPOOL
89 log_mustnot zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
91 log_must zpool import -d $FILEDISKDIR $NESTEDPOOL
97 log_mustnot zpool checkpoint $NESTEDPOOL
98 log_mustnot zpool checkpoint -d $NESTEDPOOL
99 log_mustnot zpool remove $NESTEDPOOL $FILEDISK1
100 log_mustnot zpool reguid $NESTEDPOOL
107 log_must zpool export $NESTEDPOOL
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
H A Dmmp_hostid.ksh58 log_must zpool create $MMP_POOL $MMP_DIR/file.0
73 log_mustnot zpool set multihost=on $MMP_POOL
76 log_must zpool set multihost=on $MMP_POOL
80 log_must zpool detach $MMP_POOL $MMP_DIR/file.1
83 log_must zpool add $MMP_POOL $MMP_DIR/file.1
84 log_must zpool add $MMP_POOL $MMP_DIR/file.2
85 log_must zpool add $MMP_POOL cache $MMP_DIR/file.3
86 log_must zpool add $MMP_POOL log $MMP_DIR/file.4
90 log_must zpool remove $MMP_POOL $MMP_DIR/file.2
91 log_must zpool remove $MMP_POOL $MMP_DIR/file.3
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/
H A Dzpool_offline_003_pos.ksh56 log_must zpool online $TESTPOOL $disk
81 log_must zpool offline -$arg $TESTPOOL $disk
83 log_must zpool clear $TESTPOOL $disk
87 log_must zpool offline $TESTPOOL $disk
89 log_must zpool offline -$arg $TESTPOOL $disk
91 log_must zpool clear $TESTPOOL $disk
93 log_must zpool online $TESTPOOL $disk
97 log_must zpool offline -tf $TESTPOOL $disk
99 log_must zpool export $TESTPOOL
100 log_must zpool import $TESTPOOL
[all …]
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_labelclear/
H A Dzpool_labelclear_active.ksh43 log_must zpool create -O mountpoint=none -f $TESTPOOL $disk1 log $disk2
46 log_mustnot zpool labelclear $disk1
48 log_mustnot zpool labelclear -f $disk1
50 log_mustnot zpool labelclear $disk2
52 log_mustnot zpool labelclear -f $disk2
58 log_must zpool add $TESTPOOL $vdevtype $disk3
59 log_mustnot zpool labelclear $disk3
61 log_mustnot zpool labelclear -f $disk3
63 log_must zpool remove $TESTPOOL $disk3
64 log_must zpool labelclear $disk3
/freebsd-13.1/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_replace/
H A Dreplace-o_ashift.ksh71 log_must zpool create -o ashift=$ashift $TESTPOOL1 $disk1
81 log_must zpool replace -o ashift=$cmdval $TESTPOOL1 \
91 log_mustnot zpool replace -o ashift=$cmdval $TESTPOOL1 \
95 log_must zpool destroy $TESTPOOL1
96 log_must zpool labelclear $disk1
97 log_must zpool labelclear $disk2
104 log_must zpool create $TESTPOOL1 $disk1
105 log_mustnot zpool replace -o ashift=$badval $TESTPOOL1 $disk1 $disk2
106 log_must zpool destroy $TESTPOOL1
107 log_must zpool labelclear $disk1
[all …]

12345678910>>...28