linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] errors using mkinitrd: cannot stat lvm2/vgwrapper
@ 2006-05-16 15:54 George Nychis
  2006-07-10 18:34 ` Joe Harvell
  0 siblings, 1 reply; 2+ messages in thread
From: George Nychis @ 2006-05-16 15:54 UTC (permalink / raw)
  To: linux-lvm

Hi,

I am having trouble booting a 2.4.32 kernel with fedora core 3, I can
successfully boot the partition with 2.6.9

I built the 2.4.32 kernel with lvm support built in, and as a module,
and get the following errors when trying to mkinitrd:

cannot stat lvm2: No such file or directory
cannot stat /sbin/vgwrapper: No such file or directory

The initrd still gets created though, but I think these errors are the
sources of my problems.  /sbin/vgwrapper, as it says, does not exist

Any ideas how to fix these errors?

Thanks!
George

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] errors using mkinitrd: cannot stat lvm2/vgwrapper
  2006-05-16 15:54 [linux-lvm] errors using mkinitrd: cannot stat lvm2/vgwrapper George Nychis
@ 2006-07-10 18:34 ` Joe Harvell
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Harvell @ 2006-07-10 18:34 UTC (permalink / raw)
  To: LVM general discussion and development

The stock 2.4 kernel has LVM1 support only (not LVM2).  I'm not sure
about your RedHat kernel, but Gentoo has a 2.4 kernel with LVM2
backported.  If your volumes are LVM2 format then you can only read them
if you have LVM2 support in your kernel.  Even if you created the
volumes in an LVM2 system, they may still be LVM1 format.

If you do have LVM2 support in your kernel, you need to install the lvm2
tools and the device_mapper library  Then mkinitrd should find what it's
looking for.  Although it's strange that my LVM2 tools don't have any
file named lvm2 or vgwrapper.  Maybe these are added by RedHat and part
of the RedHat LVM2 package.

If your kernel only supports LVM1 and your volumes are in LVM1 format,
you need to generate an LVM1 based initrd.  Maybe mkinitrd has options
for this?

George Nychis wrote:
> Hi,
>
> I am having trouble booting a 2.4.32 kernel with fedora core 3, I can
> successfully boot the partition with 2.6.9
>
> I built the 2.4.32 kernel with lvm support built in, and as a module,
> and get the following errors when trying to mkinitrd:
>
> cannot stat lvm2: No such file or directory
> cannot stat /sbin/vgwrapper: No such file or directory
>
> The initrd still gets created though, but I think these errors are the
> sources of my problems.  /sbin/vgwrapper, as it says, does not exist
>
> Any ideas how to fix these errors?
>
> Thanks!
> George
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>   

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-10 18:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 15:54 [linux-lvm] errors using mkinitrd: cannot stat lvm2/vgwrapper George Nychis
2006-07-10 18:34 ` Joe Harvell

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).