12 expect_ok ${ZPOOL} create ${name0} mirror ${disk0} ${disk1}
13 expect_ok ${ZPOOL} offline ${name0} ${disk0}
15 echo " pool: ${name0}"
16 echo " state: DEGRADED"
17 echo "status: One or more devices has been taken offline by the administrator."
18 echo " Sufficient replicas exist for the pool to continue functioning in a"
19 echo " degraded state."
20 echo "action: Online the device using 'zpool online' or replace the device with"
21 echo " 'zpool replace'."
22 echo " scrub: none requested"
24 echo " NAME STATE READ WRITE CKSUM"
25 echo " ${name0} DEGRADED 0 0 0"
26 echo " mirror DEGRADED 0 0 0"
27 echo " ${disk0} OFFLINE 0 0 0"
28 echo " ${disk1} ONLINE 0 0 0"
29 echo "errors: No known data errors"
31 expect "${exp}" ${ZPOOL} status ${name0}
32 expect_ok ${ZPOOL} destroy ${name0}
33 expect_fl ${ZPOOL} status -x ${name0}
35 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1}
36 expect_ok ${ZPOOL} offline ${name0} ${disk1}
38 echo " pool: ${name0}"
39 echo " state: DEGRADED"
40 echo "status: One or more devices has been taken offline by the administrator."
41 echo " Sufficient replicas exist for the pool to continue functioning in a"
42 echo " degraded state."
43 echo "action: Online the device using 'zpool online' or replace the device with"
44 echo " 'zpool replace'."
45 echo " scrub: none requested"
47 echo " NAME STATE READ WRITE CKSUM"
48 echo " ${name0} DEGRADED 0 0 0"
49 echo " mirror DEGRADED 0 0 0"
50 echo " ${disk0} ONLINE 0 0 0"
51 echo " ${disk1} OFFLINE 0 0 0"
52 echo "errors: No known data errors"
54 expect "${exp}" ${ZPOOL} status ${name0}
55 expect_ok ${ZPOOL} destroy ${name0}
56 expect_fl ${ZPOOL} status -x ${name0}
58 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1}
59 expect_ok ${ZPOOL} offline ${name0} ${disk0}
60 expect_fl ${ZPOOL} offline ${name0} ${disk1}
62 echo " pool: ${name0}"
63 echo " state: DEGRADED"
64 echo "status: One or more devices has been taken offline by the administrator."
65 echo " Sufficient replicas exist for the pool to continue functioning in a"
66 echo " degraded state."
67 echo "action: Online the device using 'zpool online' or replace the device with"
68 echo " 'zpool replace'."
69 echo " scrub: none requested"
71 echo " NAME STATE READ WRITE CKSUM"
72 echo " ${name0} DEGRADED 0 0 0"
73 echo " mirror DEGRADED 0 0 0"
74 echo " ${disk0} OFFLINE 0 0 0"
75 echo " ${disk1} ONLINE 0 0 0"
76 echo "errors: No known data errors"
78 expect "${exp}" ${ZPOOL} status ${name0}
79 expect_ok ${ZPOOL} destroy ${name0}
80 expect_fl ${ZPOOL} status -x ${name0}
82 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3}
83 expect_ok ${ZPOOL} offline ${name0} ${disk0}
84 expect_ok ${ZPOOL} offline ${name0} ${disk3}
85 expect_fl ${ZPOOL} offline ${name0} ${disk1}
86 expect_fl ${ZPOOL} offline ${name0} ${disk2}
88 echo " pool: ${name0}"
89 echo " state: DEGRADED"
90 echo "status: One or more devices has been taken offline by the administrator."
91 echo " Sufficient replicas exist for the pool to continue functioning in a"
92 echo " degraded state."
93 echo "action: Online the device using 'zpool online' or replace the device with"
94 echo " 'zpool replace'."
95 echo " scrub: none requested"
97 echo " NAME STATE READ WRITE CKSUM"
98 echo " ${name0} DEGRADED 0 0 0"
99 echo " mirror DEGRADED 0 0 0"
100 echo " ${disk0} OFFLINE 0 0 0"
101 echo " ${disk1} ONLINE 0 0 0"
102 echo " mirror DEGRADED 0 0 0"
103 echo " ${disk2} ONLINE 0 0 0"
104 echo " ${disk3} OFFLINE 0 0 0"
105 echo "errors: No known data errors"
107 expect "${exp}" ${ZPOOL} status ${name0}
108 expect_ok ${ZPOOL} destroy ${name0}
109 expect_fl ${ZPOOL} status -x ${name0}
111 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3}
112 expect_ok ${ZPOOL} offline ${name0} ${disk1} ${disk2}
114 echo " pool: ${name0}"
115 echo " state: DEGRADED"
116 echo "status: One or more devices has been taken offline by the administrator."
117 echo " Sufficient replicas exist for the pool to continue functioning in a"
118 echo " degraded state."
119 echo "action: Online the device using 'zpool online' or replace the device with"
120 echo " 'zpool replace'."
121 echo " scrub: none requested"
123 echo " NAME STATE READ WRITE CKSUM"
124 echo " ${name0} DEGRADED 0 0 0"
125 echo " mirror DEGRADED 0 0 0"
126 echo " ${disk0} ONLINE 0 0 0"
127 echo " ${disk1} OFFLINE 0 0 0"
128 echo " mirror DEGRADED 0 0 0"
129 echo " ${disk2} OFFLINE 0 0 0"
130 echo " ${disk3} ONLINE 0 0 0"
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}
137 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} ${disk2}
138 expect_ok ${ZPOOL} offline ${name0} ${disk0}
139 add_msg="# TODO Sun CR 6328632, Lustre bug 16878"
140 expect_ok ${ZPOOL} offline ${name0} ${disk1}
142 echo " pool: ${name0}"
143 echo " state: DEGRADED"
144 echo "status: One or more devices has been taken offline by the administrator."
145 echo " Sufficient replicas exist for the pool to continue functioning in a"
146 echo " degraded state."
147 echo "action: Online the device using 'zpool online' or replace the device with"
148 echo " 'zpool replace'."
149 echo " scrub: none requested"
151 echo " NAME STATE READ WRITE CKSUM"
152 echo " ${name0} DEGRADED 0 0 0"
153 echo " mirror DEGRADED 0 0 0"
154 echo " ${disk0} OFFLINE 0 0 0"
155 echo " ${disk1} OFFLINE 0 0 0"
156 echo " ${disk2} ONLINE 0 0 0"
157 echo "errors: No known data errors"
159 expect "${exp}" ${ZPOOL} status ${name0}
161 expect_ok ${ZPOOL} destroy ${name0}
162 expect_fl ${ZPOOL} status -x ${name0}
164 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} ${disk5}
165 expect_ok ${ZPOOL} offline ${name0} ${disk0}
166 add_msg="# TODO Sun CR 6328632, Lustre bug 16878"
167 expect_ok ${ZPOOL} offline ${name0} ${disk1}
168 expect_ok ${ZPOOL} offline ${name0} ${disk3} ${disk5}
170 echo " pool: ${name0}"
171 echo " state: DEGRADED"
172 echo "status: One or more devices has been taken offline by the administrator."
173 echo " Sufficient replicas exist for the pool to continue functioning in a"
174 echo " degraded state."
175 echo "action: Online the device using 'zpool online' or replace the device with"
176 echo " 'zpool replace'."
177 echo " scrub: none requested"
179 echo " NAME STATE READ WRITE CKSUM"
180 echo " ${name0} DEGRADED 0 0 0"
181 echo " mirror DEGRADED 0 0 0"
182 echo " ${disk0} OFFLINE 0 0 0"
183 echo " ${disk1} OFFLINE 0 0 0"
184 echo " ${disk2} ONLINE 0 0 0"
185 echo " mirror DEGRADED 0 0 0"
186 echo " ${disk3} OFFLINE 0 0 0"
187 echo " ${disk4} ONLINE 0 0 0"
188 echo " ${disk5} OFFLINE 0 0 0"
189 echo "errors: No known data errors"
191 expect "${exp}" ${ZPOOL} status ${name0}
193 expect_ok ${ZPOOL} destroy ${name0}
194 expect_fl ${ZPOOL} status -x ${name0}
196 expect_ok ${ZPOOL} create -f ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} ${disk4}
197 add_msg="# TODO Sun CR 6328632, Lustre bug 16878"
198 expect_ok ${ZPOOL} offline ${name0} ${disk0} ${disk2} ${disk3} ${disk4}
200 echo " pool: ${name0}"
201 echo " state: DEGRADED"
202 echo "status: One or more devices has been taken offline by the administrator."
203 echo " Sufficient replicas exist for the pool to continue functioning in a"
204 echo " degraded state."
205 echo "action: Online the device using 'zpool online' or replace the device with"
206 echo " 'zpool replace'."
207 echo " scrub: none requested"
209 echo " NAME STATE READ WRITE CKSUM"
210 echo " ${name0} DEGRADED 0 0 0"
211 echo " mirror DEGRADED 0 0 0"
212 echo " ${disk0} OFFLINE 0 0 0"
213 echo " ${disk1} ONLINE 0 0 0"
214 echo " ${disk2} OFFLINE 0 0 0"
215 echo " ${disk3} OFFLINE 0 0 0"
216 echo " ${disk4} OFFLINE 0 0 0"
217 echo "errors: No known data errors"
219 expect "${exp}" ${ZPOOL} status ${name0}
221 expect_ok ${ZPOOL} destroy ${name0}
222 expect_fl ${ZPOOL} status -x ${name0}