Booting from an alternate boot disk
If the root disk is encapsulated and mirrored, you can use one of its mirrors to boot the system if the primary boot disk fails.
On a Sun x64 system, the alternate boot disk can be added to the GRUB boot menu, or the
bootpath
can be redefined in the EEPROM without changing the GRUB configuration. - Check that the EEPROM variable
use-nvramrc?
is set totrue
. - Set the value of
use-nvramrc?
totrue
. - Define an alternate boot disk by entering the following command at the
ok
boot prompt: - Use the
devalias
command at the boot prompt to discover the alternate disks from which the system may be booted: - You should now be able to boot the system from an alternate boot disk,
vx-
altboot_disk, by entering the following command at theok
boot prompt:
- Boot the system into the failsafe OS from the GRUB boot menu or from the Solaris installation disc.
- Mount the
root
file system from the root disk mirror (this is usually on slices0
) on a suitable mount point, such as/a
: - List the device that corresponds to the
root
file system on the root disk mirror: - Edit the boot environment configuration file,
/a/boot/solaris/bootenv.rc
, and change the line that defines the boot path so that it points to the PROM path of the root disk mirror, for example: - Update the EEPROM information:
- Edit the GRUB configuration file,
/boot/grub/menu.lst
, and look for the entry for the primary root disk, for example: - Create a similar entry to allow the root disk mirror to be booted, for example:
- Copy the modified GRUB configuration file to the mounted root disk mirror:
- On rebooting the system, the GRUB menu should allow you to boot from the the primary root disk or from a root disk mirror.
On x64 systems, the boot disk device is usually designated as
hd0
by GRUB as it is the first disk to be discovered by the operating system. The alternate boot disk usually corresponds to hd1
. If you change the boot order to boot from the alternate boot disk, the new boot disk becomes hd0
, and the old boot disk becomes hd1
. - If the system will not boot from the primary root disk, and a suitable alternate root disk mirror is not shown in the GRUB menu, boot the system into the failsafe OS from the GRUB boot menu or from the Solaris installation disc.
- Mount the
root
file system from the root disk mirror (this is usually on slices0
) on a suitable mount point, such as/a
: - List the device that corresponds to the
root
file system on the root disk mirror: - Edit the boot environment configuration file,
/a/boot/solaris/bootenv.rc
, and change the line that defines the boot path so that it points to the PROM path of the root disk mirror, for example: - Update the EEPROM information:
- The system should now be bootable from the new device that is defined by
bootpath
. Perform a reconfiguration reboot:
No comments:
Post a Comment