12 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
13 expect_ok ${ZPOOL} status -x ${name0}
14 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
16 echo " pool: ${name0}"
18 echo " scrub: none requested"
20 echo " NAME STATE READ WRITE CKSUM"
21 echo " ${name0} ONLINE 0 0 0"
22 echo " ${disk0} ONLINE 0 0 0"
24 echo " ${disk1} AVAIL"
25 echo "errors: No known data errors"
27 expect "${exp}" ${ZPOOL} status ${name0}
28 expect_ok ${ZPOOL} destroy ${name0}
29 expect_fl ${ZPOOL} status -x ${name0}
30 expect_fl ${ZPOOL} destroy ${name0}
32 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} spare ${disk2} ${disk3}
33 expect_ok ${ZPOOL} status -x ${name0}
34 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
36 echo " pool: ${name0}"
38 echo " scrub: none requested"
40 echo " NAME STATE READ WRITE CKSUM"
41 echo " ${name0} ONLINE 0 0 0"
42 echo " mirror ONLINE 0 0 0"
43 echo " ${disk0} ONLINE 0 0 0"
44 echo " ${disk1} ONLINE 0 0 0"
46 echo " ${disk2} AVAIL"
47 echo " ${disk3} AVAIL"
48 echo "errors: No known data errors"
50 expect "${exp}" ${ZPOOL} status ${name0}
51 expect_ok ${ZPOOL} destroy ${name0}
52 expect_fl ${ZPOOL} status -x ${name0}
53 expect_fl ${ZPOOL} destroy ${name0}
55 expect_ok ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} spare ${disk3} ${disk4}
56 expect_ok ${ZPOOL} status -x ${name0}
57 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
59 echo " pool: ${name0}"
61 echo " scrub: none requested"
63 echo " NAME STATE READ WRITE CKSUM"
64 echo " ${name0} ONLINE 0 0 0"
65 echo " raidz1 ONLINE 0 0 0"
66 echo " ${disk0} ONLINE 0 0 0"
67 echo " ${disk1} ONLINE 0 0 0"
68 echo " ${disk2} ONLINE 0 0 0"
70 echo " ${disk3} AVAIL"
71 echo " ${disk4} AVAIL"
72 echo "errors: No known data errors"
74 expect "${exp}" ${ZPOOL} status ${name0}
75 expect_ok ${ZPOOL} destroy ${name0}
76 expect_fl ${ZPOOL} status -x ${name0}
77 expect_fl ${ZPOOL} destroy ${name0}
79 expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} spare ${disk4} ${disk5}
80 expect_ok ${ZPOOL} status -x ${name0}
81 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
83 echo " pool: ${name0}"
85 echo " scrub: none requested"
87 echo " NAME STATE READ WRITE CKSUM"
88 echo " ${name0} ONLINE 0 0 0"
89 echo " raidz2 ONLINE 0 0 0"
90 echo " ${disk0} ONLINE 0 0 0"
91 echo " ${disk1} ONLINE 0 0 0"
92 echo " ${disk2} ONLINE 0 0 0"
93 echo " ${disk3} ONLINE 0 0 0"
95 echo " ${disk4} AVAIL"
96 echo " ${disk5} AVAIL"
97 echo "errors: No known data errors"
99 expect "${exp}" ${ZPOOL} status ${name0}
100 expect_ok ${ZPOOL} destroy ${name0}
101 expect_fl ${ZPOOL} status -x ${name0}
102 expect_fl ${ZPOOL} destroy ${name0}