![]() | Sun System Handbook - ISO 4.1 October 2012 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||
Solution Type Problem Resolution Sure Solution 1012033.1 : Sun Fire[TM] V60x/V65x grub configuration problems on RAIDed /boot
PreviouslyPublishedAs 216489 Applies to:Sun Fire V60x Server - Version Not Applicable and laterSun Fire V65x Server - Version Not Applicable and later All Platforms ***Checked for relevance on 17-May-2012*** SymptomsUnable to boot to mirror disk after Linux install ChangesMoving from a single disk installation to a mirror or new install directly to a mirror CauseWhen installing Red Hat(R) Linux, GRUB (Grand Unified Bootloader) does not write to the Master Boot Record (MBR) of both mirror disks SolutionResolutionAssumptions: 1) GRUB is already installed and the systems boots with both drives using the installed GRUB boot manager 2) /boot is installed in a RAID 1 metadevice Reconfigure GRUB so that it does write to the Master Boot Record of your RAIDed boot: # grub grub> root (hd0,0) Filesystem type is ext3fs, partition type 0xfd grub> setup (hd0) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Done. grub> root (hd1,0) Filesystem type is ext2fs, partition type 0xfd grub> setup (hd1) Checking if "/boot/grub/stage1" exists... yes Checking if "/boot/grub/stage2" exists... yes Checking if "/boot/grub/e2fs_stage1_5" exists... yes Running "embed /boot/grub/e2fs_stage1_5 (hd1)"... 16 sectors are embedded. succeeded Running "install /boot/grub/stage1 (hd1) (hd1)1+16 p (hd1,0)/boot/grub/stage2 /boot/grub/grub.conf"... succeeded Done. grub> quit ------------------------------------------------------------------ Here is how /boot/grub/grub.conf is: (/dev/md0 mounted as /boot) (Assuming kernel is installed as /boot/bzImage, and RAID1 support compiled into the kernel). ------------------------------------------------------------------ # Boot automatically after 30 secs. timeout 30 # By default, boot the first entry. default 0 # Fallback to the second entry. fallback 1 # For booting with disc 0 kernel title GNU/Linux (hd0,0) kernel (hd0,0)/bzImage root=/dev/md1 # For booting with disc 1 kernel, if (hd0,0)/bzImage is unreadable title GNU/Linux (hd1,0) kernel (hd1,0)/bzImage root=/dev/md1
Attachments This solution has no attachment |
||||||||||||
|