Re: lvm over raid confusion



Jack Tanner wrote:

I think I may have just painted myself into a corner. Could someone who knows LVM and software RAID look this over?

I installed FC5 with the default partitioning settings (/boot + LVM partition containing LVs for / and /home) on /dev/hda. Then I added two more drives to the box, and did

# mdadm --create /dev/md0 -l raid1 -N 2 /dev/hdb /dev/hdc

Then I used system-config-lvm to join /dev/md0 to the existing volume group, and moved the extent containing /home to reside on /dev/md0. The idea was that I want my data on redundant disks, but I don't care about the OS itself, because that can be trivially reinstalled. Everything worked just fine.

Then I rebooted, and the kernel halted on boot ...
Redhat nash starting
Couldn't find device with uuid ...
Couldn't find all physical volumes for volume group VolGroup00

I can boot off a rescue CD, and do

# mdadm -A /dev/md0 /dev/hdb /dev/hdc
mdadm: /dev/md0 has been started with 2 drives

After that, I can see via lvm that all the VGs and LVs are there.

So it seems like /dev/md0 isn't getting assembled on boot up. I tried following the mdadm man page and had grub pass the kernel the parameter md=0,/dev/hdb,/dev/hdc , but that did absolutely nothing.

So, basically, I have two questions. First, how do I go about diagnosing this and getting the box to boot up right?

Second, am I being an idiot in the first place by making my VG contain a single drive with the OS and a software RAID1 array with /home? That is, if the non-redundant OS drive fails, will I still be able to plop the OS on a new drive, and join the RAID1 array (or even just one of the two drives in the array) to the new drive's VG?


Two things come to mind that could cause that:

1) First, for Software RAID I've always created a partition and set it to type fd rather than use the device itself.

2) If you create a RAID disk after installation, you need to create a initrd image (mkinitrd) that supports software RAID.

Hope this helps,
Daniel

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: RAIDING different size drives
    ... partition 1, 250G ... these two hard drives are only for data. ... You'd then be saying that it's a bad idea because recovery is hard. ... But if the setup is based on Windows software RAID, ...
    (comp.sys.ibm.pc.hardware.storage)
  • Re: USB memory keys -- the plot thickens
    ... it is NOT LVM aware, so can't work with LVM systems. ... I use USB thumb drives routinely between Windows XP and OS/2 and never have any problems using either FAT16 or FAT32 file systems. ... Once the drive has a good partition table (one written either by DFSee or LVM) and has been blessed by LVM, there's no problem formatting and using it on a W$ machine, as you have noted. ...
    (comp.os.os2.bugs)
  • Re: USB memory keys -- the plot thickens
    ... it is NOT LVM aware, so can't work with LVM systems. ... I use USB thumb drives routinely between Windows XP and OS/2 and never have any problems using either FAT16 or FAT32 file systems. ... Once the drive has a good partition table (one written either by DFSee or LVM) and has been blessed by LVM, there's no problem formatting and using it on a W$ machine, as you have noted. ...
    (comp.os.os2.bugs)
  • Re: Cannot mount old drive with LVM partition - help!
    ... I have an FC3 install on a 200Gb IDE hard disk. ... ext3 partition. ... partition layout and LVM for root file system. ... rearrange them at will to make the drives appear as I wish. ...
    (alt.os.linux)
  • Re: Safe to use PQ Partition Magic with LVM?
    ... an OS that doesn't understand LVM drive letters. ... moving the drives? ... I use an old production partition, ...
    (comp.os.os2.misc)