option-f_replication_level_mismatch_1.t revision 185029
1#!/bin/sh 2# $FreeBSD: head/tools/regression/zfs/zpool/create/option-f_replication_level_mismatch_1.t 185029 2008-11-17 20:49:29Z pjd $ 3 4dir=`dirname $0` 5. ${dir}/../../misc.sh 6 7echo "1..180" 8 9disks_create 9 10names_create 1 11 12expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4} 13expect_fl ${ZPOOL} status -x ${name0} 14expect_fl ${ZPOOL} destroy ${name0} 15 16expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4} 17expect_ok ${ZPOOL} status -x ${name0} 18expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 19exp=`( 20 echo " pool: ${name0}" 21 echo " state: ONLINE" 22 echo " scrub: none requested" 23 echo "config:" 24 echo " NAME STATE READ WRITE CKSUM" 25 echo " ${name0} ONLINE 0 0 0" 26 echo " mirror ONLINE 0 0 0" 27 echo " ${disk0} ONLINE 0 0 0" 28 echo " ${disk1} ONLINE 0 0 0" 29 echo " mirror ONLINE 0 0 0" 30 echo " ${disk2} ONLINE 0 0 0" 31 echo " ${disk3} ONLINE 0 0 0" 32 echo " ${disk4} ONLINE 0 0 0" 33 echo "errors: No known data errors" 34)` 35expect "${exp}" ${ZPOOL} status ${name0} 36expect_ok ${ZPOOL} destroy ${name0} 37expect_fl ${ZPOOL} status -x ${name0} 38expect_fl ${ZPOOL} destroy ${name0} 39 40expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} 41expect_fl ${ZPOOL} status -x ${name0} 42expect_fl ${ZPOOL} destroy ${name0} 43 44expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} 45expect_ok ${ZPOOL} status -x ${name0} 46expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 47exp=`( 48 echo " pool: ${name0}" 49 echo " state: ONLINE" 50 echo " scrub: none requested" 51 echo "config:" 52 echo " NAME STATE READ WRITE CKSUM" 53 echo " ${name0} ONLINE 0 0 0" 54 echo " mirror ONLINE 0 0 0" 55 echo " ${disk0} ONLINE 0 0 0" 56 echo " ${disk1} ONLINE 0 0 0" 57 echo " ${disk2} ONLINE 0 0 0" 58 echo " mirror ONLINE 0 0 0" 59 echo " ${disk3} ONLINE 0 0 0" 60 echo " ${disk4} ONLINE 0 0 0" 61 echo "errors: No known data errors" 62)` 63expect "${exp}" ${ZPOOL} status ${name0} 64expect_ok ${ZPOOL} destroy ${name0} 65expect_fl ${ZPOOL} status -x ${name0} 66expect_fl ${ZPOOL} destroy ${name0} 67 68expect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} ${disk5} ${disk6} 69expect_fl ${ZPOOL} status -x ${name0} 70expect_fl ${ZPOOL} destroy ${name0} 71 72expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} ${disk5} ${disk6} 73expect_ok ${ZPOOL} status -x ${name0} 74expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 75exp=`( 76 echo " pool: ${name0}" 77 echo " state: ONLINE" 78 echo " scrub: none requested" 79 echo "config:" 80 echo " NAME STATE READ WRITE CKSUM" 81 echo " ${name0} ONLINE 0 0 0" 82 echo " raidz1 ONLINE 0 0 0" 83 echo " ${disk0} ONLINE 0 0 0" 84 echo " ${disk1} ONLINE 0 0 0" 85 echo " ${disk2} ONLINE 0 0 0" 86 echo " raidz1 ONLINE 0 0 0" 87 echo " ${disk3} ONLINE 0 0 0" 88 echo " ${disk4} ONLINE 0 0 0" 89 echo " ${disk5} ONLINE 0 0 0" 90 echo " ${disk6} ONLINE 0 0 0" 91 echo "errors: No known data errors" 92)` 93expect "${exp}" ${ZPOOL} status ${name0} 94expect_ok ${ZPOOL} destroy ${name0} 95expect_fl ${ZPOOL} status -x ${name0} 96expect_fl ${ZPOOL} destroy ${name0} 97 98expect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} ${disk3} raidz ${disk4} ${disk5} ${disk6} 99expect_fl ${ZPOOL} status -x ${name0} 100expect_fl ${ZPOOL} destroy ${name0} 101 102expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} ${disk2} ${disk3} raidz ${disk4} ${disk5} ${disk6} 103expect_ok ${ZPOOL} status -x ${name0} 104expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 105exp=`( 106 echo " pool: ${name0}" 107 echo " state: ONLINE" 108 echo " scrub: none requested" 109 echo "config:" 110 echo " NAME STATE READ WRITE CKSUM" 111 echo " ${name0} ONLINE 0 0 0" 112 echo " raidz1 ONLINE 0 0 0" 113 echo " ${disk0} ONLINE 0 0 0" 114 echo " ${disk1} ONLINE 0 0 0" 115 echo " ${disk2} ONLINE 0 0 0" 116 echo " ${disk3} ONLINE 0 0 0" 117 echo " raidz1 ONLINE 0 0 0" 118 echo " ${disk4} ONLINE 0 0 0" 119 echo " ${disk5} ONLINE 0 0 0" 120 echo " ${disk6} ONLINE 0 0 0" 121 echo "errors: No known data errors" 122)` 123expect "${exp}" ${ZPOOL} status ${name0} 124expect_ok ${ZPOOL} destroy ${name0} 125expect_fl ${ZPOOL} status -x ${name0} 126expect_fl ${ZPOOL} destroy ${name0} 127 128expect_fl ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} ${disk8} 129expect_fl ${ZPOOL} status -x ${name0} 130expect_fl ${ZPOOL} destroy ${name0} 131 132expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} ${disk8} 133expect_ok ${ZPOOL} status -x ${name0} 134expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 135exp=`( 136 echo " pool: ${name0}" 137 echo " state: ONLINE" 138 echo " scrub: none requested" 139 echo "config:" 140 echo " NAME STATE READ WRITE CKSUM" 141 echo " ${name0} ONLINE 0 0 0" 142 echo " raidz2 ONLINE 0 0 0" 143 echo " ${disk0} ONLINE 0 0 0" 144 echo " ${disk1} ONLINE 0 0 0" 145 echo " ${disk2} ONLINE 0 0 0" 146 echo " ${disk3} ONLINE 0 0 0" 147 echo " raidz2 ONLINE 0 0 0" 148 echo " ${disk4} ONLINE 0 0 0" 149 echo " ${disk5} ONLINE 0 0 0" 150 echo " ${disk6} ONLINE 0 0 0" 151 echo " ${disk7} ONLINE 0 0 0" 152 echo " ${disk8} ONLINE 0 0 0" 153 echo "errors: No known data errors" 154)` 155expect "${exp}" ${ZPOOL} status ${name0} 156expect_ok ${ZPOOL} destroy ${name0} 157expect_fl ${ZPOOL} status -x ${name0} 158expect_fl ${ZPOOL} destroy ${name0} 159 160expect_fl ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} ${disk4} raidz2 ${disk5} ${disk6} ${disk7} ${disk8} 161expect_fl ${ZPOOL} status -x ${name0} 162expect_fl ${ZPOOL} destroy ${name0} 163 164expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} ${disk4} raidz2 ${disk5} ${disk6} ${disk7} ${disk8} 165expect_ok ${ZPOOL} status -x ${name0} 166expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 167exp=`( 168 echo " pool: ${name0}" 169 echo " state: ONLINE" 170 echo " scrub: none requested" 171 echo "config:" 172 echo " NAME STATE READ WRITE CKSUM" 173 echo " ${name0} ONLINE 0 0 0" 174 echo " raidz2 ONLINE 0 0 0" 175 echo " ${disk0} ONLINE 0 0 0" 176 echo " ${disk1} ONLINE 0 0 0" 177 echo " ${disk2} ONLINE 0 0 0" 178 echo " ${disk3} ONLINE 0 0 0" 179 echo " ${disk4} ONLINE 0 0 0" 180 echo " raidz2 ONLINE 0 0 0" 181 echo " ${disk5} ONLINE 0 0 0" 182 echo " ${disk6} ONLINE 0 0 0" 183 echo " ${disk7} ONLINE 0 0 0" 184 echo " ${disk8} ONLINE 0 0 0" 185 echo "errors: No known data errors" 186)` 187expect "${exp}" ${ZPOOL} status ${name0} 188expect_ok ${ZPOOL} destroy ${name0} 189expect_fl ${ZPOOL} status -x ${name0} 190expect_fl ${ZPOOL} destroy ${name0} 191 192expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} 193expect_fl ${ZPOOL} status -x ${name0} 194expect_fl ${ZPOOL} destroy ${name0} 195 196expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} 197expect_ok ${ZPOOL} status -x ${name0} 198expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 199exp=`( 200 echo " pool: ${name0}" 201 echo " state: ONLINE" 202 echo " scrub: none requested" 203 echo "config:" 204 echo " NAME STATE READ WRITE CKSUM" 205 echo " ${name0} ONLINE 0 0 0" 206 echo " mirror ONLINE 0 0 0" 207 echo " ${disk0} ONLINE 0 0 0" 208 echo " ${disk1} ONLINE 0 0 0" 209 echo " raidz1 ONLINE 0 0 0" 210 echo " ${disk2} ONLINE 0 0 0" 211 echo " ${disk3} ONLINE 0 0 0" 212 echo "errors: No known data errors" 213)` 214expect "${exp}" ${ZPOOL} status ${name0} 215expect_ok ${ZPOOL} destroy ${name0} 216expect_fl ${ZPOOL} status -x ${name0} 217expect_fl ${ZPOOL} destroy ${name0} 218 219expect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} mirror ${disk2} ${disk3} 220expect_fl ${ZPOOL} status -x ${name0} 221expect_fl ${ZPOOL} destroy ${name0} 222 223expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} mirror ${disk2} ${disk3} 224expect_ok ${ZPOOL} status -x ${name0} 225expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 226exp=`( 227 echo " pool: ${name0}" 228 echo " state: ONLINE" 229 echo " scrub: none requested" 230 echo "config:" 231 echo " NAME STATE READ WRITE CKSUM" 232 echo " ${name0} ONLINE 0 0 0" 233 echo " raidz1 ONLINE 0 0 0" 234 echo " ${disk0} ONLINE 0 0 0" 235 echo " ${disk1} ONLINE 0 0 0" 236 echo " mirror ONLINE 0 0 0" 237 echo " ${disk2} ONLINE 0 0 0" 238 echo " ${disk3} ONLINE 0 0 0" 239 echo "errors: No known data errors" 240)` 241expect "${exp}" ${ZPOOL} status ${name0} 242expect_ok ${ZPOOL} destroy ${name0} 243expect_fl ${ZPOOL} status -x ${name0} 244expect_fl ${ZPOOL} destroy ${name0} 245 246expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} 247expect_fl ${ZPOOL} status -x ${name0} 248expect_fl ${ZPOOL} destroy ${name0} 249 250expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} 251expect_ok ${ZPOOL} status -x ${name0} 252expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 253exp=`( 254 echo " pool: ${name0}" 255 echo " state: ONLINE" 256 echo " scrub: none requested" 257 echo "config:" 258 echo " NAME STATE READ WRITE CKSUM" 259 echo " ${name0} ONLINE 0 0 0" 260 echo " mirror ONLINE 0 0 0" 261 echo " ${disk0} ONLINE 0 0 0" 262 echo " ${disk1} ONLINE 0 0 0" 263 echo " ${disk2} ONLINE 0 0 0" 264 echo " raidz1 ONLINE 0 0 0" 265 echo " ${disk3} ONLINE 0 0 0" 266 echo " ${disk4} ONLINE 0 0 0" 267 echo "errors: No known data errors" 268)` 269expect "${exp}" ${ZPOOL} status ${name0} 270expect_ok ${ZPOOL} destroy ${name0} 271expect_fl ${ZPOOL} status -x ${name0} 272expect_fl ${ZPOOL} destroy ${name0} 273 274expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} ${disk4} 275expect_fl ${ZPOOL} status -x ${name0} 276expect_fl ${ZPOOL} destroy ${name0} 277 278expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} ${disk4} 279expect_ok ${ZPOOL} status -x ${name0} 280expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 281exp=`( 282 echo " pool: ${name0}" 283 echo " state: ONLINE" 284 echo " scrub: none requested" 285 echo "config:" 286 echo " NAME STATE READ WRITE CKSUM" 287 echo " ${name0} ONLINE 0 0 0" 288 echo " mirror ONLINE 0 0 0" 289 echo " ${disk0} ONLINE 0 0 0" 290 echo " ${disk1} ONLINE 0 0 0" 291 echo " raidz1 ONLINE 0 0 0" 292 echo " ${disk2} ONLINE 0 0 0" 293 echo " ${disk3} ONLINE 0 0 0" 294 echo " ${disk4} ONLINE 0 0 0" 295 echo "errors: No known data errors" 296)` 297expect "${exp}" ${ZPOOL} status ${name0} 298expect_ok ${ZPOOL} destroy ${name0} 299expect_fl ${ZPOOL} status -x ${name0} 300expect_fl ${ZPOOL} destroy ${name0} 301 302expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 303expect_fl ${ZPOOL} status -x ${name0} 304expect_fl ${ZPOOL} destroy ${name0} 305 306expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 307expect_ok ${ZPOOL} status -x ${name0} 308expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 309exp=`( 310 echo " pool: ${name0}" 311 echo " state: ONLINE" 312 echo " scrub: none requested" 313 echo "config:" 314 echo " NAME STATE READ WRITE CKSUM" 315 echo " ${name0} ONLINE 0 0 0" 316 echo " mirror ONLINE 0 0 0" 317 echo " ${disk0} ONLINE 0 0 0" 318 echo " ${disk1} ONLINE 0 0 0" 319 echo " raidz2 ONLINE 0 0 0" 320 echo " ${disk2} ONLINE 0 0 0" 321 echo " ${disk3} ONLINE 0 0 0" 322 echo " ${disk4} ONLINE 0 0 0" 323 echo "errors: No known data errors" 324)` 325expect "${exp}" ${ZPOOL} status ${name0} 326expect_ok ${ZPOOL} destroy ${name0} 327expect_fl ${ZPOOL} status -x ${name0} 328expect_fl ${ZPOOL} destroy ${name0} 329 330expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 331expect_fl ${ZPOOL} status -x ${name0} 332expect_fl ${ZPOOL} destroy ${name0} 333 334expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 335expect_ok ${ZPOOL} status -x ${name0} 336expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 337exp=`( 338 echo " pool: ${name0}" 339 echo " state: ONLINE" 340 echo " scrub: none requested" 341 echo "config:" 342 echo " NAME STATE READ WRITE CKSUM" 343 echo " ${name0} ONLINE 0 0 0" 344 echo " mirror ONLINE 0 0 0" 345 echo " ${disk0} ONLINE 0 0 0" 346 echo " ${disk1} ONLINE 0 0 0" 347 echo " ${disk2} ONLINE 0 0 0" 348 echo " raidz2 ONLINE 0 0 0" 349 echo " ${disk3} ONLINE 0 0 0" 350 echo " ${disk4} ONLINE 0 0 0" 351 echo " ${disk5} ONLINE 0 0 0" 352 echo "errors: No known data errors" 353)` 354expect "${exp}" ${ZPOOL} status ${name0} 355expect_ok ${ZPOOL} destroy ${name0} 356expect_fl ${ZPOOL} status -x ${name0} 357expect_fl ${ZPOOL} destroy ${name0} 358 359expect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 360expect_fl ${ZPOOL} status -x ${name0} 361expect_fl ${ZPOOL} destroy ${name0} 362 363expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 364expect_ok ${ZPOOL} status -x ${name0} 365expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 366exp=`( 367 echo " pool: ${name0}" 368 echo " state: ONLINE" 369 echo " scrub: none requested" 370 echo "config:" 371 echo " NAME STATE READ WRITE CKSUM" 372 echo " ${name0} ONLINE 0 0 0" 373 echo " mirror ONLINE 0 0 0" 374 echo " ${disk0} ONLINE 0 0 0" 375 echo " ${disk1} ONLINE 0 0 0" 376 echo " ${disk2} ONLINE 0 0 0" 377 echo " ${disk3} ONLINE 0 0 0" 378 echo " raidz2 ONLINE 0 0 0" 379 echo " ${disk4} ONLINE 0 0 0" 380 echo " ${disk5} ONLINE 0 0 0" 381 echo " ${disk6} ONLINE 0 0 0" 382 echo "errors: No known data errors" 383)` 384expect "${exp}" ${ZPOOL} status ${name0} 385expect_ok ${ZPOOL} destroy ${name0} 386expect_fl ${ZPOOL} status -x ${name0} 387expect_fl ${ZPOOL} destroy ${name0} 388 389expect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 390expect_fl ${ZPOOL} status -x ${name0} 391expect_fl ${ZPOOL} destroy ${name0} 392 393expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 394expect_ok ${ZPOOL} status -x ${name0} 395expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 396exp=`( 397 echo " pool: ${name0}" 398 echo " state: ONLINE" 399 echo " scrub: none requested" 400 echo "config:" 401 echo " NAME STATE READ WRITE CKSUM" 402 echo " ${name0} ONLINE 0 0 0" 403 echo " raidz1 ONLINE 0 0 0" 404 echo " ${disk0} ONLINE 0 0 0" 405 echo " ${disk1} ONLINE 0 0 0" 406 echo " raidz2 ONLINE 0 0 0" 407 echo " ${disk2} ONLINE 0 0 0" 408 echo " ${disk3} ONLINE 0 0 0" 409 echo " ${disk4} ONLINE 0 0 0" 410 echo "errors: No known data errors" 411)` 412expect "${exp}" ${ZPOOL} status ${name0} 413expect_ok ${ZPOOL} destroy ${name0} 414expect_fl ${ZPOOL} status -x ${name0} 415expect_fl ${ZPOOL} destroy ${name0} 416 417expect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${dik2} raidz2 ${disk3} ${disk4} ${disk5} 418expect_fl ${ZPOOL} status -x ${name0} 419expect_fl ${ZPOOL} destroy ${name0} 420 421expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 422expect_ok ${ZPOOL} status -x ${name0} 423expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 424exp=`( 425 echo " pool: ${name0}" 426 echo " state: ONLINE" 427 echo " scrub: none requested" 428 echo "config:" 429 echo " NAME STATE READ WRITE CKSUM" 430 echo " ${name0} ONLINE 0 0 0" 431 echo " raidz1 ONLINE 0 0 0" 432 echo " ${disk0} ONLINE 0 0 0" 433 echo " ${disk1} ONLINE 0 0 0" 434 echo " ${disk2} ONLINE 0 0 0" 435 echo " raidz2 ONLINE 0 0 0" 436 echo " ${disk3} ONLINE 0 0 0" 437 echo " ${disk4} ONLINE 0 0 0" 438 echo " ${disk5} ONLINE 0 0 0" 439 echo "errors: No known data errors" 440)` 441expect "${exp}" ${ZPOOL} status ${name0} 442expect_ok ${ZPOOL} destroy ${name0} 443expect_fl ${ZPOOL} status -x ${name0} 444expect_fl ${ZPOOL} destroy ${name0} 445 446expect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${dik2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 447expect_fl ${ZPOOL} status -x ${name0} 448expect_fl ${ZPOOL} destroy ${name0} 449 450expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 451expect_ok ${ZPOOL} status -x ${name0} 452expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 453exp=`( 454 echo " pool: ${name0}" 455 echo " state: ONLINE" 456 echo " scrub: none requested" 457 echo "config:" 458 echo " NAME STATE READ WRITE CKSUM" 459 echo " ${name0} ONLINE 0 0 0" 460 echo " raidz1 ONLINE 0 0 0" 461 echo " ${disk0} ONLINE 0 0 0" 462 echo " ${disk1} ONLINE 0 0 0" 463 echo " ${disk2} ONLINE 0 0 0" 464 echo " ${disk3} ONLINE 0 0 0" 465 echo " raidz2 ONLINE 0 0 0" 466 echo " ${disk4} ONLINE 0 0 0" 467 echo " ${disk5} ONLINE 0 0 0" 468 echo " ${disk6} ONLINE 0 0 0" 469 echo "errors: No known data errors" 470)` 471expect "${exp}" ${ZPOOL} status ${name0} 472expect_ok ${ZPOOL} destroy ${name0} 473expect_fl ${ZPOOL} status -x ${name0} 474expect_fl ${ZPOOL} destroy ${name0} 475 476add_msg="# TODO Sun CR 6726091, Lustre bug 16873" 477expect_fl ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4} ${disk5} 478expect_fl ${ZPOOL} status -x ${name0} 479expect_fl ${ZPOOL} destroy ${name0} 480add_msg="" 481 482expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4} ${disk5} 483expect_ok ${ZPOOL} status -x ${name0} 484expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 485exp=`( 486 echo " pool: ${name0}" 487 echo " state: ONLINE" 488 echo " scrub: none requested" 489 echo "config:" 490 echo " NAME STATE READ WRITE CKSUM" 491 echo " ${name0} ONLINE 0 0 0" 492 echo " ${disk0} ONLINE 0 0 0" 493 echo " logs ONLINE 0 0 0" 494 echo " mirror ONLINE 0 0 0" 495 echo " ${disk1} ONLINE 0 0 0" 496 echo " ${disk2} ONLINE 0 0 0" 497 echo " mirror ONLINE 0 0 0" 498 echo " ${disk3} ONLINE 0 0 0" 499 echo " ${disk4} ONLINE 0 0 0" 500 echo " ${disk5} ONLINE 0 0 0" 501 echo "errors: No known data errors" 502)` 503expect "${exp}" ${ZPOOL} status ${name0} 504expect_ok ${ZPOOL} destroy ${name0} 505expect_fl ${ZPOOL} status -x ${name0} 506expect_fl ${ZPOOL} destroy ${name0} 507 508add_msg="# TODO Sun CR 6726091, Lustre bug 16873" 509expect_fl ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} ${disk3} mirror ${disk4} ${disk5} 510expect_fl ${ZPOOL} status -x ${name0} 511expect_fl ${ZPOOL} destroy ${name0} 512add_msg="" 513 514expect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} ${disk0} log mirror ${disk1} ${disk2} ${disk3} mirror ${disk4} ${disk5} 515expect_ok ${ZPOOL} status -x ${name0} 516expect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 517exp=`( 518 echo " pool: ${name0}" 519 echo " state: ONLINE" 520 echo " scrub: none requested" 521 echo "config:" 522 echo " NAME STATE READ WRITE CKSUM" 523 echo " ${name0} ONLINE 0 0 0" 524 echo " ${disk0} ONLINE 0 0 0" 525 echo " logs ONLINE 0 0 0" 526 echo " mirror ONLINE 0 0 0" 527 echo " ${disk1} ONLINE 0 0 0" 528 echo " ${disk2} ONLINE 0 0 0" 529 echo " ${disk3} ONLINE 0 0 0" 530 echo " mirror ONLINE 0 0 0" 531 echo " ${disk4} ONLINE 0 0 0" 532 echo " ${disk5} ONLINE 0 0 0" 533 echo "errors: No known data errors" 534)` 535expect "${exp}" ${ZPOOL} status ${name0} 536expect_ok ${ZPOOL} destroy ${name0} 537expect_fl ${ZPOOL} status -x ${name0} 538expect_fl ${ZPOOL} destroy ${name0} 539 540disks_destroy 541