Home
last modified time | relevance | path

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

12345678910>>...30

/freebsd-14-stable/sbin/bectl/tests/
HDbectl_test.sh43 zpool=$1
48 atf_check test -n "$zpool"
60 atf_check zpool create -R ${mnt} ${zpool} ${disk}
61 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
63 ${zpool}/ROOT/default
67 zpool=$1
72 atf_check test -n "$zpool"
74 bectl_create_setup ${zpool} ${disk} ${mnt}
76 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root}
79 ${zpool}/ROOT/default/usr
[all …]
/freebsd-14-stable/sys/contrib/openzfs/cmd/zpool/
HDMakefile.am7 sbin_PROGRAMS += zpool program
8 CPPCHECKTARGETS += zpool
41 dist_noinst_DATA += %D%/zpool.d/README
44 zpoolexecdir = $(zfsexecdir)/zpool.d
46 %D%/zpool.d/ata_err \
47 %D%/zpool.d/cmd_to \
48 %D%/zpool.d/defect \
49 %D%/zpool.d/dm-deps \
50 %D%/zpool.d/enc \
51 %D%/zpool.d/encdev \
[all …]
/freebsd-14-stable/lib/libbe/tests/
HDbe_create.sh46 zpool=$1
51 atf_check test -n "$zpool"
56 atf_check zpool create -o altroot=${mnt} ${zpool} ${disk}
57 atf_check zfs create -o mountpoint=none ${zpool}/ROOT
59 ${zpool}/ROOT/default
61 ${zpool}/ROOT/default/usr
63 ${zpool}/ROOT/default/usr/obj
68 zpool=$1
71 if [ -z "$zpool" ]; then
73 elif zpool get health ${zpool} >/dev/null 2>&1; then
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/
HDzpool_initialize_uninit.ksh56 state=$(zpool status -i "$pool" | grep "$DISK1" | grep "$disk1_state")
61 state=$(zpool status -i "$pool" | grep "$DISK2" | grep "$disk2_state")
66 state=$(zpool status -i "$pool" | grep "$DISK3" | grep "$disk3_state")
81 log_must zpool create -f $TESTPOOL $DISK1 $DISK2 $DISK3
85 log_must zpool initialize -u $TESTPOOL
89 log_must zpool initialize $TESTPOOL
92 log_mustnot zpool initialize -u $TESTPOOL
95 log_must zpool initialize -c $TESTPOOL
98 log_must zpool initialize -u $TESTPOOL
102 log_must zpool initialize $TESTPOOL
[all …]
/freebsd-14-stable/sys/contrib/openzfs/man/
HDMakefile.am21 %D%/man7/zpool-features.7 \
67 %D%/man8/zpool.8 \
68 %D%/man8/zpool-add.8 \
69 %D%/man8/zpool-attach.8 \
70 %D%/man8/zpool-checkpoint.8 \
71 %D%/man8/zpool-clear.8 \
72 %D%/man8/zpool-create.8 \
73 %D%/man8/zpool-destroy.8 \
74 %D%/man8/zpool-detach.8 \
75 %D%/man8/zpool-events.8 \
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/
HDredundancy_draid.ksh70 log_must zpool export $pool
77 log_must zpool import -o cachefile=none -d $dir $pool
88 log_must zpool scrub -w $pool
91 log_must zpool clear $pool
93 log_must zpool export $pool
100 log_must zpool import -o cachefile=none -d $dir $pool
106 log_must zpool scrub -w $pool
109 log_must zpool clear $pool
119 log_must zpool offline $pool $dir/dev-$i
122 log_must zpool export $pool
[all …]
HDredundancy_raidz.ksh70 log_must zpool export $pool
77 log_must zpool import -o cachefile=none -d $dir $pool
88 log_must zpool scrub -w $pool
91 log_must zpool clear $pool
93 log_must zpool export $pool
100 log_must zpool import -o cachefile=none -d $dir $pool
106 log_must zpool scrub -w $pool
109 log_must zpool clear $pool
119 log_must zpool offline $pool $dir/dev-$i
122 log_must zpool export $pool
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/
HDbootfs_006_pos.ksh56 log_must zpool set bootfs=$POOL/$TESTFS $POOL
57 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' )
60 log_must zpool status -v $POOL
64 log_must zpool destroy $POOL
70 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL
71 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' )
74 log_must zpool status -v $POOL
77 log_must zpool destroy $POOL
83 log_must zpool destroy $TESTPOOL
99 log_must zpool create $TESTPOOL $VDEV1
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/
HDadd-o_ashift.ksh78 log_must zpool create $TESTPOOL $disk1
79 log_must zpool add $opt -o ashift=$ashift $TESTPOOL $disk2
83 log_must zpool destroy $TESTPOOL
84 log_must zpool labelclear $disk1
85 log_must zpool labelclear $disk2
90 log_must zpool create $TESTPOOL $disk1
92 log_must zpool add $opt $TESTPOOL $disk2
98 log_must zpool destroy $TESTPOOL
99 log_must zpool labelclear $disk1
100 log_must zpool labelclear $disk2
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
HDzpool_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
92 log_mustnot zpool create $TESTPOOL draid2:31d $draid_vdevs
95 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs
98 log_mustnot zpool create $TESTPOOL draid0 $draid_vdevs
[all …]
HDzpool_create_encrypted.ksh68 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS
69 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS
70 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \
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 \
[all …]
/freebsd-14-stable/sys/contrib/openzfs/contrib/debian/
HDopenzfs-zfsutils.install3 etc/zfs/zpool.d/
30 sbin/zpool
35 usr/lib/zfs-linux/zpool.d/
96 usr/share/man/man8/zpool-add.8
97 usr/share/man/man8/zpool-attach.8
98 usr/share/man/man8/zpool-checkpoint.8
99 usr/share/man/man8/zpool-clear.8
100 usr/share/man/man8/zpool-create.8
101 usr/share/man/man8/zpool-destroy.8
102 usr/share/man/man8/zpool-detach.8
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
HDimport_cachefile_device_removed.ksh51 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate
55 log_must zpool remove $TESTPOOL1 $removevdev
59 log_must zpool export $TESTPOOL1
61 log_must zpool import -c $CPATHBKP $TESTPOOL1
65 log_must zpool destroy $TESTPOOL1
79 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 \
84 log_must zpool remove $TESTPOOL1 $VDEV4
87 log_must zpool remove $TESTPOOL1 $VDEV3
91 log_must zpool export $TESTPOOL1
93 log_must zpool import -c $CPATHBKP $TESTPOOL1
[all …]
HDzpool_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 …]
HDzpool_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 …]
HDzpool_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 …]
HDzpool_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 …]
HDzpool_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-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_export/
HDzpool_export_004_pos.ksh68 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
69 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 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
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/
HDzpool_error_scrub_002_pos.ksh61 log_must zpool export $TESTPOOL
62 log_must zpool import $TESTPOOL
72 log_must zpool scrub $TESTPOOL
74 log_mustnot zpool scrub -e $TESTPOOL
75 log_must zpool scrub -p $TESTPOOL
77 log_mustnot zpool scrub -e $TESTPOOL
78 log_must zpool scrub $TESTPOOL
80 log_must zpool scrub -s $TESTPOOL
88 log_must zpool scrub -e $TESTPOOL
90 log_mustnot zpool scrub $TESTPOOL
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/
HDalloc_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-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cachefile/
HDcachefile_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 import -d $mntpnt $TESTPOOL2
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/
HDcheckpoint_discard_busy.ksh74 log_must zpool checkpoint $NESTEDPOOL
78 log_must zpool checkpoint -d $NESTEDPOOL
80 log_must zpool export $NESTEDPOOL
91 log_mustnot zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL
93 log_must zpool import -d $FILEDISKDIR $NESTEDPOOL
99 log_mustnot zpool checkpoint $NESTEDPOOL
100 log_mustnot zpool checkpoint -d $NESTEDPOOL
101 log_mustnot zpool remove $NESTEDPOOL $FILEDISK1
102 log_mustnot zpool reguid $NESTEDPOOL
109 log_must zpool export $NESTEDPOOL
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/
HDmmp_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
79 log_must zpool attach $MMP_POOL $MMP_DIR/file.0 $MMP_DIR/file.1
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
87 log_must zpool add $MMP_POOL special $MMP_DIR/file.5
[all …]
/freebsd-14-stable/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_offline/
HDzpool_offline_003_pos.ksh56 log_must zpool online $TESTPOOL $disk
78 log_must zpool offline -$arg $TESTPOOL $disk
80 log_must zpool clear $TESTPOOL $disk
84 log_must zpool offline $TESTPOOL $disk
86 log_must zpool offline -$arg $TESTPOOL $disk
88 log_must zpool clear $TESTPOOL $disk
90 log_must zpool online $TESTPOOL $disk
94 log_must zpool offline -tf $TESTPOOL $disk
96 log_must zpool export $TESTPOOL
97 log_must zpool import $TESTPOOL
[all …]

12345678910>>...30