1185029Spjd#!/bin/sh 2185029Spjd# $FreeBSD: releng/10.3/tools/regression/zfs/zpool/create/option-f_replication_level_mismatch_1.t 185029 2008-11-17 20:49:29Z pjd $ 3185029Spjd 4185029Spjddir=`dirname $0` 5185029Spjd. ${dir}/../../misc.sh 6185029Spjd 7185029Spjdecho "1..180" 8185029Spjd 9185029Spjddisks_create 9 10185029Spjdnames_create 1 11185029Spjd 12185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4} 13185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 14185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 15185029Spjd 16185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} mirror ${disk2} ${disk3} ${disk4} 17185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 18185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 19185029Spjdexp=`( 20185029Spjd echo " pool: ${name0}" 21185029Spjd echo " state: ONLINE" 22185029Spjd echo " scrub: none requested" 23185029Spjd echo "config:" 24185029Spjd echo " NAME STATE READ WRITE CKSUM" 25185029Spjd echo " ${name0} ONLINE 0 0 0" 26185029Spjd echo " mirror ONLINE 0 0 0" 27185029Spjd echo " ${disk0} ONLINE 0 0 0" 28185029Spjd echo " ${disk1} ONLINE 0 0 0" 29185029Spjd echo " mirror ONLINE 0 0 0" 30185029Spjd echo " ${disk2} ONLINE 0 0 0" 31185029Spjd echo " ${disk3} ONLINE 0 0 0" 32185029Spjd echo " ${disk4} ONLINE 0 0 0" 33185029Spjd echo "errors: No known data errors" 34185029Spjd)` 35185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 36185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 37185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 38185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 39185029Spjd 40185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} 41185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 42185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 43185029Spjd 44185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} mirror ${disk3} ${disk4} 45185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 46185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 47185029Spjdexp=`( 48185029Spjd echo " pool: ${name0}" 49185029Spjd echo " state: ONLINE" 50185029Spjd echo " scrub: none requested" 51185029Spjd echo "config:" 52185029Spjd echo " NAME STATE READ WRITE CKSUM" 53185029Spjd echo " ${name0} ONLINE 0 0 0" 54185029Spjd echo " mirror ONLINE 0 0 0" 55185029Spjd echo " ${disk0} ONLINE 0 0 0" 56185029Spjd echo " ${disk1} ONLINE 0 0 0" 57185029Spjd echo " ${disk2} ONLINE 0 0 0" 58185029Spjd echo " mirror ONLINE 0 0 0" 59185029Spjd echo " ${disk3} ONLINE 0 0 0" 60185029Spjd echo " ${disk4} ONLINE 0 0 0" 61185029Spjd echo "errors: No known data errors" 62185029Spjd)` 63185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 64185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 65185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 66185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 67185029Spjd 68185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} ${disk5} ${disk6} 69185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 70185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 71185029Spjd 72185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} ${disk5} ${disk6} 73185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 74185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 75185029Spjdexp=`( 76185029Spjd echo " pool: ${name0}" 77185029Spjd echo " state: ONLINE" 78185029Spjd echo " scrub: none requested" 79185029Spjd echo "config:" 80185029Spjd echo " NAME STATE READ WRITE CKSUM" 81185029Spjd echo " ${name0} ONLINE 0 0 0" 82185029Spjd echo " raidz1 ONLINE 0 0 0" 83185029Spjd echo " ${disk0} ONLINE 0 0 0" 84185029Spjd echo " ${disk1} ONLINE 0 0 0" 85185029Spjd echo " ${disk2} ONLINE 0 0 0" 86185029Spjd echo " raidz1 ONLINE 0 0 0" 87185029Spjd echo " ${disk3} ONLINE 0 0 0" 88185029Spjd echo " ${disk4} ONLINE 0 0 0" 89185029Spjd echo " ${disk5} ONLINE 0 0 0" 90185029Spjd echo " ${disk6} ONLINE 0 0 0" 91185029Spjd echo "errors: No known data errors" 92185029Spjd)` 93185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 94185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 95185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 96185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 97185029Spjd 98185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} ${disk2} ${disk3} raidz ${disk4} ${disk5} ${disk6} 99185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 100185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 101185029Spjd 102185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} ${disk2} ${disk3} raidz ${disk4} ${disk5} ${disk6} 103185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 104185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 105185029Spjdexp=`( 106185029Spjd echo " pool: ${name0}" 107185029Spjd echo " state: ONLINE" 108185029Spjd echo " scrub: none requested" 109185029Spjd echo "config:" 110185029Spjd echo " NAME STATE READ WRITE CKSUM" 111185029Spjd echo " ${name0} ONLINE 0 0 0" 112185029Spjd echo " raidz1 ONLINE 0 0 0" 113185029Spjd echo " ${disk0} ONLINE 0 0 0" 114185029Spjd echo " ${disk1} ONLINE 0 0 0" 115185029Spjd echo " ${disk2} ONLINE 0 0 0" 116185029Spjd echo " ${disk3} ONLINE 0 0 0" 117185029Spjd echo " raidz1 ONLINE 0 0 0" 118185029Spjd echo " ${disk4} ONLINE 0 0 0" 119185029Spjd echo " ${disk5} ONLINE 0 0 0" 120185029Spjd echo " ${disk6} ONLINE 0 0 0" 121185029Spjd echo "errors: No known data errors" 122185029Spjd)` 123185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 124185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 125185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 126185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 127185029Spjd 128185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} ${disk8} 129185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 130185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 131185029Spjd 132185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} ${disk8} 133185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 134185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 135185029Spjdexp=`( 136185029Spjd echo " pool: ${name0}" 137185029Spjd echo " state: ONLINE" 138185029Spjd echo " scrub: none requested" 139185029Spjd echo "config:" 140185029Spjd echo " NAME STATE READ WRITE CKSUM" 141185029Spjd echo " ${name0} ONLINE 0 0 0" 142185029Spjd echo " raidz2 ONLINE 0 0 0" 143185029Spjd echo " ${disk0} ONLINE 0 0 0" 144185029Spjd echo " ${disk1} ONLINE 0 0 0" 145185029Spjd echo " ${disk2} ONLINE 0 0 0" 146185029Spjd echo " ${disk3} ONLINE 0 0 0" 147185029Spjd echo " raidz2 ONLINE 0 0 0" 148185029Spjd echo " ${disk4} ONLINE 0 0 0" 149185029Spjd echo " ${disk5} ONLINE 0 0 0" 150185029Spjd echo " ${disk6} ONLINE 0 0 0" 151185029Spjd echo " ${disk7} ONLINE 0 0 0" 152185029Spjd echo " ${disk8} ONLINE 0 0 0" 153185029Spjd echo "errors: No known data errors" 154185029Spjd)` 155185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 156185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 157185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 158185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 159185029Spjd 160185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} ${disk4} raidz2 ${disk5} ${disk6} ${disk7} ${disk8} 161185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 162185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 163185029Spjd 164185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} ${disk4} raidz2 ${disk5} ${disk6} ${disk7} ${disk8} 165185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 166185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 167185029Spjdexp=`( 168185029Spjd echo " pool: ${name0}" 169185029Spjd echo " state: ONLINE" 170185029Spjd echo " scrub: none requested" 171185029Spjd echo "config:" 172185029Spjd echo " NAME STATE READ WRITE CKSUM" 173185029Spjd echo " ${name0} ONLINE 0 0 0" 174185029Spjd echo " raidz2 ONLINE 0 0 0" 175185029Spjd echo " ${disk0} ONLINE 0 0 0" 176185029Spjd echo " ${disk1} ONLINE 0 0 0" 177185029Spjd echo " ${disk2} ONLINE 0 0 0" 178185029Spjd echo " ${disk3} ONLINE 0 0 0" 179185029Spjd echo " ${disk4} ONLINE 0 0 0" 180185029Spjd echo " raidz2 ONLINE 0 0 0" 181185029Spjd echo " ${disk5} ONLINE 0 0 0" 182185029Spjd echo " ${disk6} ONLINE 0 0 0" 183185029Spjd echo " ${disk7} ONLINE 0 0 0" 184185029Spjd echo " ${disk8} ONLINE 0 0 0" 185185029Spjd echo "errors: No known data errors" 186185029Spjd)` 187185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 188185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 189185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 190185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 191185029Spjd 192185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} 193185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 194185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 195185029Spjd 196185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} 197185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 198185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 199185029Spjdexp=`( 200185029Spjd echo " pool: ${name0}" 201185029Spjd echo " state: ONLINE" 202185029Spjd echo " scrub: none requested" 203185029Spjd echo "config:" 204185029Spjd echo " NAME STATE READ WRITE CKSUM" 205185029Spjd echo " ${name0} ONLINE 0 0 0" 206185029Spjd echo " mirror ONLINE 0 0 0" 207185029Spjd echo " ${disk0} ONLINE 0 0 0" 208185029Spjd echo " ${disk1} ONLINE 0 0 0" 209185029Spjd echo " raidz1 ONLINE 0 0 0" 210185029Spjd echo " ${disk2} ONLINE 0 0 0" 211185029Spjd echo " ${disk3} ONLINE 0 0 0" 212185029Spjd echo "errors: No known data errors" 213185029Spjd)` 214185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 215185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 216185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 217185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 218185029Spjd 219185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz ${disk0} ${disk1} mirror ${disk2} ${disk3} 220185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 221185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 222185029Spjd 223185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz ${disk0} ${disk1} mirror ${disk2} ${disk3} 224185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 225185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 226185029Spjdexp=`( 227185029Spjd echo " pool: ${name0}" 228185029Spjd echo " state: ONLINE" 229185029Spjd echo " scrub: none requested" 230185029Spjd echo "config:" 231185029Spjd echo " NAME STATE READ WRITE CKSUM" 232185029Spjd echo " ${name0} ONLINE 0 0 0" 233185029Spjd echo " raidz1 ONLINE 0 0 0" 234185029Spjd echo " ${disk0} ONLINE 0 0 0" 235185029Spjd echo " ${disk1} ONLINE 0 0 0" 236185029Spjd echo " mirror ONLINE 0 0 0" 237185029Spjd echo " ${disk2} ONLINE 0 0 0" 238185029Spjd echo " ${disk3} ONLINE 0 0 0" 239185029Spjd echo "errors: No known data errors" 240185029Spjd)` 241185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 242185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 243185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 244185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 245185029Spjd 246185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} 247185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 248185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 249185029Spjd 250185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} raidz ${disk3} ${disk4} 251185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 252185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 253185029Spjdexp=`( 254185029Spjd echo " pool: ${name0}" 255185029Spjd echo " state: ONLINE" 256185029Spjd echo " scrub: none requested" 257185029Spjd echo "config:" 258185029Spjd echo " NAME STATE READ WRITE CKSUM" 259185029Spjd echo " ${name0} ONLINE 0 0 0" 260185029Spjd echo " mirror ONLINE 0 0 0" 261185029Spjd echo " ${disk0} ONLINE 0 0 0" 262185029Spjd echo " ${disk1} ONLINE 0 0 0" 263185029Spjd echo " ${disk2} ONLINE 0 0 0" 264185029Spjd echo " raidz1 ONLINE 0 0 0" 265185029Spjd echo " ${disk3} ONLINE 0 0 0" 266185029Spjd echo " ${disk4} ONLINE 0 0 0" 267185029Spjd echo "errors: No known data errors" 268185029Spjd)` 269185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 270185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 271185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 272185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 273185029Spjd 274185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} ${disk4} 275185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 276185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 277185029Spjd 278185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz ${disk2} ${disk3} ${disk4} 279185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 280185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 281185029Spjdexp=`( 282185029Spjd echo " pool: ${name0}" 283185029Spjd echo " state: ONLINE" 284185029Spjd echo " scrub: none requested" 285185029Spjd echo "config:" 286185029Spjd echo " NAME STATE READ WRITE CKSUM" 287185029Spjd echo " ${name0} ONLINE 0 0 0" 288185029Spjd echo " mirror ONLINE 0 0 0" 289185029Spjd echo " ${disk0} ONLINE 0 0 0" 290185029Spjd echo " ${disk1} ONLINE 0 0 0" 291185029Spjd echo " raidz1 ONLINE 0 0 0" 292185029Spjd echo " ${disk2} ONLINE 0 0 0" 293185029Spjd echo " ${disk3} ONLINE 0 0 0" 294185029Spjd echo " ${disk4} ONLINE 0 0 0" 295185029Spjd echo "errors: No known data errors" 296185029Spjd)` 297185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 298185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 299185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 300185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 301185029Spjd 302185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 303185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 304185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 305185029Spjd 306185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 307185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 308185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 309185029Spjdexp=`( 310185029Spjd echo " pool: ${name0}" 311185029Spjd echo " state: ONLINE" 312185029Spjd echo " scrub: none requested" 313185029Spjd echo "config:" 314185029Spjd echo " NAME STATE READ WRITE CKSUM" 315185029Spjd echo " ${name0} ONLINE 0 0 0" 316185029Spjd echo " mirror ONLINE 0 0 0" 317185029Spjd echo " ${disk0} ONLINE 0 0 0" 318185029Spjd echo " ${disk1} ONLINE 0 0 0" 319185029Spjd echo " raidz2 ONLINE 0 0 0" 320185029Spjd echo " ${disk2} ONLINE 0 0 0" 321185029Spjd echo " ${disk3} ONLINE 0 0 0" 322185029Spjd echo " ${disk4} ONLINE 0 0 0" 323185029Spjd echo "errors: No known data errors" 324185029Spjd)` 325185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 326185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 327185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 328185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 329185029Spjd 330185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 331185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 332185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 333185029Spjd 334185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 335185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 336185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 337185029Spjdexp=`( 338185029Spjd echo " pool: ${name0}" 339185029Spjd echo " state: ONLINE" 340185029Spjd echo " scrub: none requested" 341185029Spjd echo "config:" 342185029Spjd echo " NAME STATE READ WRITE CKSUM" 343185029Spjd echo " ${name0} ONLINE 0 0 0" 344185029Spjd echo " mirror ONLINE 0 0 0" 345185029Spjd echo " ${disk0} ONLINE 0 0 0" 346185029Spjd echo " ${disk1} ONLINE 0 0 0" 347185029Spjd echo " ${disk2} ONLINE 0 0 0" 348185029Spjd echo " raidz2 ONLINE 0 0 0" 349185029Spjd echo " ${disk3} ONLINE 0 0 0" 350185029Spjd echo " ${disk4} ONLINE 0 0 0" 351185029Spjd echo " ${disk5} ONLINE 0 0 0" 352185029Spjd echo "errors: No known data errors" 353185029Spjd)` 354185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 355185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 356185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 357185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 358185029Spjd 359185029Spjdexpect_fl ${ZPOOL} create ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 360185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 361185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 362185029Spjd 363185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} mirror ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 364185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 365185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 366185029Spjdexp=`( 367185029Spjd echo " pool: ${name0}" 368185029Spjd echo " state: ONLINE" 369185029Spjd echo " scrub: none requested" 370185029Spjd echo "config:" 371185029Spjd echo " NAME STATE READ WRITE CKSUM" 372185029Spjd echo " ${name0} ONLINE 0 0 0" 373185029Spjd echo " mirror ONLINE 0 0 0" 374185029Spjd echo " ${disk0} ONLINE 0 0 0" 375185029Spjd echo " ${disk1} ONLINE 0 0 0" 376185029Spjd echo " ${disk2} ONLINE 0 0 0" 377185029Spjd echo " ${disk3} ONLINE 0 0 0" 378185029Spjd echo " raidz2 ONLINE 0 0 0" 379185029Spjd echo " ${disk4} ONLINE 0 0 0" 380185029Spjd echo " ${disk5} ONLINE 0 0 0" 381185029Spjd echo " ${disk6} ONLINE 0 0 0" 382185029Spjd echo "errors: No known data errors" 383185029Spjd)` 384185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 385185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 386185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 387185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 388185029Spjd 389185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 390185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 391185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 392185029Spjd 393185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} raidz2 ${disk2} ${disk3} ${disk4} 394185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 395185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 396185029Spjdexp=`( 397185029Spjd echo " pool: ${name0}" 398185029Spjd echo " state: ONLINE" 399185029Spjd echo " scrub: none requested" 400185029Spjd echo "config:" 401185029Spjd echo " NAME STATE READ WRITE CKSUM" 402185029Spjd echo " ${name0} ONLINE 0 0 0" 403185029Spjd echo " raidz1 ONLINE 0 0 0" 404185029Spjd echo " ${disk0} ONLINE 0 0 0" 405185029Spjd echo " ${disk1} ONLINE 0 0 0" 406185029Spjd echo " raidz2 ONLINE 0 0 0" 407185029Spjd echo " ${disk2} ONLINE 0 0 0" 408185029Spjd echo " ${disk3} ONLINE 0 0 0" 409185029Spjd echo " ${disk4} ONLINE 0 0 0" 410185029Spjd echo "errors: No known data errors" 411185029Spjd)` 412185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 413185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 414185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 415185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 416185029Spjd 417185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${dik2} raidz2 ${disk3} ${disk4} ${disk5} 418185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 419185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 420185029Spjd 421185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} ${disk2} raidz2 ${disk3} ${disk4} ${disk5} 422185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 423185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 424185029Spjdexp=`( 425185029Spjd echo " pool: ${name0}" 426185029Spjd echo " state: ONLINE" 427185029Spjd echo " scrub: none requested" 428185029Spjd echo "config:" 429185029Spjd echo " NAME STATE READ WRITE CKSUM" 430185029Spjd echo " ${name0} ONLINE 0 0 0" 431185029Spjd echo " raidz1 ONLINE 0 0 0" 432185029Spjd echo " ${disk0} ONLINE 0 0 0" 433185029Spjd echo " ${disk1} ONLINE 0 0 0" 434185029Spjd echo " ${disk2} ONLINE 0 0 0" 435185029Spjd echo " raidz2 ONLINE 0 0 0" 436185029Spjd echo " ${disk3} ONLINE 0 0 0" 437185029Spjd echo " ${disk4} ONLINE 0 0 0" 438185029Spjd echo " ${disk5} ONLINE 0 0 0" 439185029Spjd echo "errors: No known data errors" 440185029Spjd)` 441185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 442185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 443185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 444185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 445185029Spjd 446185029Spjdexpect_fl ${ZPOOL} create ${name0} raidz1 ${disk0} ${disk1} ${dik2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 447185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 448185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 449185029Spjd 450185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} raidz1 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} 451185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 452185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 453185029Spjdexp=`( 454185029Spjd echo " pool: ${name0}" 455185029Spjd echo " state: ONLINE" 456185029Spjd echo " scrub: none requested" 457185029Spjd echo "config:" 458185029Spjd echo " NAME STATE READ WRITE CKSUM" 459185029Spjd echo " ${name0} ONLINE 0 0 0" 460185029Spjd echo " raidz1 ONLINE 0 0 0" 461185029Spjd echo " ${disk0} ONLINE 0 0 0" 462185029Spjd echo " ${disk1} ONLINE 0 0 0" 463185029Spjd echo " ${disk2} ONLINE 0 0 0" 464185029Spjd echo " ${disk3} ONLINE 0 0 0" 465185029Spjd echo " raidz2 ONLINE 0 0 0" 466185029Spjd echo " ${disk4} ONLINE 0 0 0" 467185029Spjd echo " ${disk5} ONLINE 0 0 0" 468185029Spjd echo " ${disk6} ONLINE 0 0 0" 469185029Spjd echo "errors: No known data errors" 470185029Spjd)` 471185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 472185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 473185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 474185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 475185029Spjd 476185029Spjdadd_msg="# TODO Sun CR 6726091, Lustre bug 16873" 477185029Spjdexpect_fl ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4} ${disk5} 478185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 479185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 480185029Spjdadd_msg="" 481185029Spjd 482185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} ${disk0} log mirror ${disk1} ${disk2} mirror ${disk3} ${disk4} ${disk5} 483185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 484185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 485185029Spjdexp=`( 486185029Spjd echo " pool: ${name0}" 487185029Spjd echo " state: ONLINE" 488185029Spjd echo " scrub: none requested" 489185029Spjd echo "config:" 490185029Spjd echo " NAME STATE READ WRITE CKSUM" 491185029Spjd echo " ${name0} ONLINE 0 0 0" 492185029Spjd echo " ${disk0} ONLINE 0 0 0" 493185029Spjd echo " logs ONLINE 0 0 0" 494185029Spjd echo " mirror ONLINE 0 0 0" 495185029Spjd echo " ${disk1} ONLINE 0 0 0" 496185029Spjd echo " ${disk2} ONLINE 0 0 0" 497185029Spjd echo " mirror ONLINE 0 0 0" 498185029Spjd echo " ${disk3} ONLINE 0 0 0" 499185029Spjd echo " ${disk4} ONLINE 0 0 0" 500185029Spjd echo " ${disk5} ONLINE 0 0 0" 501185029Spjd echo "errors: No known data errors" 502185029Spjd)` 503185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 504185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 505185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 506185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 507185029Spjd 508185029Spjdadd_msg="# TODO Sun CR 6726091, Lustre bug 16873" 509185029Spjdexpect_fl ${ZPOOL} create ${name0} ${disk0} log mirror ${disk1} ${disk2} ${disk3} mirror ${disk4} ${disk5} 510185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 511185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 512185029Spjdadd_msg="" 513185029Spjd 514185029Spjdexpect_ok ${ZPOOL} create ${zpool_f_flag} ${name0} ${disk0} log mirror ${disk1} ${disk2} ${disk3} mirror ${disk4} ${disk5} 515185029Spjdexpect_ok ${ZPOOL} status -x ${name0} 516185029Spjdexpect "pool '${name0}' is healthy" ${ZPOOL} status -x ${name0} 517185029Spjdexp=`( 518185029Spjd echo " pool: ${name0}" 519185029Spjd echo " state: ONLINE" 520185029Spjd echo " scrub: none requested" 521185029Spjd echo "config:" 522185029Spjd echo " NAME STATE READ WRITE CKSUM" 523185029Spjd echo " ${name0} ONLINE 0 0 0" 524185029Spjd echo " ${disk0} ONLINE 0 0 0" 525185029Spjd echo " logs ONLINE 0 0 0" 526185029Spjd echo " mirror ONLINE 0 0 0" 527185029Spjd echo " ${disk1} ONLINE 0 0 0" 528185029Spjd echo " ${disk2} ONLINE 0 0 0" 529185029Spjd echo " ${disk3} ONLINE 0 0 0" 530185029Spjd echo " mirror ONLINE 0 0 0" 531185029Spjd echo " ${disk4} ONLINE 0 0 0" 532185029Spjd echo " ${disk5} ONLINE 0 0 0" 533185029Spjd echo "errors: No known data errors" 534185029Spjd)` 535185029Spjdexpect "${exp}" ${ZPOOL} status ${name0} 536185029Spjdexpect_ok ${ZPOOL} destroy ${name0} 537185029Spjdexpect_fl ${ZPOOL} status -x ${name0} 538185029Spjdexpect_fl ${ZPOOL} destroy ${name0} 539185029Spjd 540185029Spjddisks_destroy 541