Home
last modified time | relevance | path

Searched full:mirror (Results 1 – 25 of 648) sorted by relevance

12345678910>>...26

/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_upgrade/
H A Dzpool_upgrade.cfg55 # v1 mirror
72 # v2 mirror
89 # v3 mirror
158 # This pool is a v2 pool, with device problems on one side of the mirror
162 export ZPOOL_VERSION_2brokenmirror_NAME="zfs-broken-mirror"
179 CONFIGS="1 1stripe 1raidz 1mirror"
184 CONFIGS="1 1stripe 1raidz 1mirror \
185 2 2stripe 2raidz 2mirror 2brokenmirror"
189 CONFIGS="1 1stripe 1raidz 1mirror \
190 2 2stripe 2raidz 2mirror 2brokenmirror \
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_006_pos.ksh69 "mirror $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 $vdev5" \
70 "mirror $vdev0 $vdev1 mirror $vdev2 $vdev3 mirror $vdev4 $vdev5" \
71 "mirror $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 $vdev5 \
73 "mirror $vdev0 $vdev1 mirror $vdev2 $vdev3 mirror $vdev4 $vdev5 \
75 "mirror $vdev0 $vdev1 spare $vdev2 mirror $vdev3 $vdev4" \
76 "mirror $vdev0 $vdev1 raidz $vdev2 $vdev3" \
77 "mirror $vdev0 $vdev1 raidz $vdev2 $vdev3 $vdev4" \
78 "mirror $vdev0 $vdev1 $vdev2 raidz2 $vdev3 $vdev4 $vdev5" \
79 "mirror $vdev0 $vdev1 $vdev2 $vdev3 \
81 "raidz $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4" \
[all …]
H A Dzpool_create_011_neg.ksh95 "$TESTPOOL1 mirror mirror $mirror1 mirror $mirror2" \
99 "$TESTPOOL1 mirror raidz $raidz1 raidz $raidz2" \
100 "$TESTPOOL1 mirror raidz1 $raidz1 raidz1 $raidz2" \
101 "$TESTPOOL1 mirror draid $draid1 draid $draid2" \
102 "$TESTPOOL1 raidz mirror $mirror1 mirror $mirror2" \
103 "$TESTPOOL1 raidz1 mirror $mirror1 mirror $mirror2" \
104 "$TESTPOOL1 draid1 mirror $mirror1 mirror $mirror2" \
105 "$TESTPOOL1 mirror $diff_size_dev" \
109 "$TESTPOOL1 mirror $mirror1 spare $mirror2 spare $diff_size_dev" \
/freebsd/lib/geom/mirror/
H A Dgmirror.8135 utility is used for mirror (RAID1) configurations.
136 After a mirror's creation, all components are detected and configured
145 file system on a mirror.
152 Create a mirror.
197 but creates mirror without storing on-disk metadata in last sector.
199 mirror detection after reboot, device hot-plug and other external events.
229 Rebuild the given mirror components forcibly.
233 Change the size of the given mirror.
238 New size of the mirror is expressed in logical block numbers.
243 Add the given component(s) to the existing mirror.
[all …]
/freebsd/tools/regression/zfs/zpool/add/
H A Dmirror.t11 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"
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"
55 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3}
56 expect_ok ${ZPOOL} add ${name0} mirror ${disk4} ${disk5} mirror ${disk6} ${disk7} mirror ${disk8} $…
[all …]
H A Doption-f_size_mismatch.t14 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
15 expect_fl ${ZPOOL} add ${name0} mirror ${disk7} ${disk2}
23 echo " mirror ONLINE 0 0 0"
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"
53 expect_ok ${ZPOOL} create ${name0} mirror ${file0} ${file1}
54 expect_fl ${ZPOOL} add ${name0} mirror ${file7} ${file2}
62 echo " mirror ONLINE 0 0 0"
[all …]
H A Dlog.t30 expect_ok ${ZPOOL} add ${name0} log mirror ${disk1} ${disk2} ${disk3}
40 echo " mirror ONLINE 0 0 0"
50 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
59 echo " mirror ONLINE 0 0 0"
70 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
71 expect_ok ${ZPOOL} add ${name0} log mirror ${disk2} ${disk3} ${disk4}
79 echo " mirror ONLINE 0 0 0"
83 echo " mirror ONLINE 0 0 0"
115 expect_ok ${ZPOOL} add ${name0} log mirror ${disk3} ${disk4} ${disk5}
128 echo " mirror ONLINE 0 0 0"
[all …]
H A Doption-f_replication_level_mismatch_1.t11 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"
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"
51 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2}
52 expect_fl ${ZPOOL} add ${name0} mirror ${disk3} ${disk4}
60 echo " mirror ONLINE 0 0 0"
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_006_pos.ksh77 "mirror $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 $vdev5" \
78 "mirror $vdev0 $vdev1 mirror $vdev2 $vdev3 mirror $vdev4 $vdev5" \
79 "mirror $vdev0 $vdev1 $vdev2 mirror $vdev3 $vdev4 $vdev5 \
81 "mirror $vdev0 $vdev1 mirror $vdev2 $vdev3 mirror $vdev4 $vdev5 \
83 "mirror $vdev0 $vdev1 spare $vdev2 mirror $vdev3 $vdev4" \
103 "$vdev0 mirror $vdev1 $vdev2 mirror $vdev3 $vdev4" \
104 "$vdev0 mirror $vdev1 $vdev2 raidz $vdev3 $vdev4 \
106 "$vdev0 mirror $vdev1 $vdev2 spare $vdev3 raidz $vdev4 $vdev5" \
110 "mirror $vdev0 $vdev1 raidz $vdev2 $vdev3 raidz2 $vdev4 $vdev5 $vdev6" \
111 "mirror $vdev0 $vdev1 raidz $vdev2 $vdev3 \
[all …]
/freebsd/tools/test/stress2/misc/
H A Dgraid1_3.sh39 [ -c /dev/mirror/markj-mirror ] &&
40 { gmirror stop markj-mirror; gmirror destroy markj-mirror; }
41 old=`sysctl -n kern.geom.mirror.debug`
42 sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 ||
43 sysctl kern.geom.mirror.debug=$old > /dev/null
62 gmirror label markj-mirror md${u1}p1
66 gmirror label markj-mirror md${u1}p1
67 gmirror destroy markj-mirror
71 gmirror insert markj-mirror md${u2}p1
72 gmirror remove markj-mirror md${u2}p1
[all …]
H A Dgraid1_8.sh29 # Mirror test where the third disk is partially wiped:
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
55 [ "`sysctl -in kern.geom.mirror.launch_mirror_before_timeout`" = "0" ] &&
58 gpart create -s BSD mirror/test
59 gpart add -t freebsd-ufs -s 99m mirror/test
61 [ -c /dev/mirror/testa ] || exit 1
63 newfs -n /dev/mirror/testa > /dev/null
[all …]
H A Dgraid1_6.sh41 [ -c /dev/mirror/test ] && { gmirror stop test; gmirror destroy test; }
42 old=`sysctl -n kern.geom.mirror.debug`
43 sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 ||
44 sysctl kern.geom.mirror.debug=$old > /dev/null
59 [ "`sysctl -in kern.geom.mirror.launch_mirror_before_timeout`" = "0" ] &&
60 sleep $((`sysctl -n kern.geom.mirror.timeout` + 1))
61 [ -c /dev/mirror/test ] || exit 1
62 newfs $newfs_flags /dev/mirror/test > /dev/null
63 mount /dev/mirror/test $mntpoint
90 while mount | grep $mntpoint | grep -q /mirror/; do
[all …]
H A Dgraid1_4.sh45 [ -c /dev/mirror/test ] && { gmirror stop test; gmirror destroy test; }
46 old=`sysctl -n kern.geom.mirror.debug`
47 sysctl kern.geom.mirror.debug=-1 | grep -q -- -1 ||
48 sysctl kern.geom.mirror.debug=$old > /dev/null
63 [ "`sysctl -in kern.geom.mirror.launch_mirror_before_timeout`" = "0" ] &&
64 sleep $((`sysctl -n kern.geom.mirror.timeout` + 1))
65 [ -c /dev/mirror/test ] || exit 1
67 newfs /dev/mirror/test > /dev/null
68 mount /dev/mirror/test $mntpoint
86 while mount | grep $mntpoint | grep -q /mirror/; do
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/
H A Dremoval_with_faulted.ksh35 # mirror-0 mirror-1
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
47 # mirror-0 mirror-1
52 # mirror-0 mirror-1
58 # 1. We create a pool with two top-level mirror vdevs.
61 # 4. We remove the mirror-0 device.
81 default_setup_noexit "mirror $DISK0 $DISK1 mirror $DISK2 $DISK3"
94 log_must zpool remove $TESTPOOL mirror-0
96 log_mustnot vdevs_in_pool $TESTPOOL mirror-0
H A Dremoval_with_errors.ksh37 # 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.
43 # child vdevs in the destination mirror-1.
79 default_setup_noexit "mirror $DISK0 $DISK1 mirror $DISK2 $DISK3"
95 log_must zpool remove $TESTPOOL mirror-0
97 log_must vdevs_in_pool $TESTPOOL mirror-0
106 log_must zpool remove $TESTPOOL mirror-0
108 log_must vdevs_in_pool $TESTPOOL mirror-0
/freebsd/tools/regression/zfs/zpool/offline/
H A Dmirror.t11 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
25 echo " mirror DEGRADED 0 0 0"
34 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1}
48 echo " mirror DEGRADED 0 0 0"
57 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1}
72 echo " mirror DEGRADED 0 0 0"
81 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3}
98 echo " mirror DEGRADED 0 0 0"
101 echo " mirror DEGRADED 0 0 0"
110 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3}
[all …]
H A Dlog.t11 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2}
27 echo " mirror DEGRADED 0 0 0"
37 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2}
53 echo " mirror DEGRADED 0 0 0"
63 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2}
80 echo " mirror DEGRADED 0 0 0"
91 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4}
110 echo " mirror DEGRADED 0 0 0"
113 echo " mirror DEGRADED 0 0 0"
126 expect_ok ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4}
[all …]
/freebsd/sys/contrib/openzfs/man/man8/
H A Dzpool-remove.879 level mirror for the
116 .Sy mirror-2
118 .Sy mirror-1 .
129 mirror-0 ONLINE 0 0 0
132 mirror-1 ONLINE 0 0 0
136 mirror-2 ONLINE 0 0 0
142 .Ar mirror-2 No is :
143 .Dl # Nm zpool Cm remove Ar tank mirror-2
146 (both sides of the mirror have been removed):
155 mirror-0 ONLINE 0 0 0
[all …]
H A Dzpool.8118 Converts a non-redundant disk into a mirror, or increases
119 the redundancy level of an existing mirror
261 The following command creates a pool with two mirrors, where each mirror
263 .Dl # Nm zpool Cm create Ar tank Sy mirror Pa sda sdb Sy mirror Pa sdc sdd
278 into a mirror by attaching a second device to it,
282 .Ss Example 6 : No Adding a Mirror to a ZFS Storage Pool
287 .Dl # Nm zpool Cm add Ar tank Sy mirror Pa sda sdb
329 mirror ONLINE
346 .Dl # Nm zpool Cm create Ar tank Sy mirror Pa sda sdb Sy spare Pa sdc
362 .Dl # Nm zpool Cm create Ar pool Sy mirror Pa sda sdb Sy mirror Pa sdc sdd Sy log mirror Pa sde sdf
[all …]
/freebsd/tools/regression/zfs/zpool/create/
H A Doption-f_replication_level_mismatch_1.t11 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4}
15 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3…
25 echo " mirror ONLINE 0 0 0"
28 echo " mirror ONLINE 0 0 0"
39 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4}
43 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3…
53 echo " mirror ONLINE 0 0 0"
57 echo " mirror ONLINE 0 0 0"
191 expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3}
195 expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3}
[all …]
H A Dmirror.t11 expect_fl ${ZPOOL} create ${name0} mirror ${disk0}
13 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
23 echo " mirror ONLINE 0 0 0"
33 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} ${disk4}
43 echo " mirror ONLINE 0 0 0"
56 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} mirror ${disk4…
66 echo " mirror ONLINE 0 0 0"
69 echo " mirror ONLINE 0 0 0"
72 echo " mirror ONLINE 0 0 0"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_split/
H A Dzpool_split_dryrun_output.ksh53 tree="mirror '${dev[0]}' '${dev[1]}' log mirror '${dev[2]}' '${dev[3]}' \
54 special mirror '${dev[4]}' '${dev[5]}'"
65 tree="mirror '${dev[0]}' '${dev[1]}' log mirror '${dev[2]}' '${dev[3]}' \
66 special mirror '${dev[4]}' '${dev[5]}'"
79 tree="mirror '${dev[0]}' '${dev[1]}'
80 dedup mirror '${dev[2]}' '${dev[3]}' \
81 special mirror '${dev[4]}' '${dev[5]}' \
84 log mirror '${dev[10]}' '${dev[11]}'"
97 tree="mirror '${dev[0]}' '${dev[1]}'
98 dedup mirror '${dev[2]}' '${dev[3]}' \
[all …]
H A Dzpool_split_devices.ksh25 # 1. Create various (mirror-only) pools
27 # new pool. At most one disk from each mirror can be specified.
61 typeset poolconfs=("mirror ${fd[01]} ${fd[02]}"
62 "mirror ${fd[01]} ${fd[02]} ${fd[03]}"
63 "mirror ${fd[01]} ${fd[02]} mirror ${fd[11]} ${fd[12]}"
64 "mirror ${fd[01]} ${fd[02]} ${fd[03]} mirror ${fd[11]} ${fd[12]}"
65 "mirror ${fd[01]} ${fd[02]} mirror ${fd[11]} ${fd[12]} ${fd[13]}"
66 "mirror ${fd[01]} ${fd[02]} ${fd[03]} mirror ${fd[11]} ${fd[12]} ${fd[13]}"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dimport_cachefile_mirror_detached.ksh23 # that a mirror was detached.
28 # 3. Detach a mirror from the pool.
64 test_detach_vdev "mirror $VDEV0 $VDEV4" "$VDEV0"
65 test_detach_vdev "mirror $VDEV0 $VDEV4 mirror $VDEV1 $VDEV2" \
66 "$VDEV0 mirror $VDEV1 $VDEV2"
67 test_detach_vdev "mirror $VDEV0 $VDEV1 $VDEV4" "mirror $VDEV0 $VDEV1"
68 test_detach_vdev "$VDEV0 log mirror $VDEV1 $VDEV4" "$VDEV0 log $VDEV1"
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibmirror.c154 IBEXIT("Clear port mirror route set failed"); in port_mirror_route()
160 IBEXIT("Read port mirror route get failed"); in port_mirror_route()
169 /* Port Mirror Route */ in port_mirror_route()
178 else { /* remote mirror */ in port_mirror_route()
189 IBEXIT("port mirror route set failed"); in port_mirror_route()
193 printf("Port Mirror Route\n%s", str); in port_mirror_route()
204 IBEXIT("Clear port mirror ports set failed"); in port_mirror_ports()
210 IBEXIT("Read port mirror ports get failed"); in port_mirror_ports()
214 /* Port Mirror Ports */ in port_mirror_ports()
228 IBEXIT("port mirror ports set failed"); in port_mirror_ports()
[all …]

12345678910>>...26