12 expect_ok ${ZPOOL} create ${name0} ${disk0} cache ${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} ONLINE 0 0 0"
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} ${disk0} cache ${disk1} ${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 " ${disk0} ONLINE 0 0 0"
44 echo " ${disk1} ONLINE 0 0 0"
45 echo " ${disk2} ONLINE 0 0 0"
46 echo " ${disk3} ONLINE 0 0 0"
47 echo "errors: No known data errors"
49 expect "${exp}" ${ZPOOL} status ${name0}
50 expect_ok ${ZPOOL} destroy ${name0}
51 expect_fl ${ZPOOL} status -x ${name0}
52 expect_fl ${ZPOOL} destroy ${name0}
54 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} cache ${disk2} ${disk3}
55 expect_ok ${ZPOOL} status -x ${name0}
56 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
58 echo " pool: ${name0}"
60 echo " scrub: none requested"
62 echo " NAME STATE READ WRITE CKSUM"
63 echo " ${name0} ONLINE 0 0 0"
64 echo " mirror ONLINE 0 0 0"
65 echo " ${disk0} ONLINE 0 0 0"
66 echo " ${disk1} ONLINE 0 0 0"
68 echo " ${disk2} ONLINE 0 0 0"
69 echo " ${disk3} ONLINE 0 0 0"
70 echo "errors: No known data errors"
72 expect "${exp}" ${ZPOOL} status ${name0}
73 expect_ok ${ZPOOL} destroy ${name0}
74 expect_fl ${ZPOOL} status -x ${name0}
75 expect_fl ${ZPOOL} destroy ${name0}
77 expect_ok ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${disk2} cache ${disk3} ${disk4}
78 expect_ok ${ZPOOL} status -x ${name0}
79 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
81 echo " pool: ${name0}"
83 echo " scrub: none requested"
85 echo " NAME STATE READ WRITE CKSUM"
86 echo " ${name0} ONLINE 0 0 0"
87 echo " raidz1 ONLINE 0 0 0"
88 echo " ${disk0} ONLINE 0 0 0"
89 echo " ${disk1} ONLINE 0 0 0"
90 echo " ${disk2} ONLINE 0 0 0"
92 echo " ${disk3} ONLINE 0 0 0"
93 echo " ${disk4} ONLINE 0 0 0"
94 echo "errors: No known data errors"
96 expect "${exp}" ${ZPOOL} status ${name0}
97 expect_ok ${ZPOOL} destroy ${name0}
98 expect_fl ${ZPOOL} status -x ${name0}
99 expect_fl ${ZPOOL} destroy ${name0}
101 expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} cache ${disk4} ${disk5}
102 expect_ok ${ZPOOL} status -x ${name0}
103 expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0}
105 echo " pool: ${name0}"
106 echo " state: ONLINE"
107 echo " scrub: none requested"
109 echo " NAME STATE READ WRITE CKSUM"
110 echo " ${name0} ONLINE 0 0 0"
111 echo " raidz2 ONLINE 0 0 0"
112 echo " ${disk0} ONLINE 0 0 0"
113 echo " ${disk1} ONLINE 0 0 0"
114 echo " ${disk2} ONLINE 0 0 0"
115 echo " ${disk3} ONLINE 0 0 0"
117 echo " ${disk4} ONLINE 0 0 0"
118 echo " ${disk5} ONLINE 0 0 0"
119 echo "errors: No known data errors"
121 expect "${exp}" ${ZPOOL} status ${name0}
122 expect_ok ${ZPOOL} destroy ${name0}
123 expect_fl ${ZPOOL} status -x ${name0}
124 expect_fl ${ZPOOL} destroy ${name0}