Thanks, I just tried that before seeing your post and I can confirm that's what I needed to do. Then I would copy the boot disk Solaris partition table to the second disk:
prtvtoc /dev/rdsk/${Primary_disk}s2 | fmthard -s - /dev/rdsk/${Secondary_disk}s2
and
/sbin/installgrub -fm /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/${Secondary_disk}s0
then do the usual SVM commands for the slices
Finally, update the secondary disk as alternate bootpath in /boot/solaris/bootenv.rc file. (This can be done
by executing the eeprom command)
Example: eeprom altbootpath=�"
If you are not sure what the physical path is that belongs in the above ��. It is recommended you run the
following command:
# ls -la /dev/dsk/c#t#d#s#
This example was taken from an X2100 platform:
# ls -la /dev/dsk/c2d0s0
lrwxrwxrwx 1 root root 48 Sep 5 21:35 /dev/dsk/c2d0s0 -> ../../devices/pci@0,0/pci-ide@7/ide@1/cmdk@0,0:a
so the path that needs to added to the bootenv.rc file is eeprom
ls -la /dev/dsk/${Secondary_disk}s0
# eeprom altbootpath=�/pci-ide@7/ide@1/cmdk@0,0:a�
Did I miss any other weird x86 stuff?
---------- Post updated at 05:50 PM ---------- Previous update was at 05:35 PM ----------
I think I need to do this before installgrub:
Make the secondary submirror bootable with a master boot program.
Specify the master boot program.
# fdisk -b /usr/lib/fs/ufs/mboot /dev/rdsk/c1t1d0p0
The following screen appears:
Total disk size is 31035 cylinders
Cylinder size is 1146 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris 1 31034 31034 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
And this near the end:
Define the alternative boot path in the menu.lst file.
To enable the system to boot off of the disk that holds the secondary submirror, configure the system to
see the disk as the alternate boot device. In the current example, c1t1d0s0, the alternative path is on
the first slice of the first fdisk partition on the second disk. Thus, you would edit the menu.lst with
the following entry:
title alternate boot
root (hd1,0,a)
kernel /boot/multiboot
module /boot/x86.miniroot-safe