linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: Vishal Chourasia <vishalc@linux.ibm.com>,
	LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Trouble Booting Custom Kernel with QEMU: dracut-initqueue timeout waiting for /dev/sysvg/root
Date: Thu, 31 Aug 2023 12:14:17 +0200	[thread overview]
Message-ID: <e867cf2c-6860-4914-bf39-8c011503b592@gmail.com> (raw)
In-Reply-To: <675f9bba-4c0b-205d-83ff-431567a31fe5@linux.ibm.com>

Dne 31. 08. 23 v 0:40 Vishal Chourasia napsal(a):
> On 8/30/23 20:01, Zdenek Kabelac wrote:
>> Dne 30. 08. 23 v 8:40 Vishal Chourasia napsal(a):
>>> Hi All,
>>>
> # cat /proc/cmdline
> BOOT_IMAGE=(hd0,gpt2)/vmlinuz-6.4.7-200.fc38.x86_64
> root=/dev/mapper/sysvg-root ro console=tty1 console=ttyS0,115200n8
> rd.lvm.lv=sysvg/root
> 
> I have tried passing "root=/dev/mapper/sysvg-root rd.lvm.lv=sysvg/root"
> with the -append option and it hasn't worked either.
>>
>> dracut that needs to include lvm2 code and be able to activate such LV
>> prior switch to rootfs  (having somewhere inside  lvchange -ay
>> vgname/lvrootname)
> 1. How may I verify that dracut has included lvm2 code or not?
> 2. Which file in the dracut would contain
>     `lvchange -ay vgname/lvrootname` code?

Hi

If you are making ramdisk image from the system - dracut should autodetect 
such case and build the image with lvm2 support inside (unless you've 
instructed in dracut.conf to not doing so).

You can check if you dracut ramdisk image contains /usr/sbin/lvm
and also if dirs  in /usr/lib/dracut/hooks do have lvm2 scripts inside as well 
as /etc/lvm/lvm.conf.

Not really sure how are you trying to build this yourself since the Fedora 
anaconda installer should be doing all of this for you automatically - so how 
did you got to the point you don't get this from your installation time ?

Regards

Zdenek

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

  reply	other threads:[~2023-08-31 10:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-30  6:40 [linux-lvm] Trouble Booting Custom Kernel with QEMU: dracut-initqueue timeout waiting for /dev/sysvg/root Vishal Chourasia
2023-08-30 14:31 ` Zdenek Kabelac
2023-08-30 22:40   ` Vishal Chourasia
2023-08-31 10:14     ` Zdenek Kabelac [this message]
2023-09-07  7:30       ` Vishal Chourasia

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e867cf2c-6860-4914-bf39-8c011503b592@gmail.com \
    --to=zdenek.kabelac@gmail.com \
    --cc=linux-lvm@redhat.com \
    --cc=vishalc@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).