Ignite-UX and MirrorDisk/UX

print \"3\nEFI ${EFISIZE}MB\nHPUX 100%\nHPSP ${HPSPSIZE}MB\" >\
/tmp/partitionfile
echo \"\n\n Partition file has been create .... Displaying \n\n\"
cat /tmp/partitionfile
echo \"\n\n Partitioning /dev/rdsk/$PART2 \"
idisk -qwf /tmp/partitionfile /dev/rdsk/$PART2
rm /tmp/partitionfile
# After partitioning the disk it needs to have its new device
# files created for it, we can’t just use insf because Ignite-UX
# has renamed the device as it probably had another name. We
# need to get the major/minor numbers from the device file
# and create the section devices.
echo \"\n\n Determining Major and minor Numbers\"
echo $(/usr/bin/ll /dev/dsk/${PART2} |tail -1 | \
awk ' { print $5\" \"$6 } ' ) | read BMAJNUM MINNUM
CMAJNUM=$(/usr/bin/ll /dev/rdsk/${PART2} |tail -1 \
| awk ' { print $5 } ' )
CUTMINNUM=$(print $MINNUM | cut -c 1-7 )
echo \"\n\n Removing OLD devices files.\"
ls /dev/*dsk/${PART2}s?|xargs -i -t rmsf {} 2>&1 >/dev/null
echo \"\n\n Creating new device files.\"
mknod /dev/rdsk/${PART2}s1 c $CMAJNUM ${CUTMINNUM}1
mknod /dev/rdsk/${PART2}s2 c $CMAJNUM ${CUTMINNUM}2
mknod /dev/rdsk/${PART2}s3 c $CMAJNUM ${CUTMINNUM}3
mknod /dev/dsk/${PART2}s1 b $BMAJNUM ${CUTMINNUM}1
mknod /dev/dsk/${PART2}s2 b $BMAJNUM ${CUTMINNUM}2
mknod /dev/dsk/${PART2}s3 b $BMAJNUM ${CUTMINNUM}3
# The service partition on the disk just partitioned will not
contain
# anything you may choose to copy it from the other disk. Note the
# use of the section number.
echo \"\n\n Copying service partition from ${PART1}s3 to
${PART2}s3\"
dd if=/dev/rdsk/${PART1}s3 of=/dev/rdsk/${PART2}s3 bs=1024k
fi
# Make the disk contain a boot area.
echo \"\n\n pvcreating ${PARTS2}\"
pvcreate -f -B /dev/rdsk/${PARTS2}
# Add the mirrored disk back to the group.
echo \"\n\n Adding (vgextend) mirrored disk ${PARTS2}\"
echo \" back into vg00.\"
vgextend /dev/vg00 /dev/dsk/${PARTS2}
13