--- "Chris Mason (Lists)" lists@masonc.com wrote:
I have a p4 motherboard with 2 ide interfaces, I connect 2 40 GB drives as hda and hdc, I install Centos 4 from a CDROM, and partition the drives as 2 x raid partition each plus a swap partition on hda, the make md0 and md1 to install /boot and / respectively. Install goes well, everything looks great, go to reboot from drives, and all I get is "grub" but no boot. I have tried this ten times, doesn't seem I can get around it.
I have to configure this server so that the drives are mirrored. I have installed redhat 9 in this configuration without problems.
What am I doing wrong?
Chris Mason
hello chris, i had a similar problem with two scsi drives and ended up rebooting into rescue mode and installing and configuring lilo. machine comes up with no problems at all now. remember to run the lilo command after configuring.
hth, brett
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
i had a similar problem with two scsi drives and ended up rebooting into rescue mode and installing and configuring lilo. machine comes up with no problems at all now. remember to run the lilo command after configuring.
i've seen this as well, but reinstalling grub from rescue mode fixed it as well. it seems to be some kind of problem with anaconda. grub will work, but just doesn't get installed properly at install time.
On Sun, 2005-04-17 at 11:30 -0700, Joe Pruett wrote:
i had a similar problem with two scsi drives and ended up rebooting into rescue mode and installing and configuring lilo. machine comes up with no problems at all now. remember to run the lilo command after configuring.
i've seen this as well, but reinstalling grub from rescue mode fixed it as well. it seems to be some kind of problem with anaconda. grub will work, but just doesn't get installed properly at install time.
When you configure the drives as RAID1 the installer never request where to install the boot record. If configuring with one drive (no raid) the installer will ask where to install the record.
Gerald
When you configure the drives as RAID1 the installer never request where to install the boot record. If configuring with one drive (no raid) the installer will ask where to install the record.
Gerald
So how do I fix this? I really need to get a mirrored drive system up and running.
Chris Mason US Number: (646)722-0001 US Fax (815)301-9759 Skype: netconcepts
On Mon, 2005-04-25 at 22:25 -0400, Chris Mason wrote:
When you configure the drives as RAID1 the installer never request where to install the boot record. If configuring with one drive (no raid) the installer will ask where to install the record.
Gerald
So how do I fix this? I really need to get a mirrored drive system up and running.
Chris Mason US Number: (646)722-0001 US Fax (815)301-9759 Skype: netconcepts
This is what I did to get it working on a firewall I built recently.
After install, leave the cd or dvd in and at the boot prompt type:
linux rescue
Once it gets into rescue mode, you can chroot /mnt/sysimage (I believe is where it mounts your OS, read the prompts while rescue mode is starting and it will tell you what your chroot argument should be as well)
Now create a file with the following contents (NOTE: the below output assumes that / and /boot are on the same drive, your contents will be different depending on the drives used and the partitioning)
root (hd0,0) install /boot/grub/stage1 d (hd0) /boot/grub/stage2 0x8000 \ hd0,0)/boot/grub/menu.lst quit
If the formatting does not come through, that should be 3 lines.
Then you run the command:
grub --batch --device-map=/boot/grub/device.map < tmp.file
That did it for me. Some things to note, This only writes the grub data to the first drive. If /boot is it's own partition, the paths in the file will not include /boot.
Hope this helps.
Jamie
On Monday 25 April 2005 22:25, Chris Mason wrote:
When you configure the drives as RAID1 the installer never request where to install the boot record. If configuring with one drive (no raid) the installer will ask where to install the record.
So how do I fix this? I really need to get a mirrored drive system up and running.
I guess you can install lilo manually after the install. There were several post about that. I use a ks.cfg file, that does the install with raid and lilo. Send me an email and I'll send my ks.cfg, if you like.
Gerald
Gerald Waugh wrote:
On Monday 25 April 2005 22:25, Chris Mason wrote:
When you configure the drives as RAID1 the installer never request where to install the boot record. If configuring with one drive (no raid) the installer will ask where to install the record.
So how do I fix this? I really need to get a mirrored drive system up and running.
I guess you can install lilo manually after the install. There were several post about that. I use a ks.cfg file, that does the install with raid and lilo. Send me an email and I'll send my ks.cfg, if you like.
I usually create a 128mb (or so) partition in addition to a 512mb-1024mb swap partition on each disk. On the first disk I put the /boot directory in that partition. On the 2nd-n disk, I put backups of /boot or sometimes /tmp. The remaining space on each drive I use for RAID partitions. That should solve your problem. The only potential drawback is that if the disk with /boot fails, you will lose data in that directory. So I've got a cron job that mirrors it's contents into one or more of the backup partitions each day. In a pinch, I can manually force lilo/grub to find the /boot partition in another drive. That strategy has served me well since I began using sofware RAID on Linux back in '97 or so and later migrated to hardware RAID using Mylex SCSI RAID controllers and later 3Ware IDE/SATA RAID controllers.
Hope that helps.
Cheers,
Chris
I would love to have that file, also any info on how to get this done. I need to mirror all partitions in software for a high reliability system.
Chris Mason www.anguillaguide.com Tel: (305) 704-7249 Fax: (815)301-9759
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Gerald Waugh Sent: Tuesday, April 26, 2005 7:42 AM To: CentOS mailing list Subject: Re: [CentOS] MIrrored drives won't boot after installation
On Monday 25 April 2005 22:25, Chris Mason wrote:
When you configure the drives as RAID1 the installer
never request
where to install the boot record. If configuring with one
drive (no
raid) the installer will ask where to install the record.
So how do I fix this? I really need to get a mirrored drive
system up
and running.
I guess you can install lilo manually after the install. There were several post about that. I use a ks.cfg file, that does the install with raid and lilo. Send me an email and I'll send my ks.cfg, if you like.
Gerald _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
I'm half way to resolving this (I hope) - I removed the second drive, I have installed Centos 4 on the remaining one and NOW I want to create a RAID 1 mirror for at least the / partition - is there a good howto on this - I started searching via Google as soon as I discovered 'mkraid' wasn't there any more but I've found nothing so far. Failing that I guess I'll have to start all over again!?
Nigel
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Chris Mason (Lists) Sent: 10 May 2005 12:39 To: 'CentOS mailing list' Subject: RE: [CentOS] MIrrored drives won't boot after installation
I would love to have that file, also any info on how to get this done. I need to mirror all partitions in software for a high reliability system.
Chris Mason www.anguillaguide.com Tel: (305) 704-7249 Fax: (815)301-9759
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Gerald Waugh Sent: Tuesday, April 26, 2005 7:42 AM To: CentOS mailing list Subject: Re: [CentOS] MIrrored drives won't boot after installation
On Monday 25 April 2005 22:25, Chris Mason wrote:
When you configure the drives as RAID1 the installer
never request
where to install the boot record. If configuring with one
drive (no
raid) the installer will ask where to install the record.
So how do I fix this? I really need to get a mirrored drive
system up
and running.
I guess you can install lilo manually after the install. There were several post about that. I use a ks.cfg file, that does the install with raid and lilo. Send me an email and I'll send my ks.cfg, if you like.
Gerald _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
_______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Tue, May 10, 2005 at 01:19:37PM +0100, Nigel Kendrick wrote:
I'm half way to resolving this (I hope) - I removed the second drive, I have installed Centos 4 on the remaining one and NOW I want to create a RAID 1 mirror for at least the / partition - is there a good howto on this - I started searching via Google as soon as I discovered 'mkraid' wasn't there any more but I've found nothing so far. Failing that I guess I'll have to start all over again!?
you need to look at mdadm and probably change your partition type for / from ID=83 (Linux) to ID=fd (Linux raid autodetect)
assuming hda3 is your / and hdc is an identical disk sfdisk -d /dev/hda > hda.part sfdisk /dev/hdc < hda.part
mdadm -C /dev/md0 --level=raid1 --disks=2 /dev/hda3 /dev/hdc3
change your /etc/fstab and re-create the initrd.
I don't think you can do it on a live system, so you migh need to do it from a rescue session (linux rescue from the CD1) but ymmv.
good luck
Tru
Chris Mason wrote:
So how do I fix this? I really need to get a mirrored drive system up and running.
I've made several posts on how to do this to Fedora mailing list, and who knows maybe even this list (not sure, but for Fedora I'm preatty sure). They are a bit longer, so instead of me retyping it, you might search Fedora mailing lists archives.
why not just cut and paste and post....
rather than pushing users to other lists, after all answering a question with a question is not much use to anyone is it? ;-)
Aleksandar Milivojevic wrote:
Chris Mason wrote:
So how do I fix this? I really need to get a mirrored drive system up and running.
I've made several posts on how to do this to Fedora mailing list, and who knows maybe even this list (not sure, but for Fedora I'm preatty sure). They are a bit longer, so instead of me retyping it, you might search Fedora mailing lists archives.
Peter Farrow wrote:
why not just cut and paste and post....
rather than pushing users to other lists, after all answering a question with a question is not much use to anyone is it? ;-)
Because mailing list archives are much better organized than my "Sent" folders. Plus, they are Google searchable. Typing "milivojevic grub" into Google led to this page in two clicks of the mouse:
https://www.redhat.com/archives/fedora-list/2005-March/msg05935.html
Would take me waaaay longer to dig it out of my hopelessly unorganized Sent folders.
So there you have it. Solution on the plate. After you manage to dig your way through my hopeless English grammar.