www.centos.org Forum Index CentOS 6 - Software Support single HDD LVM convert to RAID1 without LVM Problems
|
Bottom Previous Topic Next Topic |
|
| |
|
|
|---|
| Poster | Thread |
|---|
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6338
|
Make sure you have the latest version of dracut installed and, if you built your initrd with the older one, rebuild it. There's a bug in the 6.2 version of dracut that affects booting from RAID 1 with a missing device.
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/2 11:33
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #3 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
So I build the initrd with dracut instead of mkinitrd?
and this: Release : 256.el6_2.1 is the corrct version of dracut. (at least the last I get via yum) EDIT: here is the missing "e" |
||
Posted on: 2012/3/2 13:20
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #4 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Yes and yes.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/4 2:43
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2009/9/24
From Brighton, UK
Posts: 6338
|
There's still an /sbin/mkinitrd executable but it's a wrapper and calls dracut to do the work.
|
||
|
_________________
Linux/VoIP Systems Administrator |
|||
Posted on: 2012/3/4 2:47
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #6 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
There must be still a mistake in my way to do it...
-I have setup my RAID as stated above -I boot the existing LVm system from the first HDD -mount the RAID system: -update dracut -use rsync to copy the content of the LVm to the raid partitions: -chroot to the raidsystem: -use dracut to generate the initrd: -leave chroot -edit /mnt/etc/fstab to this: reboot Still "Grub error 17: cannot mount selected partition" So where is my mistake? Thanks |
||
Posted on: 2012/3/5 10:08
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #7 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
What's in /boot/grub/grub.conf on /dev/md0?
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/5 19:04
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #8 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
you mean this: ?
OK, thats not correct. But isn't that irrelevant, because I boot from the existing grub entry of the first HDD, which contains this:? Or didn't I get the mechanism of grub right? |
||
Posted on: 2012/3/6 8:49
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #9 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
or could it be that grub doesn't supports ext4 on md devices, while it supports ext4 on /dev/sda ?
|
||
Posted on: 2012/3/6 11:37
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #10 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
GRUB will boot from ext4 on software RAID1. I can't spot the problem but you will need to boot from the RAID to accomplish your goal. I'd fix the GRUB entry of /dev/md0, make it the first disk, and if still having problems, then read:
http://wiki.centos.org/TipsAndTricks/TroubleshootGRUB http://wiki.centos.org/TipsAndTricks/ReinstallGRUB |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/6 13:47
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #11 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
Here is what happens, when I try to install grub on the RAID hdd (second one)
md0 is bootable it has a ext4 filesystem (the same the first partition on /dev/sda1, which is boot on the running LVM) I tried sata mode "IDE" and "RAID" in the BIOS settings. |
||
Posted on: 2012/3/7 8:03
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #12 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
Either you or GRUB is confused about disk ordering. Please provide more information about your system by running "./getinfo.sh disk" as root and showing us the output file, as well as /boot./grub/device.map.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/7 12:16
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #13 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
you forgot one possibility:
grub AND I are confused... ouput of getinfo.sh: EDIT (forgot the disk option before, sorry) |
||
Posted on: 2012/3/7 12:55
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #14 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
Did I forget some information to include ?
|
||
Posted on: 2012/3/12 14:43
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #15 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
You might try adding "(hd1) /dev/sdb" to /boot/grub/device.map but I can't spot an error. Did you try debugging in GRUB per the Troubleshoot GRUB article?
I will do some testing of a RAID1 installation on VirtualBox when I get the chance. Edit: Testing did not yield any enlightenment. My results: |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/12 15:28
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #16 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
editing the device maps doesn't helped.
I still can't install grub into sdb MBR I tried to find a BIOS update for the (MSI) Mainboard, which is available.. if you have a Windows running on the computer. (which o means I'll never buy a MSI board again) So I think I'll go this way: "I was unable to boot from RAID-ed /boot partition, what ever I did. That is on CentOS 5.3 and 5.4. I disassembled boot RAID, set grub boot sector on both disks (RAID1), and I am now booting from only one disk, but other one is manualy replicated whenever I update kernel." (from here: http://www.linuxquestions.org/questions/red-hat-31/software-raid-using-mdadm-774294/) |
||
Posted on: 2012/3/13 8:06
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #17 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
The problem seems to be that GRUB does not recognize the filesystem on your /dev/sdb1 partition.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/13 14:52
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #18 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
What I did now is these:
both HHD, with this Part table: I reinstaled grub to both mbr: For testing I tried to start the system with one HDD not plugged in. But no matter which HDD is plugged in, I get a kernel Panic: Am I doing something wrong with the RAID? Di I have to tweak some RAID/ mount configs? |
||
Posted on: 2012/3/21 13:31
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #19 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
|
The /dev/sdb1 partition is being used in /dev/md0 and so should be type fd Linux raid autodetect as well.
|
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2012/3/21 14:10
|
|||
|
Re: single HDD LVM convert to RAID1 without LVM Problems | #20 |
|
|---|---|---|---|
|
Jr Board Member
![]()
Joined: 2012/1/23
From
Posts: 42
|
Oh my mistake.
Because /boot as md-device doesn't worked at al, I set up 2 seperate /boot partitions w/o RAID to get it working. I rsynced the content from one partition (/dev/sdb1) to the other (/dev/sda1), recraete the initramfs and reoinstaled grub in both mbr like discriped above. Booting with both HDDs works, booting a single HDD end in a kernel panic (no matter, which one is plugged in). The last lines before the Panic is a several repeaded line: which is most likely the error message, when linux doesn't finds the partition Plugging in bothe HDDs makes the system boot w/o errors. |
||
Posted on: 2012/3/21 15:08
|
|||
Top Previous Topic Next Topic |
|
|



Topic options
Print Topic
Threaded
Newest First
mclien




You cannot start a new topic.
You can view topic.