12 mdconfig -a -t malloc -s 1M -u $us0 || exit 1
13 mdconfig -a -t malloc -s 2M -u $us1 || exit 1
14 mdconfig -a -t malloc -s 3M -u $us2 || exit 1
16 gmirror label $name /dev/md${us0} /dev/md${us1} /dev/md${us2} || exit 1
19 # Size of created device should be 1MB - 512b.
21 size=`diskinfo /dev/mirror/${name} | awk '{print $3}'`
23 if [ $size -eq 1048064 ]; then
29 gmirror remove $name md${us0}
30 gmirror remove $name md${us1}
31 gmirror remove $name md${us2}