Notes to self:
Install your system to a PARTITION, NOT the whole drive. Â I seem to remember reading somewhere that this was required.
My system had 2 disks. Â rpool was setup on disk 0. Â (those are ZERO’s not O’s.)
c8t0d0s0 Â (disk 0 with rpool) c8t1d0s0 Â (disk 1 we want to mirror)
After installed and booted into new system… Â (as root)
format (choose your second disk, should be 1 and in this sys it was c8t1d0) fdisk (here, choose Y to select the 100% Solaris partion) exit to save changes
prtvtoc /dev/rdsk/c8t0d0s0 | fmthard -s - /dev/rdsk/c8t1d0s0
(notice the “rdsk”, it’s not “dsk”, and it includes the slices. Â If you installed on a full drive, I don’t think you see the “s0” slices)
zpool attach -f rpool c8t0d0s0 c8t1d0s0
And last setup grub on the second disk…
installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c8t1d0s0
All done! Â Make note that you use “rdsk” on the prtvtoc command. Â I kept getting “must be raw device” errors because I missed the “r” and had only /dev/dsk in the drive path. Â Also, on first attempts, I somehow messed up my second drive partitions and labels and it was EFI labeled. Â Nothing worked when it was EFI, and I couldn’t remove it either. Â Since I did this initially in a VMware guest, Â I just deleted the disk and added a new one. Â But that’s important to note, do not do anything to that drive except run “format” and then use the “fdisk” command on the new drive. Â It will come up and say something like you need a 100% Solaris partition, just say Y and exit that to save. Â THEN… you can do the prtvtoc thing to copy the partition table to the new drive.