13 expect_ok ${ZPOOL} create ${name0} ${disk0} spare ${disk1}
14 expect_ok ${ZPOOL} add ${name0} spare ${disk2} ${disk3}
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 " ${disk2} AVAIL"
26 echo " ${disk3} AVAIL"
27 echo "errors: No known data errors"
29 expect "${exp}" ${ZPOOL} status ${name0}
30 expect_ok ${ZPOOL} remove ${name0} ${disk1} ${disk2}
32 echo " pool: ${name0}"
34 echo " scrub: none requested"
36 echo " NAME STATE READ WRITE CKSUM"
37 echo " ${name0} ONLINE 0 0 0"
38 echo " ${disk0} ONLINE 0 0 0"
40 echo " ${disk3} AVAIL"
41 echo "errors: No known data errors"
43 expect "${exp}" ${ZPOOL} status ${name0}
44 expect_ok ${ZPOOL} remove ${name0} ${disk3}
46 echo " pool: ${name0}"
48 echo " scrub: none requested"
50 echo " NAME STATE READ WRITE CKSUM"
51 echo " ${name0} ONLINE 0 0 0"
52 echo " ${disk0} ONLINE 0 0 0"
53 echo "errors: No known data errors"
55 expect "${exp}" ${ZPOOL} status ${name0}
56 expect_ok ${ZPOOL} destroy ${name0}
57 expect_fl ${ZPOOL} status -x ${name0}
59 expect_ok ${ZPOOL} create ${name0} ${file0} spare ${file1}
60 expect_ok ${ZPOOL} add ${name0} spare ${file2} ${file3}
62 echo " pool: ${name0}"
64 echo " scrub: none requested"
66 echo " NAME STATE READ WRITE CKSUM"
67 echo " ${name0} ONLINE 0 0 0"
68 echo " ${file0} ONLINE 0 0 0"
70 echo " ${file1} AVAIL"
71 echo " ${file2} AVAIL"
72 echo " ${file3} AVAIL"
73 echo "errors: No known data errors"
75 expect "${exp}" ${ZPOOL} status ${name0}
76 expect_ok ${ZPOOL} remove ${name0} ${file1} ${file2}
78 echo " pool: ${name0}"
80 echo " scrub: none requested"
82 echo " NAME STATE READ WRITE CKSUM"
83 echo " ${name0} ONLINE 0 0 0"
84 echo " ${file0} ONLINE 0 0 0"
86 echo " ${file3} AVAIL"
87 echo "errors: No known data errors"
89 expect "${exp}" ${ZPOOL} status ${name0}
90 expect_ok ${ZPOOL} remove ${name0} ${file3}
92 echo " pool: ${name0}"
94 echo " scrub: none requested"
96 echo " NAME STATE READ WRITE CKSUM"
97 echo " ${name0} ONLINE 0 0 0"
98 echo " ${file0} ONLINE 0 0 0"
99 echo "errors: No known data errors"
101 expect "${exp}" ${ZPOOL} status ${name0}
102 expect_ok ${ZPOOL} destroy ${name0}
103 expect_fl ${ZPOOL} status -x ${name0}