big concat metadevice

If you need to create a Big concat metadevice from a bunch of EMC or HITACHI disks, you can use this script:
#!/bin/ksh
( N=`format < /dev/null | egrep -i ‘emc|hit’ | wc -l| sed ‘s/ //g’`
/usr/ucb/echo -n “metainit d1 $N ”
format < /dev/null | egrep -i ‘emc|hit’ | awk ‘{ print $2 }’ | while read d;do
/usr/ucb/echo -n “1 ${d}s2 ”
done
echo “” ) > /tmp/makevol.ksh
chmod 755 /tmp/makevol.ksh

Leave a Reply

Your email address will not be published. Required fields are marked *