12 expect_ok ${ZPOOL} create ${name0} ${disk0}
13 expect_ok ${ZPOOL} add ${name0} spare ${disk1}
15 echo " pool: ${name0}"
17 echo " scrub: none requested"
19 echo " NAME STATE READ WRITE CKSUM"
20 echo " ${name0} ONLINE 0 0 0"
21 echo " ${disk0} ONLINE 0 0 0"
23 echo " ${disk1} AVAIL"
24 echo "errors: No known data errors"
26 expect "${exp}" ${ZPOOL} status ${name0}
27 expect_ok ${ZPOOL} destroy ${name0}
28 expect_fl ${ZPOOL} status -x ${name0}
30 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
31 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
33 echo " pool: ${name0}"
35 echo " scrub: none requested"
37 echo " NAME STATE READ WRITE CKSUM"
38 echo " ${name0} ONLINE 0 0 0"
39 echo " mirror ONLINE 0 0 0"
40 echo " ${disk0} ONLINE 0 0 0"
41 echo " ${disk1} ONLINE 0 0 0"
43 echo " ${disk2} AVAIL"
44 echo " ${disk3} AVAIL"
45 echo "errors: No known data errors"
47 expect "${exp}" ${ZPOOL} status ${name0}
48 expect_ok ${ZPOOL} destroy ${name0}
49 expect_fl ${ZPOOL} status -x ${name0}
51 expect_ok ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2}
52 expect_ok ${ZPOOL} add ${name0} spare ${disk3} ${disk4}
54 echo " pool: ${name0}"
56 echo " scrub: none requested"
58 echo " NAME STATE READ WRITE CKSUM"
59 echo " ${name0} ONLINE 0 0 0"
60 echo " raidz1 ONLINE 0 0 0"
61 echo " ${disk0} ONLINE 0 0 0"
62 echo " ${disk1} ONLINE 0 0 0"
63 echo " ${disk2} ONLINE 0 0 0"
65 echo " ${disk3} AVAIL"
66 echo " ${disk4} AVAIL"
67 echo "errors: No known data errors"
69 expect "${exp}" ${ZPOOL} status ${name0}
70 expect_ok ${ZPOOL} destroy ${name0}
71 expect_fl ${ZPOOL} status -x ${name0}
73 expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3}
74 expect_ok ${ZPOOL} add ${name0} spare ${disk4} ${disk5}
76 echo " pool: ${name0}"
78 echo " scrub: none requested"
80 echo " NAME STATE READ WRITE CKSUM"
81 echo " ${name0} ONLINE 0 0 0"
82 echo " raidz2 ONLINE 0 0 0"
83 echo " ${disk0} ONLINE 0 0 0"
84 echo " ${disk1} ONLINE 0 0 0"
85 echo " ${disk2} ONLINE 0 0 0"
86 echo " ${disk3} ONLINE 0 0 0"
88 echo " ${disk4} AVAIL"
89 echo " ${disk5} AVAIL"
90 echo "errors: No known data errors"
92 expect "${exp}" ${ZPOOL} status ${name0}
93 expect_ok ${ZPOOL} destroy ${name0}
94 expect_fl ${ZPOOL} status -x ${name0}
96 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
97 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
99 echo " pool: ${name0}"
100 echo " state: ONLINE"
101 echo " scrub: none requested"
103 echo " NAME STATE READ WRITE CKSUM"
104 echo " ${name0} ONLINE 0 0 0"
105 echo " ${disk0} ONLINE 0 0 0"
107 echo " ${disk1} AVAIL"
108 echo " ${disk2} AVAIL"
109 echo " ${disk3} AVAIL"
110 echo "errors: No known data errors"
112 expect "${exp}" ${ZPOOL} status ${name0}
113 expect_ok ${ZPOOL} destroy ${name0}
114 expect_fl ${ZPOOL} status -x ${name0}
116 expect_ok ${ZPOOL} create ${name0} ${disk0}
117 expect_ok ${ZPOOL} add ${name0} spare ${disk1} ${disk2}
118 expect_ok ${ZPOOL} add ${name0} spare ${disk3}
120 echo " pool: ${name0}"
121 echo " state: ONLINE"
122 echo " scrub: none requested"
124 echo " NAME STATE READ WRITE CKSUM"
125 echo " ${name0} ONLINE 0 0 0"
126 echo " ${disk0} ONLINE 0 0 0"
128 echo " ${disk1} AVAIL"
129 echo " ${disk2} AVAIL"
130 echo " ${disk3} AVAIL"
131 echo "errors: No known data errors"
133 expect "${exp}" ${ZPOOL} status ${name0}
134 expect_ok ${ZPOOL} destroy ${name0}
135 expect_fl ${ZPOOL} status -x ${name0}