1#!/bin/sh 2# $FreeBSD$ 3 4dir=`dirname $0` 5. ${dir}/../../misc.sh 6 7echo "1..10" 8 9disks_create 20 10names_create 1 11 12expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} 13expect_ok ${ZPOOL} add ${name0} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} 14exp=`( 15 echo " pool: ${name0}" 16 echo " state: ONLINE" 17 echo " scrub: none requested" 18 echo "config:" 19 echo " NAME STATE READ WRITE CKSUM" 20 echo " ${name0} ONLINE 0 0 0" 21 echo " raidz2 ONLINE 0 0 0" 22 echo " ${disk0} ONLINE 0 0 0" 23 echo " ${disk1} ONLINE 0 0 0" 24 echo " ${disk2} ONLINE 0 0 0" 25 echo " ${disk3} ONLINE 0 0 0" 26 echo " raidz2 ONLINE 0 0 0" 27 echo " ${disk4} ONLINE 0 0 0" 28 echo " ${disk5} ONLINE 0 0 0" 29 echo " ${disk6} ONLINE 0 0 0" 30 echo " ${disk7} ONLINE 0 0 0" 31 echo "errors: No known data errors" 32)` 33expect "${exp}" ${ZPOOL} status ${name0} 34expect_ok ${ZPOOL} destroy ${name0} 35expect_fl ${ZPOOL} status -x ${name0} 36 37expect_ok ${ZPOOL} create ${name0} raidz2 ${disk0} ${disk1} ${disk2} ${disk3} raidz2 ${disk4} ${disk5} ${disk6} ${disk7} 38expect_ok ${ZPOOL} add ${name0} raidz2 ${disk8} ${disk9} ${disk10} ${disk11} raidz2 ${disk12} ${disk13} ${disk14} ${disk15} raidz2 ${disk16} ${disk17} ${disk18} ${disk19} 39exp=`( 40 echo " pool: ${name0}" 41 echo " state: ONLINE" 42 echo " scrub: none requested" 43 echo "config:" 44 echo " NAME STATE READ WRITE CKSUM" 45 echo " ${name0} ONLINE 0 0 0" 46 echo " raidz2 ONLINE 0 0 0" 47 echo " ${disk0} ONLINE 0 0 0" 48 echo " ${disk1} ONLINE 0 0 0" 49 echo " ${disk2} ONLINE 0 0 0" 50 echo " ${disk3} ONLINE 0 0 0" 51 echo " raidz2 ONLINE 0 0 0" 52 echo " ${disk4} ONLINE 0 0 0" 53 echo " ${disk5} ONLINE 0 0 0" 54 echo " ${disk6} ONLINE 0 0 0" 55 echo " ${disk7} ONLINE 0 0 0" 56 echo " raidz2 ONLINE 0 0 0" 57 echo " ${disk8} ONLINE 0 0 0" 58 echo " ${disk9} ONLINE 0 0 0" 59 echo " ${disk10} ONLINE 0 0 0" 60 echo " ${disk11} ONLINE 0 0 0" 61 echo " raidz2 ONLINE 0 0 0" 62 echo " ${disk12} ONLINE 0 0 0" 63 echo " ${disk13} ONLINE 0 0 0" 64 echo " ${disk14} ONLINE 0 0 0" 65 echo " ${disk15} ONLINE 0 0 0" 66 echo " raidz2 ONLINE 0 0 0" 67 echo " ${disk16} ONLINE 0 0 0" 68 echo " ${disk17} ONLINE 0 0 0" 69 echo " ${disk18} ONLINE 0 0 0" 70 echo " ${disk19} ONLINE 0 0 0" 71 echo "errors: No known data errors" 72)` 73expect "${exp}" ${ZPOOL} status ${name0} 74expect_ok ${ZPOOL} destroy ${name0} 75expect_fl ${ZPOOL} status -x ${name0} 76 77disks_destroy 78