Re: "Can't find root device" with lvm root after moving drive on CentOS 6.3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Grub (in the menu) has the following commands:

root (hd0,1)

kernel /vmlinuz-2.6.32-279.el6.x86_64 ro 
root=/dev/mapper/vg_resolve02-lv_root rd_NO_LUKS LANG=en.US.UTF-8 
rd_NO_MD crashkernel=128M rd_LVM_LV=vg_resolve02/lv_root 
SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb 
quiet pcie_aspm=off

When I successfully booted manually, I removed "rhgb quiet" and added 
"rdshell" to that line.

To the best of my memory, that line is stock, I don't recall ever 
changing it permanently.

The names of the volume group and logical volume in that line correspond 
to my actual root device.

-- 
Joakim Ziegler  -  Supervisor de postproducción  -  Terminal
joakim@xxxxxxxxxxxxxx   -   044 55 2971 8514   -   5264 0864

On 22/03/13 21:33, Barry Brimer wrote:
>> When I booted the box after this, I got a kernel panic, the typical
>> "Can't find root device".
>
>> Reading https://fedoraproject.org/wiki/How_to_debug_Dracut_problems , I
>> did the following:
>>
>> # lvm vgscan
>> # lvm vgchange -ay
>>
>> And then
>>
>> # ln -s /dev/mapper/<volumegroup>-<root_volume> /dev/root
>> # exit
>>
>> After this, the box boots up normally, and everything works as it
>> should. However, when I reboot, it again fails to find the root device.
>>
>> So, after all this, my question is, how do I make Dracut (I'm assuming)
>> understand that this LVM volume is my root device and pick it up
>> automatically?
>
> What does your kernel line in grub look like?
>
> Barry
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux