1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-26 03:22:12 +03:00
lvm2/scripts/lvm2create_initrd
Zdenek Kabelac fcbef05aae doc: change fsf address
Hmm rpmlint suggest fsf is using a different address these days,
so lets keep it up-to-date
2016-01-21 12:11:37 +01:00
..
.gitignore Add .gitignore files for an in-source-tree build. 2012-06-08 16:26:21 +01:00
lvm2create_initrd doc: change fsf address 2016-01-21 12:11:37 +01:00
lvm2create_initrd.8 Move gentoo MAKEDEV to /sbin in lvm2create_initrd. (James Le Cuirot) 2011-11-12 17:03:53 +00:00
lvm2create_initrd.pod Move gentoo MAKEDEV to /sbin in lvm2create_initrd. (James Le Cuirot) 2011-11-12 17:03:53 +00:00
lvm2udev lvm2create_initrd submitted by Jeff Layton <jtlayton@poochiereds.net> 2004-06-07 16:20:05 +00:00
Makefile lvm2create_initrd submitted by Jeff Layton <jtlayton@poochiereds.net> 2004-06-07 16:20:05 +00:00
README lvm2create_initrd submitted by Jeff Layton <jtlayton@poochiereds.net> 2004-06-07 16:20:05 +00:00

http://poochiereds.net/svn/lvm2/

This is the lvm2create_initrd script written by Miguel Cabeca, with some small
modifications by myself.

Here are some other requirements and tips for using it:

1) this script uses busybox on the initrd image, hence busybox needs to be
installed when you create your initrd.

2) Make sure /etc/lvm/lvm.conf is set up correctly before running this. In
particular, if you're using LVM on RAID, make sure that you have a filter that
excludes the RAID component devices (this may not be necessary with the latest
patch by Luca Berra, but it doesn't hurt).

3) This initrd image does not support modules. If you need to plug in any
kernel modules during the initrd phase, then you'll need to hand-modify the
image.

4) The generated initrd image supports an 'lvm2rescue' mode as well. If you add
the parameter 'lvmrescue' on the kernel command line, it will run a shell at
the end of the initrd 'init' script. This can be helpful when trying to fix a
corrupt root volume or root LVM2 volume group.

5) No userspace md tools are installed, so if you're using LVM on RAID, then
you'll probably want to mark your RAID partitions as type 'fd' so that the
kernel will start them automagically (or hand-modify the image).

6) I'm not sure if devfs will work with this or not. udev, however does work,
and is recommended. Because the dm-* devices use dynamically allocated major
and minor numbers, kernel upgrades and the like can renumber your devices. To
fix this, you need to run a 'vgscan --mknodes' prior to fscking and mounting
your rootfs. Doing this with a static /dev creates a problem though -- you
will be modifying the root filesystem before it has been fsck'ed. udev gets
around this by mounting a ramdisk over /dev, but you'll probably need to add
a startup script that creates devices in /dev. The lvm2udev script in this
directory is an example of such a beast.

--
Jeffrey Layton <jtlayton@poochiereds.net>