I'm preparing to recover a Oracle Fire X4170 server in a disaster recovery test at a different location than in prod. I have some questions about fdisk partitions. I'm using Solaris 10 update 10.
On my prod server, the boot disk has 2 partitions, diagnostic and solaris. Is the diagnostic partition required for booting?
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Diagnostic 1 7 7 0
2 Active Solaris2 8 36337 36330 100
My alternate boot disk is a copy of the boot disk. On the DR server, I plan to just create a whole disk solaris partition on their second disk using:
fdisk -B /dev/rdsk/${proddisk}p0
then format the solaris partition using a pre-created 300GB partition table
fmthard -s $disk_partition_app300 /dev/rdsk/${proddisk}s2
Later I will Make the prod disk bootable with a master boot program
echo "5" | fdisk -b /a/usr/lib/fs/ufs/mboot /dev/rdsk/${proddisk}p0
Make the prod disk bootable (installgrub)
/a/sbin/installgrub -fm /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/${proddisk}s0
I would then expect I need to edit the mounted second disk (s0 mounted on /a) �/boot/grub/menu.lst� because it expects there to be 2 partitions on the boot disk but now there will only be 1.
Prod file:
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Oracle Solaris 10 8/11 s10x_u10wos_17b X86
findroot (rootfs0,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
findroot (rootfs0,1,a)
kernel /boot/multiboot -s -B console=ttya
module /boot/amd64/x86.miniroot-safe
#---------------------END BOOTADM--------------------
title Diagnostic Partition
rootnoverify (hd0,0)
chainloader +1
#---------- Added manually for the alternate boot disk ----------
title Alternate boot disk-Oracle Solaris 10 8/11 s10x_u10wos_17b X86
root (hd1,1,a)
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------- End Added manually for the alternate boot disk ------
I expect I would need to change
root (hd1,1,a)
to
root (hd1,0,a)
and perhaps
findroot (rootfs0,1,a)
to
findroot (rootfs0,0,a)
in both places.
Then when I'm booting from the recovered OS, I'll have to select the Alternate boot disk when the GRUB menu is displayed, correct?
I know I could save a copy of the boot disk's 2 partitions using
fdisk -W /export/bootdiskfile2 /dev/rdsk/${primary_disk}p0
but I'd rather not have to make use of it unless I have to.