# Steps to go from no mirror to a mirrored bp. This assumes that both drives
# are identical in every way possible. It will or will not work if geometries
# vary in any way. Same geometry but different models will work, but again,
# geometries must match.
#
# We are also making an assumption here that the drive is brand-friggin new.
# Get geometry and use that to make new disk appear identical
geom=`fdisk -W - /dev/rdsk/c0t0d0p0|awk '{
if (NF == 10 && $1 > 0) {
OFS=":";
print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}
}'`
# Set geometry from
fdisk -A $geom /dev/rdsk/c0t1d0p0
# Read info from drive already used for bp
prtvtoc /dev/rdsk/c0t0d0s2 > vtoc
# Apply settings from correctly configured disk to new disk before attaching
fmthard -s vtoc /dev/rdsk/c0t1d0s2
# Attach device to one already constituting bp
zpool attach -f bp c0t0d0s0 c0t1d0s0
# Finally install grub over the new drive
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s0
# Let that puppy rip, reboot and test, but wait for re-sync to happen.