12 expect_ok ${ZPOOL} create ${name0} ${disk0}
13 expect_fl ${ZPOOL} add ${name0} mirror ${disk1} ${disk2}
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"
22 echo "errors: No known data errors"
24 expect "${exp}" ${ZPOOL} status ${name0}
25 expect_ok ${ZPOOL} destroy ${name0}
26 expect_fl ${ZPOOL} status -x ${name0}
28 expect_ok ${ZPOOL} create ${name0} ${disk0}
29 expect_ok ${ZPOOL} add -f ${name0} mirror ${disk1} ${disk2}
31 echo " pool: ${name0}"
33 echo " scrub: none requested"
35 echo " NAME STATE READ WRITE CKSUM"
36 echo " ${name0} ONLINE 0 0 0"
37 echo " ${disk0} ONLINE 0 0 0"
38 echo " mirror ONLINE 0 0 0"
39 echo " ${disk1} ONLINE 0 0 0"
40 echo " ${disk2} ONLINE 0 0 0"
41 echo "errors: No known data errors"
43 expect "${exp}" ${ZPOOL} status ${name0}
44 expect_ok ${ZPOOL} destroy ${name0}
45 expect_fl ${ZPOOL} status -x ${name0}
47 expect_ok ${ZPOOL} create ${name0} ${disk0}
48 expect_fl ${ZPOOL} add ${name0} raidz ${disk1} ${disk2} ${disk3}
50 echo " pool: ${name0}"
52 echo " scrub: none requested"
54 echo " NAME STATE READ WRITE CKSUM"
55 echo " ${name0} ONLINE 0 0 0"
56 echo " ${disk0} ONLINE 0 0 0"
57 echo "errors: No known data errors"
59 expect "${exp}" ${ZPOOL} status ${name0}
60 expect_ok ${ZPOOL} destroy ${name0}
61 expect_fl ${ZPOOL} status -x ${name0}
63 expect_ok ${ZPOOL} create ${name0} ${disk0}
64 expect_ok ${ZPOOL} add -f ${name0} raidz ${disk1} ${disk2} ${disk3}
66 echo " pool: ${name0}"
68 echo " scrub: none requested"
70 echo " NAME STATE READ WRITE CKSUM"
71 echo " ${name0} ONLINE 0 0 0"
72 echo " ${disk0} ONLINE 0 0 0"
73 echo " raidz1 ONLINE 0 0 0"
74 echo " ${disk1} ONLINE 0 0 0"
75 echo " ${disk2} ONLINE 0 0 0"
76 echo " ${disk3} ONLINE 0 0 0"
77 echo "errors: No known data errors"
79 expect "${exp}" ${ZPOOL} status ${name0}
80 expect_ok ${ZPOOL} destroy ${name0}
81 expect_fl ${ZPOOL} status -x ${name0}
83 expect_ok ${ZPOOL} create ${name0} ${disk0}
84 expect_fl ${ZPOOL} add ${name0} raidz2 ${disk1} ${disk2} ${disk3} ${disk4}
86 echo " pool: ${name0}"
88 echo " scrub: none requested"
90 echo " NAME STATE READ WRITE CKSUM"
91 echo " ${name0} ONLINE 0 0 0"
92 echo " ${disk0} ONLINE 0 0 0"
93 echo "errors: No known data errors"
95 expect "${exp}" ${ZPOOL} status ${name0}
96 expect_ok ${ZPOOL} destroy ${name0}
97 expect_fl ${ZPOOL} status -x ${name0}
99 expect_ok ${ZPOOL} create ${name0} ${disk0}
100 expect_ok ${ZPOOL} add -f ${name0} raidz2 ${disk1} ${disk2} ${disk3} ${disk4}
102 echo " pool: ${name0}"
103 echo " state: ONLINE"
104 echo " scrub: none requested"
106 echo " NAME STATE READ WRITE CKSUM"
107 echo " ${name0} ONLINE 0 0 0"
108 echo " ${disk0} ONLINE 0 0 0"
109 echo " raidz2 ONLINE 0 0 0"
110 echo " ${disk1} ONLINE 0 0 0"
111 echo " ${disk2} ONLINE 0 0 0"
112 echo " ${disk3} ONLINE 0 0 0"
113 echo " ${disk4} ONLINE 0 0 0"
114 echo "errors: No known data errors"
116 expect "${exp}" ${ZPOOL} status ${name0}
117 expect_ok ${ZPOOL} destroy ${name0}
118 expect_fl ${ZPOOL} status -x ${name0}
120 expect_ok ${ZPOOL} create ${name0} ${disk0} log ${disk1}
121 add_msg="# TODO Sun CR 6726091, Lustre bug 16873"
122 expect_fl ${ZPOOL} add ${name0} log mirror ${disk2} ${disk3}
124 echo " pool: ${name0}"
125 echo " state: ONLINE"
126 echo " scrub: none requested"
128 echo " NAME STATE READ WRITE CKSUM"
129 echo " ${name0} ONLINE 0 0 0"
130 echo " ${disk0} ONLINE 0 0 0"
131 echo " logs ONLINE 0 0 0"
132 echo " ${disk1} ONLINE 0 0 0"
133 echo "errors: No known data errors"
135 expect "${exp}" ${ZPOOL} status ${name0}
137 expect_ok ${ZPOOL} destroy ${name0}
138 expect_fl ${ZPOOL} status -x ${name0}
140 expect_ok ${ZPOOL} create ${name0} ${disk0} log ${disk1}
141 expect_ok ${ZPOOL} add -f ${name0} log mirror ${disk2} ${disk3}
143 echo " pool: ${name0}"
144 echo " state: ONLINE"
145 echo " scrub: none requested"
147 echo " NAME STATE READ WRITE CKSUM"
148 echo " ${name0} ONLINE 0 0 0"
149 echo " ${disk0} ONLINE 0 0 0"
150 echo " logs ONLINE 0 0 0"
151 echo " ${disk1} ONLINE 0 0 0"
152 echo " mirror ONLINE 0 0 0"
153 echo " ${disk2} ONLINE 0 0 0"
154 echo " ${disk3} ONLINE 0 0 0"
155 echo "errors: No known data errors"
157 expect "${exp}" ${ZPOOL} status ${name0}
158 expect_ok ${ZPOOL} destroy ${name0}
159 expect_fl ${ZPOOL} status -x ${name0}