Logical Volume Manager Installation                                 30/01/1999


Installing this package will create various files in /sbin, /usr/man/man8
and an optional shared library in /lib.

You have to patch your kernel with the corresponding patch from the
subdirectory kernel-patches of this distribution.


1. Change to LVM/0.5alpha/

2. Edit make.tmpl and change the TOP macro to the directory
   you untared LVM too

3. On SMP systems uncomment "MAKEFLAGS = -j2" in make.tmpl and set
   the number of your cpus.
   If you decide to link with the LVM archive library,
   change tools/Makefile corresponding (see comment "Link decision")

   Do a "make"

4. Do a "make install"

5. Choose the corresponding patch and patch the kernel by

      gzip -dc kernel-patches/lvm-*.*.*-LVM.gz | ( cd /usr/src/linux; patch -p1)

   If the patches in this distribution don't fit please
   have a look at <http://msede.com/lvm> for the newest ones.

6. cd to /usr/src/linux and configure LVM and loadable module support
   if you like to load it as a module (see /usr/src/linux/README for
   instructions) by "make config/menuconfig/xconfig" (whatever you prefer)

7. Build a new kernel

8. Omit this step if you choosed yes for LVM instead of module in "make config".

   Put an "insmod lvm" into your startup script OR extend /etc/conf.modules by

      alias block-major-58      lvm 
      alias char-major-109      lvm

   to enable modprobe load the LVM module (enable kerneld/kmod).

9. Add a "vgscan" and a "vgchange -a y" to your startup files
   (/sbin/init.d/boot with SuSE for eg.) so that the actual volume
   group configuration is online after each reboot.

   Put a "vgchange -a n" into your shutdown script (/sbin/init.d/halt for eg.)
   after dismounting all filesystems.

10. Please keep in mind to have a lilo.conf, which is configured to boot
    the former kernel in case of an emergency!

    Reboot your machine.

11. read the ascii file LVM-HOWTO to go ahead using the LVM
    and read the manuals.

    Please start with lvm(8).




If you like to remove the LVM software.

1. change directory to LVM/0.5alpha

2. do a "make remove"

3. save your /usr/src/linux/.config

4. delete and reinstall the kernel source tree

5. restore /usr/src/linux/.config

6. change directory to /usr/src/linux

7. make oldconfig

8. rebuild the kernel and reboot

