dd if=/dev/rdsk/c8t0d0p0 bs=1048576 count=9000000 | wc -c
iostat -En | grep -v "^Vendor:" |grep -v "^Media Error:" | grep -v "^Illegal Request:" | sed -e 's/Soft Errors:.*//' -e 's/ bytes.*//' -e 's/ *$//' -e 's/.* //' -e 's/^/' -e 's/\n//' | while read a ; do read b ; echo $a $b ; done
iostat -En | grep -v "^Vendor:" |grep -v "^Media Error:" | grep -v "^Illegal Request:" |sed -e 's/Soft Errors:.*//' -e 's/ bytes.*//' -e 's/ *$//' -e 's/.* //' -e 's/^/' -e 's/\n//' |while read a ; do read b ; echo $a $b ; done |while read a b ; do dd if=/dev/rdsk/${a}p0 bs=512 count=1 >/dev/null 2>/dev/null || continueecho $b $a startdd if=/dev/rdsk/${a}p0 bs=1048576 count=`expr $b / 1024 / 1024 + 1` | wc -cecho $b $a enddone