On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says: cl->raidtype=5 rd_type=1 <TAB><Alt-Tab> between elements cl->raidtype=5 rd_type=1 <F12> next screen But there is no way to access the bottom part. If I hit the OK button and get a shell I can mount the partitions myself, but then when I chroot to the mounted system there are no devices in /dev. What's the right way to install grub on what was /dev/sdb in the original install but is now the only disk and moved to /dev/sda? The old /dev/sda is no longer there....
The right way is to boot directly into grub and ask it to find the stage1 file on the partitions.
Then set your root partition
Then setup grub on the mbr of each drive.
There are many pages google can find with explicit details.
Mike
Les Mikesell wrote:
On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says: cl->raidtype=5 rd_type=1 <TAB><Alt-Tab> between elements cl->raidtype=5 rd_type=1 <F12> next screen But there is no way to access the bottom part. If I hit the OK button and get a shell I can mount the partitions myself, but then when I chroot to the mounted system there are no devices in /dev. What's the right way to install grub on what was /dev/sdb in the original install but is now the only disk and moved to /dev/sda? The old /dev/sda is no longer there....
Mike Fedyk wrote:
On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says: cl->raidtype=5 rd_type=1 <TAB><Alt-Tab> between elements cl->raidtype=5 rd_type=1 <F12> next screen But there is no way to access the bottom part. If I hit the OK button and get a shell I can mount the partitions myself, but then when I chroot to the mounted system there are no devices in /dev. What's the right way to install grub on what was /dev/sdb in the original install but is now the only disk and moved to /dev/sda? The old /dev/sda is no longer there....
The right way is to boot directly into grub and ask it to find the stage1 file on the partitions.
If grub had been there it should have found it itself - but it wasn't so I had to boot the CD.
Then set your root partition
I was able to do the install from the rescue mode boot, but only because the /boot partition was all still intact and I only had to use the setup command in grub.
Then setup grub on the mbr of each drive.
There was only on drive at that point. It's syncing to a new mirror now.
There are many pages google can find with explicit details.
Grub isn't so much the issue here as the difference in the rescue mode boot. I'm used to being able to boot the CD, chroot into the existing system and have pretty much normal access regardless of what was broken. Now that the system /dev directory is basically empty, things don't work when you have to mount the partitions manually. Is there a step to set up devices so the chroot will work?
On Tue, 2007-05-15 at 17:12 -0500, Les Mikesell wrote:
On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says: cl->raidtype=5 rd_type=1 <TAB><Alt-Tab> between elements cl->raidtype=5 rd_type=1 <F12> next screen But there is no way to access the bottom part. If I hit the OK button and get a shell I can mount the partitions myself, but then when I chroot to the mounted system there are no devices in /dev. What's the right way to install grub on what was /dev/sdb in the original install but is now the only disk and moved to /dev/sda? The old /dev/sda is no longer there....
Arrfab has a good way to do it on his blog: http://www.arrfab.net/blog/?p=11
M$-Internet Exploder est le cancer de l'Internet, voyez pourquoi ici : --> http://www.decroissance.info/Ateliers-Liberez-votre-ordinateur <-- Et plus vous éviterez les produits Micro$oft, plus libres vous serez : -------------> http://libre-fan.apinc.org/article21.html <------------
-- (°- Bernard Lheureux Gestionnaire des MailingLists ML, TechML, LinuxML //\ http://www.bbsoft4.org/Mailinglists.htm ** MailTo:root@bbsoft4.org v_/_ http://www.bbsoft4.org/ <<<<<< * >>>>>> http://www.portalinux.org/
On 5/15/07, Les Mikesell lesmikesell@gmail.com wrote:
On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says:
Hi Les,
Are you trying to install grub on the second disk of a software raid 1 array because anaconda STILL does not properly setup grub on both disks during install?
Robert Arkiletian wrote:
On earlier versions of Centos, I could boot the install CD in rescue mode, let it find and mount the installed system on the HD even when it was just one disk of RAID1 partitions (type=FD). When booting from the centos5 disk the attempt find the system gives a box that says 'You don't have any Linux partitions'. At the bottom of the screen there is something that says:
Are you trying to install grub on the second disk of a software raid 1 array because anaconda STILL does not properly setup grub on both disks during install?
I'm not sure now but I think so. I'm in the process of updating several nearly identical boxes that have swappable drives by building the system disks with all programs installed on a spare box, then swapping them into the real servers and changing the IP, hostname and fstab entries for other drives on that machine. Before the swap I pull one of the raid mirrors as the starting point for the next clone, re-sync to a new drive, then swap the pair with the production server. I think the one I had that didn't boot was the original 2nd drive, meaning the install didn't set it up right. I've never worried about that much before though, since the install disk in rescue mode would always boot and mount the drives whether grub had been installed or not. And an auto-install is probably going to be wrong on either IDE or scsi since one usually shifts positions and one doesn't after a failure.