xfs
[Top] [All Lists]

Re: Upgrading root partion & Grub

To: Gareth Blades <list.xfs@xxxxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: Upgrading root partion & Grub
From: Simon Matter <simon.matter@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Apr 2002 21:33:24 +0200
>received: from mobile.sauter-bc.com (unknown [10.1.6.21]) by basel1.sauter-bc.com (Postfix) with ESMTP id 71C0157306; Wed, 17 Apr 2002 21:33:25 +0200 (CEST)
Cc: Xfs <linux-xfs@xxxxxxxxxxx>
References: <GNECLHBJOCNHJEPPOHNHKEIPCAAA.list.xfs@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
Gareth Blades schrieb:
> 
> Here is my current setup:-
> 
> Redhat 7.2 XFS kernel installed together with all tools including the Grub
> upgrade RPM.

Hi Gareth,

Did you use LILO when you first installed your system? I don't know what
happens exactly if you only upgrade GRUB but read below what could be
your problem:

GRUB has two big problems:

The first problem with GRUB is that it does not work well with software
raid. anaconda is prepared to correctly install GRUB at install time but
later installs with 'grub-install' fail. The 'grub-install' script only
supports floppy and IDE/SCSI harddisks, no MD device.

The second problem with GRUB is that if you have mirrored disks and the
first disk fails, you end up in a non bootable system because the second
disk does not contain a valid MBR. LILO handles this correctly, I mean
if you tell LILO to install on /dev/md0, it will install an MBR on every
disk which is part of /dev/md0.

Now, I don't know why RedHat defaults to GRUB.

BTW: This problem has nothing to do with XFS.

-Simon

> 
> /dev/md0 raid1 comprising of /dev/sda1 and /dev/sdb1
> /dev/md1 raid1 comprising of /dev/sda3 and /dev/sdb3
> 
> /dev/md1 has already been converted to XFS under /data and works fine.
> 
> Now I wish to convert the root partition to XFS so that I can use xfsdump to
> backup both partitions.
> 
> I have used the instructions on the website to copy the root partition onto
> a new drive /dev/sdc1
> 
> Here is a copy of my current gub.conf:-
> 
> default=0
> timeout=4
> splashimage=(hd0,0)/boot/grub/splash.xpm.gz
> title Red Hat Linux (2.4.9-31SGI_XFS_1.0.2)
>         root (hd0,0)
>         kernel /boot/vmlinuz-2.4.9-31SGI_XFS_1.0.2 ro root=/dev/md0
>         initrd /boot/initrd-2.4.9-31SGI_XFS_1.0.2.img
> title Red Hat Linux (2.4.7-10)
>         root (hd0,0)
>         kernel /boot/vmlinuz-2.4.7-10 ro root=/dev/md0
>         initrd /boot/initrd-2.4.7-10.img
> 
> The next step is to get the system to boot off the new drive. I would
> specify root=/dev/sdc1 for the kernel but what would I specify for the 'root
> (hdx,x)' parameter?
> 
> If this works and I convert and copy back /dev/sdc1 to /dev/md0 will grub
> then be able to find the information it needs to boot considering there is
> no separate /boot partition?
> 
> Thanks
> 
> --
> Gareth Blades



<Prev in Thread] Current Thread [Next in Thread>