Logical Volume Manager Installation                                 21/02/2000


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

If you don't have a stock kernel including LVM you have to patch your kernel
with the corresponding patch from <ftp://linux.msede.com/lvm/0.8final/>.


1. Change to LVM/0.8final/

2. If you don't have a kernel including the LVM driver, choose the
   corresponding patch from <ftp://linux.msede.com/lvm/v0.8final/>
   or one of the mirrors (replace asterixes below with those of the
   corresponding patch of your choice) and patch the kernel by

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

   An example for patch-*.*.*-LVM-*.*.gz could be patch-2.3.46-LVM-0.8final.gz

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

4. Build a new kernel

5. cd back to the LVM root (LVM/0.8final/), edit make.tmpl and change
   the TOP macro to the directory you untared LVM too

6. On SMP systems uncomment "MAKEFLAGS = -j2" in make.tmpl and change 2 too
   the number of your cpus (some guys prefer number of cpus # 1 ;-{).
   If you decide to link with the LVM archive library,
   change tools/Makefile corresponding (see comment "Link decision")

   Do a "make"

7. Do a "make install"

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

   Put an "insmod lvm-mod" into your startup script OR extend
   /etc/modules.conf (former /etc/conf.modules) by

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

   to enable modprobe to load the LVM module (don't forget to enable 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 previous 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 starting with lvm(8).




If you like to remove the LVM software.

1. change directory to LVM/0.8final

2. do a "make remove"

goto step 6 below if you have a stock kernel already containing the LVM driver

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

goto step 8 below if you have a stock kernel already containing the LVM driver

7. make oldconfig

continue with step 9

8. make (menu|x)config # deselect LVM here

9. rebuild the kernel and reboot