/freebsd/sbin/bectl/tests/ |
H A D | bectl_test.sh | 22 zpool=$1 27 atf_check test -n "$zpool" 39 atf_check zpool create -R ${mnt} ${zpool} ${disk} 40 atf_check zfs create -o mountpoint=none ${zpool}/ROOT 42 ${zpool}/ROOT/default 46 zpool=$1 51 atf_check test -n "$zpool" 53 bectl_create_setup ${zpool} ${disk} ${mnt} 55 atf_check -o ignore bectl -r ${zpool}/ROOT mount default ${root} 58 ${zpool}/ROOT/default/usr [all …]
|
/freebsd/cddl/sbin/zpool/ |
H A D | Makefile | 7 .PATH: ${ZFSTOP}/cmd/zpool 8 .PATH: ${ZFSTOP}/cmd/zpool/os/freebsd 12 PROG= zpool 17 zpool.8 \ 18 zpool-add.8 \ 19 zpool-attach.8 \ 20 zpool-checkpoint.8 \ 21 zpool-clear.8 \ 22 zpool-create.8 \ 23 zpool-destroy.8 \ [all …]
|
/freebsd/sys/contrib/openzfs/cmd/zpool/ |
H A D | Makefile.am | 7 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/lib/libbe/tests/ |
H A D | be_create.sh | 46 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/sys/contrib/openzfs/man/ |
H A D | Makefile.am | 21 %D%/man7/zpool-features.7 \ 68 %D%/man8/zpool.8 \ 69 %D%/man8/zpool-add.8 \ 70 %D%/man8/zpool-attach.8 \ 71 %D%/man8/zpool-checkpoint.8 \ 72 %D%/man8/zpool-clear.8 \ 73 %D%/man8/zpool-create.8 \ 74 %D%/man8/zpool-destroy.8 \ 75 %D%/man8/zpool-detach.8 \ 76 %D%/man8/zpool-ddtprune.8 \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_initialize/ |
H A D | zpool_initialize_uninit.ksh | 57 state=$(zpool status -i "$pool" | grep "$DISK1" | grep "$disk1_state") 62 state=$(zpool status -i "$pool" | grep "$DISK2" | grep "$disk2_state") 67 state=$(zpool status -i "$pool" | grep "$DISK3" | grep "$disk3_state") 82 log_must zpool create -f $TESTPOOL $DISK1 $DISK2 $DISK3 86 log_must zpool initialize -u $TESTPOOL 90 log_must zpool initialize $TESTPOOL 93 log_mustnot zpool initialize -u $TESTPOOL 96 log_must zpool initialize -c $TESTPOOL 99 log_must zpool initialize -u $TESTPOOL 103 log_must zpool initialize $TESTPOOL [all …]
|
H A D | zpool_initialize_multiple_pools.ksh | 45 zpool destroy $TESTPOOL${pool} 70 log_must zpool create $TESTPOOL${pool} ${DISK[$pool]} 75 log_must zpool initialize -a 86 log_must zpool wait -t initialize $TESTPOOL${pool} 90 complete_count=$(zpool status -i | grep -c "completed") 96 log_must zpool initialize -w -a 99 complete_count=$(zpool status -i | grep -c "completed") 105 log_must zpool initialize -u -a 106 complete_count=$(zpool status -i | grep -c "uninitialized") 111 log_must zpool initialize -a [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/ |
H A D | redundancy_draid.ksh | 71 log_must zpool export $pool 78 log_must zpool import -o cachefile=none -d $dir $pool 89 log_must zpool scrub -w $pool 92 log_must zpool clear $pool 94 log_must zpool export $pool 101 log_must zpool import -o cachefile=none -d $dir $pool 107 log_must zpool scrub -w $pool 110 log_must zpool clear $pool 120 log_must zpool offline $pool $dir/dev-$i 123 log_must zpool export $pool [all …]
|
H A D | redundancy_raidz.ksh | 71 log_must zpool export $pool 78 log_must zpool import -o cachefile=none -d $dir $pool 89 log_must zpool scrub -w $pool 92 log_must zpool clear $pool 94 log_must zpool export $pool 101 log_must zpool import -o cachefile=none -d $dir $pool 107 log_must zpool scrub -w $pool 110 log_must zpool clear $pool 120 log_must zpool offline $pool $dir/dev-$i 123 log_must zpool export $pool [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/raidz/ |
H A D | raidz_expand_001_pos.ksh | 57 log_pos zpool status $TESTPOOL 59 poolexists "$TESTPOOL" && log_must_busy zpool destroy "$TESTPOOL" 76 newcopied=$(zpool status $TESTPOOL | \ 91 log_must zpool offline $pool $dir/dev-$i 94 log_must zpool export $pool 97 log_must zpool labelclear -f $dir/dev-$i 100 log_must zpool import -o cachefile=none -d $dir $pool 103 log_must zpool replace -f $pool $dir/dev-$i 106 log_must zpool wait -t resilver $pool 110 log_must zpool clear $pool [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/bootfs/ |
H A D | bootfs_006_pos.ksh | 57 log_must zpool set bootfs=$POOL/$TESTFS $POOL 58 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' ) 61 log_must zpool status -v $POOL 65 log_must zpool destroy $POOL 71 log_mustnot zpool set bootfs=$POOL/$TESTFS $POOL 72 VAL=$(zpool get bootfs $POOL | awk 'END {print $3}' ) 75 log_must zpool status -v $POOL 78 log_must zpool destroy $POOL 84 log_must zpool destroy $TESTPOOL 100 log_must zpool create $TESTPOOL $VDEV1 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/alloc_class/ |
H A D | alloc_class_003_pos.ksh | 37 log_must zpool create $TESTPOOL $type $ZPOOL_DISKS 40 log_must zpool add $TESTPOOL special mirror \ 42 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0 43 log_must zpool iostat -H $TESTPOOL $CLASS_DISK1 44 log_must zpool iostat -H $TESTPOOL $CLASS_DISK2 46 log_must zpool add $TESTPOOL special mirror \ 48 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0 49 log_must zpool iostat -H $TESTPOOL $CLASS_DISK1 51 log_must zpool add $TESTPOOL special raidz \ 53 log_must zpool iostat -H $TESTPOOL $CLASS_DISK0 [all …]
|
/freebsd/sys/contrib/openzfs/contrib/debian/ |
H A D | openzfs-zfsutils.install | 3 etc/zfs/zpool.d/ 31 usr/sbin/zpool 36 usr/lib/zfs-linux/zpool.d/ 98 usr/share/man/man8/zpool-add.8 99 usr/share/man/man8/zpool-attach.8 100 usr/share/man/man8/zpool-checkpoint.8 101 usr/share/man/man8/zpool-clear.8 102 usr/share/man/man8/zpool-create.8 103 usr/share/man/man8/zpool-ddtprune.8 104 usr/share/man/man8/zpool-destroy.8 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_scrub/ |
H A D | zpool_scrub_multiple_pools.ksh | 46 zpool destroy $TESTPOOL${pool} 51 zpool import -a 59 log_must zpool export -a 77 log_must zpool create -O mountpoint=$TESTDIR${pool} $TESTPOOL${pool} ${DISK[$pool]} 86 log_must zpool scrub -a 89 log_must zpool wait -t scrub $TESTPOOL${pool} 93 complete_count=$(zpool status -v | grep -c "scrub repaired") 99 log_must zpool scrub -w -a 102 complete_count=$(zpool status -v | grep -c "scrub repaired") 110 log_must zpool scrub -a [all …]
|
H A D | zpool_error_scrub_002_pos.ksh | 62 log_must zpool export $TESTPOOL 63 log_must zpool import $TESTPOOL 73 log_must zpool scrub $TESTPOOL 75 log_mustnot zpool scrub -e $TESTPOOL 76 log_must zpool scrub -p $TESTPOOL 78 log_mustnot zpool scrub -e $TESTPOOL 79 log_must zpool scrub $TESTPOOL 81 log_must zpool scrub -s $TESTPOOL 89 log_must zpool scrub -e $TESTPOOL 91 log_mustnot zpool scrub $TESTPOOL [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_add/ |
H A D | add-o_ashift.ksh | 79 log_must zpool create $TESTPOOL $disk1 80 log_must zpool add $opt -o ashift=$ashift $TESTPOOL $disk2 84 log_must zpool destroy $TESTPOOL 85 log_must zpool labelclear $disk1 86 log_must zpool labelclear $disk2 91 log_must zpool create $TESTPOOL $disk1 93 log_must zpool add $opt $TESTPOOL $disk2 99 log_must zpool destroy $TESTPOOL 100 log_must zpool labelclear $disk1 101 log_must zpool labelclear $disk2 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/ |
H A D | zpool_create_draid_003_pos.ksh | 69 log_must zpool create $TESTPOOL $draid $draid_vdevs 84 log_mustnot zpool create $TESTPOOL draid:d8 $draid_vdevs 85 log_mustnot zpool create $TESTPOOL draid:s3 $draid_vdevs 86 log_mustnot zpool create $TESTPOOL draid:c32 $draid_vdevs 87 log_mustnot zpool create $TESTPOOL draid:10x $draid_vdevs 88 log_mustnot zpool create $TESTPOOL draid:x10 $draid_vdevs 91 log_must zpool create $TESTPOOL draid2:30d $draid_vdevs 93 log_mustnot zpool create $TESTPOOL draid2:31d $draid_vdevs 96 log_mustnot zpool create $TESTPOOL draid2:0d $draid_vdevs 99 log_mustnot zpool create $TESTPOOL draid0 $draid_vdevs [all …]
|
H A D | zpool_create_encrypted.ksh | 69 log_mustnot zpool create -O keylocation=prompt $TESTPOOL $DISKS 70 log_mustnot zpool create -O keyformat=passphrase $TESTPOOL $DISKS 71 log_mustnot zpool create -O keyformat=passphrase -O keylocation=prompt \ 74 log_must zpool create -O encryption=off $TESTPOOL $DISKS 75 log_must zpool destroy $TESTPOOL 77 log_mustnot zpool create -O encryption=off -O keylocation=prompt \ 79 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ 81 log_mustnot zpool create -O encryption=off -O keyformat=passphrase \ 84 log_mustnot zpool create -O encryption=on $TESTPOOL $DISKS 85 log_mustnot zpool create -O encryption=on -O keylocation=prompt \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/ |
H A D | import_cachefile_device_removed.ksh | 52 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 $poolcreate 56 log_must zpool remove $TESTPOOL1 $removevdev 60 log_must zpool export $TESTPOOL1 62 log_must zpool import -c $CPATHBKP $TESTPOOL1 66 log_must zpool destroy $TESTPOOL1 80 log_must zpool create -o cachefile=$CPATH $TESTPOOL1 \ 85 log_must zpool remove $TESTPOOL1 $VDEV4 88 log_must zpool remove $TESTPOOL1 $VDEV3 92 log_must zpool export $TESTPOOL1 94 log_must zpool import -c $CPATHBKP $TESTPOOL1 [all …]
|
H A D | zpool_import_016_pos.ksh | 68 log_must zpool create $TESTPOOL1 draid $VDEV0 $VDEV1 $VDEV2 $VDEV3 75 log_must zpool destroy $TESTPOOL1 77 log_must zpool create $TESTPOOL2 $VDEV0 78 log_must zpool import -d $DEVICE_DIR -D -f $target 79 log_must zpool destroy $TESTPOOL1 81 log_must zpool destroy $TESTPOOL2 83 log_must zpool import -d $DEVICE_DIR -D -f $target 84 log_must zpool destroy $TESTPOOL1 88 log_must zpool create $TESTPOOL2 $VDEV0 $VDEV1 89 log_mustnot zpool import -d $DEVICE_DIR -D -f $target [all …]
|
H A D | zpool_import_007_pos.ksh | 67 log_must zpool create $TESTPOOL1 raidz $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 …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_export/ |
H A D | zpool_export_004_pos.ksh | 69 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4 70 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4 72 log_must zpool export $TESTPOOL1 73 log_must zpool import -d $mntpnt $TESTPOOL1 75 log_must zpool replace $TESTPOOL1 $vdev0 $vdev4 76 log_must zpool detach $TESTPOOL1 $vdev4 77 log_must zpool export $TESTPOOL1 78 log_must zpool import -d $mntpnt $TESTPOOL1 80 log_must zpool replace $TESTPOOL1 $vdev0 $vdev4 81 log_mustnot zpool export $TESTPOOL1 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cachefile/ |
H A D | cachefile_004_pos.ksh | 83 log_must zpool create $TESTPOOL $DISKS 93 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL1 $vdev0 95 log_must zpool create -o cachefile=$CPATH1 $TESTPOOL2 $vdev1 98 log_must zpool set cachefile=$CPATH2 $TESTPOOL1 100 log_must zpool set cachefile=$CPATH2 $TESTPOOL2 106 log_must zpool export $TESTPOOL1 107 log_must zpool export $TESTPOOL2 112 log_must zpool import -d $mntpnt $TESTPOOL1 113 log_must zpool set cachefile=$CPATH2 $TESTPOOL1 115 log_must zpool import -d $mntpnt $TESTPOOL2 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmp/ |
H A D | mmp_hostid.ksh | 59 log_must zpool create $MMP_POOL $MMP_DIR/file.0 74 log_mustnot zpool set multihost=on $MMP_POOL 77 log_must zpool set multihost=on $MMP_POOL 80 log_must zpool attach $MMP_POOL $MMP_DIR/file.0 $MMP_DIR/file.1 81 log_must zpool detach $MMP_POOL $MMP_DIR/file.1 84 log_must zpool add $MMP_POOL $MMP_DIR/file.1 85 log_must zpool add $MMP_POOL $MMP_DIR/file.2 86 log_must zpool add $MMP_POOL cache $MMP_DIR/file.3 87 log_must zpool add $MMP_POOL log $MMP_DIR/file.4 88 log_must zpool add $MMP_POOL special $MMP_DIR/file.5 [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/pool_checkpoint/ |
H A D | checkpoint_discard_busy.ksh | 76 log_must zpool checkpoint $NESTEDPOOL 80 log_must zpool checkpoint -d $NESTEDPOOL 82 log_must zpool export $NESTEDPOOL 93 log_mustnot zpool import -d $FILEDISKDIR --rewind-to-checkpoint $NESTEDPOOL 95 log_must zpool import -d $FILEDISKDIR $NESTEDPOOL 101 log_mustnot zpool checkpoint $NESTEDPOOL 102 log_mustnot zpool checkpoint -d $NESTEDPOOL 103 log_mustnot zpool remove $NESTEDPOOL $FILEDISK1 104 log_mustnot zpool reguid $NESTEDPOOL 111 log_must zpool export $NESTEDPOOL
|