/freebsd/lib/geom/mirror/ |
H A D | gmirror.8 | 1 .\" Copyright (c) 2004-2009 Pawel Jakub Dawidek <pjd@FreeBSD.org> 19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 .Bd -ragged -offset indent 41 .Bd -literal -offset indent 135 utility is used for mirror (RAID1) configurations. 136 After a mirror's creation, all components are detected and configured 142 utility uses on-disk metadata (stored in the provider's last sector) to store all needed 145 file system on a mirror. 150 .Bl -tag -width ".Cm deactivate" 152 Create a mirror. [all …]
|
/freebsd/tools/regression/zfs/zpool/add/ |
H A D | option-f_replication_level_mismatch_1.t | 11 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 12 expect_fl ${ZPOOL} add ${name0} mirror ${disk2} ${disk3} ${disk4} 20 echo " mirror ONLINE 0 0 0" 23 echo "errors: No known data errors" 27 expect_fl ${ZPOOL} status -x ${name0} 29 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 30 expect_ok ${ZPOOL} add -f ${name0} mirror ${disk2} ${disk3} ${disk4} 38 echo " mirror ONLINE 0 0 0" 41 echo " mirror ONLINE 0 0 0" 45 echo "errors: No known data errors" [all …]
|
H A D | option-f_size_mismatch.t | 14 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 15 expect_fl ${ZPOOL} add ${name0} mirror ${disk7} ${disk2} 23 echo " mirror ONLINE 0 0 0" 26 echo "errors: No known data errors" 30 expect_fl ${ZPOOL} status -x ${name0} 32 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 33 expect_ok ${ZPOOL} add -f ${name0} mirror ${disk7} ${disk2} 41 echo " mirror ONLINE 0 0 0" 44 echo " mirror ONLINE 0 0 0" 47 echo "errors: No known data errors" [all …]
|
H A D | log.t | 23 echo "errors: No known data errors" 27 expect_fl ${ZPOOL} status -x ${name0} 30 expect_ok ${ZPOOL} add ${name0} log mirror ${disk1} ${disk2} ${disk3} 40 echo " mirror ONLINE 0 0 0" 44 echo "errors: No known data errors" 48 expect_fl ${ZPOOL} status -x ${name0} 50 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 59 echo " mirror ONLINE 0 0 0" 64 echo "errors: No known data errors" 68 expect_fl ${ZPOOL} status -x ${name0} [all …]
|
H A D | mirror.t | 11 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 12 expect_ok ${ZPOOL} add ${name0} mirror ${disk2} ${disk3} 20 echo " mirror ONLINE 0 0 0" 23 echo " mirror ONLINE 0 0 0" 26 echo "errors: No known data errors" 30 expect_fl ${ZPOOL} status -x ${name0} 32 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} 33 expect_ok ${ZPOOL} add ${name0} mirror ${disk3} ${disk4} ${disk5} 41 echo " mirror ONLINE 0 0 0" 45 echo " mirror ONLINE 0 0 0" [all …]
|
H A D | files.t | 21 echo "errors: No known data errors" 24 expect_fl ${ZPOOL} status -x ${name0} 37 echo "errors: No known data errors" 40 expect_fl ${ZPOOL} status -x ${name0} 53 echo "errors: No known data errors" 57 expect_fl ${ZPOOL} status -x ${name0} 73 echo "errors: No known data errors" 77 expect_fl ${ZPOOL} status -x ${name0} 79 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1} 80 expect_ok ${ZPOOL} add ${name0} mirror ${file2} ${file3} [all …]
|
H A D | option-f_type_mismatch.t | 22 echo "errors: No known data errors" 26 expect_fl ${ZPOOL} status -x ${name0} 29 expect_ok ${ZPOOL} add -f ${name0} ${file0} 39 echo "errors: No known data errors" 43 expect_fl ${ZPOOL} status -x ${name0} 55 echo "errors: No known data errors" 59 expect_fl ${ZPOOL} status -x ${name0} 62 expect_ok ${ZPOOL} add -f ${name0} ${disk0} 72 echo "errors: No known data errors" 76 expect_fl ${ZPOOL} status -x ${name0} [all …]
|
H A D | option-f_inuse.t | 16 echo "use '-f' to override the following errors:" 28 echo "errors: No known data errors" 31 expect_ok ${ZPOOL} add -f ${name1} ${disk0} 41 echo "errors: No known data errors" 51 echo "use '-f' to override the following errors:" 63 echo "errors: No known data errors" 66 expect_ok ${ZPOOL} add -f ${name1} ${disk2} ${disk0} 77 echo "errors: No known data errors" 82 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 84 expect_ok ${ZPOOL} create ${name1} mirror ${disk2} ${disk3} [all …]
|
/freebsd/tools/regression/zfs/zpool/offline/ |
H A D | mirror.t | 11 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 25 echo " mirror DEGRADED 0 0 0" 28 echo "errors: No known data errors" 32 expect_fl ${ZPOOL} status -x ${name0} 34 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} 48 echo " mirror DEGRADED 0 0 0" 51 echo "errors: No known data errors" 55 expect_fl ${ZPOOL} status -x ${name0} 57 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} 72 echo " mirror DEGRADED 0 0 0" [all …]
|
H A D | log.t | 11 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} 27 echo " mirror DEGRADED 0 0 0" 30 echo "errors: No known data errors" 35 expect_fl ${ZPOOL} status -x ${name0} 37 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} 53 echo " mirror DEGRADED 0 0 0" 56 echo "errors: No known data errors" 61 expect_fl ${ZPOOL} status -x ${name0} 63 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} 80 echo " mirror DEGRADED 0 0 0" [all …]
|
H A D | option-t.t | 11 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 25 echo " mirror DEGRADED 0 0 0" 28 echo "errors: No known data errors" 45 echo " mirror DEGRADED 0 0 0" 48 echo "errors: No known data errors" 53 expect_fl ${ZPOOL} status -x ${name0} 55 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 56 expect_ok ${ZPOOL} offline -t ${name0} ${disk0} 69 echo " mirror DEGRADED 0 0 0" 72 echo "errors: No known data errors" [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
H A D | removal_with_faulted.ksh | 1 #! /bin/ksh -p 35 # mirror-0 mirror-1 36 # DISK0 (child 0) ------> DISK2 (child 0) 37 # DISK1 (child 1) ------> DISK3 (child 1) 40 # it impossible to copy any data during the removal process. This 41 # is done by faulting both the mirror-0 (child 0) source vdev and 42 # mirror-1 (child 1) destination vdev. As shown below the default 44 # alternate mapping is selected and all the readable data is copied. 47 # mirror-0 mirror-1 48 # DISK0 (FAULTED) ------> DISK2 [all …]
|
H A D | removal_with_errors.ksh | 1 #! /bin/ksh -p 30 # to ensure that when removing a device all of the data is copied. 36 # 2. We write some test data to the pool. 37 # 3. We inject READ errors in to one half of the top-level mirror-0 40 # mirror-0 to be cancelled and that mirror-0 has not been removed. 42 # 6. Repeat steps 3-6 above except inject WRITE errors on one of 43 # child vdevs in the destination mirror-1. 44 # 7. Lastly verify the pool data is still intact. 47 TMPDIR=${TMPDIR:-$TEST_BASE_DIR} 53 log_must truncate -s $MINVDEVSIZE $DISK0 $DISK1 [all …]
|
/freebsd/tools/regression/zfs/zpool/create/ |
H A D | option-f_replication_level_mismatch_1.t | 11 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4} 12 expect_fl ${ZPOOL} status -x ${name0} 15 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3… 16 expect_ok ${ZPOOL} status -x ${name0} 17 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 25 echo " mirror ONLINE 0 0 0" 28 echo " mirror ONLINE 0 0 0" 32 echo "errors: No known data errors" 36 expect_fl ${ZPOOL} status -x ${name0} 39 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} [all …]
|
H A D | mirror.t | 11 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} 13 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} 14 expect_ok ${ZPOOL} status -x ${name0} 15 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 23 echo " mirror ONLINE 0 0 0" 26 echo "errors: No known data errors" 30 expect_fl ${ZPOOL} status -x ${name0} 33 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} ${disk4} 34 expect_ok ${ZPOOL} status -x ${name0} 35 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} [all …]
|
H A D | log.t | 12 expect_ok ${ZPOOL} status -x ${name0} 13 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 24 echo "errors: No known data errors" 28 expect_fl ${ZPOOL} status -x ${name0} 31 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} ${disk3} 32 expect_ok ${ZPOOL} status -x ${name0} 33 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 43 echo " mirror ONLINE 0 0 0" 47 echo "errors: No known data errors" 51 expect_fl ${ZPOOL} status -x ${name0} [all …]
|
H A D | files.t | 12 expect_ok ${ZPOOL} status -x ${name0} 13 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 22 echo "errors: No known data errors" 26 expect_fl ${ZPOOL} status -x ${name0} 30 expect_ok ${ZPOOL} status -x ${name0} 31 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 44 echo "errors: No known data errors" 48 expect_fl ${ZPOOL} status -x ${name0} 51 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1} 52 expect_ok ${ZPOOL} status -x ${name0} [all …]
|
H A D | option-f_size_mismatch.t | 17 expect_ok ${ZPOOL} status -x ${name0} 21 expect_ok ${ZPOOL} status -x ${name0} 24 expect_ok ${ZPOOL} create ${name0} mirror ${disk1} ${disk2} mirror ${disk0} ${disk5} 25 expect_ok ${ZPOOL} status -x ${name0} 28 expect_ok ${ZPOOL} create ${name0} mirror ${file1} ${file2} mirror ${file0} ${file5} 29 expect_ok ${ZPOOL} status -x ${name0} 33 expect_ok ${ZPOOL} status -x ${name0} 37 expect_ok ${ZPOOL} status -x ${name0} 41 expect_ok ${ZPOOL} status -x ${name0} 45 expect_ok ${ZPOOL} status -x ${name0} [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | fsync.sh | 22 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 38 [ $((`sysctl -n hw.usermem` / 1024 / 1024 / 1024)) -le 10 ] && 48 [ -c /dev/md$u ] && mdconfig -d -u $u 49 mdconfig -a -t swap -s $size -u $u 53 gmirror label -v -b split -s 2048 data /dev/md$md1 /dev/md$md2 \ 55 [ "`sysctl -in kern.geom.mirror.launch_mirror_before_timeout`" = "0" ] && 56 sleep $((`sysctl -n kern.geom.mirror.timeout` + 1)) 59 gjournal label -s $jsize /dev/mirror/data > /dev/null || 60 { gmirror stop data; exit 1; } [all …]
|
H A D | graid1.sh | 22 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 41 [ $((`sysctl -n hw.usermem` / 1024 / 1024 / 1024)) -le 4 ] && 45 mdconfig -l | grep -q md$u && mdconfig -d -u $u 46 mdconfig -a -t swap -s $size -u $u 50 old=`sysctl -n kern.geom.mirror.debug` 51 sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 || 52 sysctl kern.geom.mirror.debug=$old > /dev/null 53 gmirror label -v -b split -s 2048 data /dev/md$md1 /dev/md$md2 \ 55 [ "`sysctl -in kern.geom.mirror.launch_mirror_before_timeout`" = "0" ] && [all …]
|
H A D | graid1_8.sh | 22 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 # Mirror test where the third disk is partially wiped: 30 # Silent Data Corruption. 33 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 38 mount | grep -q "on $mntpoint " && umount $mntpoint 39 [ -c /dev/mirror/test ] && { gmirror stop test; gmirror destroy test; } 40 old=`sysctl -n kern.geom.mirror.debug` 41 sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 || 42 sysctl kern.geom.mirror.debug=$old > /dev/null 49 [ -c /dev/md$u ] && mdconfig -d -u $u [all …]
|
/freebsd/sys/contrib/openzfs/man/man8/ |
H A D | zpool-remove.8 | 9 .\" or https://opensource.org/licenses/CDDL-1.0. 27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 34 .Nm zpool-remove 48 .Bl -tag -width Ds 57 non-redundant primary top-level vdevs, including dedup and special vdevs. 59 Top-level vdevs can only be removed if the primary pool storage does not contain 60 a top-level raidz vdev, all top-level vdevs have the same sector size, and the 63 Removing a top-level vdev reduces the total amount of space in the storage pool. 75 feature flag must be enabled to remove a top-level vdev, see 76 .Xr zpool-features 7 . [all …]
|
H A D | zpool.8 | 9 .\" or https://opensource.org/licenses/CDDL-1.0. 27 .\" Copyright (c) 2017 Open-E, Inc. All Rights Reserved. 51 data replication for ZFS datasets. 70 .Bl -tag -width Ds 78 .Fl V , -version 94 .Bl -tag -width Ds 95 .It Xr zpool-create 8 98 .It Xr zpool-initialize 8 105 .Bl -tag -width Ds 106 .It Xr zpool-destroy 8 [all …]
|
/freebsd/tools/regression/zfs/zpool/attach/ |
H A D | option-f_inuse.t | 16 echo "use '-f' to override the following errors:" 28 echo "errors: No known data errors" 31 expect_ok ${ZPOOL} attach -f ${name1} ${disk1} ${disk0} 36 echo " scrub: resilver completed after [0-9]+h[0-9]+m with 0 errors on .*" 40 echo " mirror ONLINE 0 0 0" 41 echo " ${disk1} ONLINE 0 0 0( [0-9.]+[A-Z] resilvered)?" 42 echo " ${disk0} ONLINE 0 0 0( [0-9.]+[A-Z] resilvered)?" 43 echo "errors: No known data errors" 50 expect_ok ${ZPOOL} create ${name1} mirror ${disk1} ${disk2} 53 echo "use '-f' to override the following errors:" [all …]
|
H A D | log.t | 17 echo " scrub: resilver completed after [0-9]+h[0-9]+m with 0 errors on .*" 23 echo " mirror ONLINE 0 0 0" 26 echo "errors: No known data errors" 34 echo " scrub: resilver completed after [0-9]+h[0-9]+m with 0 errors on .*" 40 echo " mirror ONLINE 0 0 0" 44 echo "errors: No known data errors" 52 echo " scrub: resilver completed after [0-9]+h[0-9]+m with 0 errors on .*" 58 echo " mirror ONLINE 0 0 0" 63 echo "errors: No known data errors" 70 echo " scrub: resilver completed after [0-9]+h[0-9]+m with 0 errors on .*" [all …]
|