LVM 0.8.1 Logical Volume Manager Installation 13/11/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 . 1. Change to LVM/ 2. Choose the corresponding patch from the PATCHES/ subdirectory or or one of the mirrors (replace asterisks below with those of the corresponding patches of your choice) and patch the kernel by cat linux-*.*.*-rawio.patch | ( cd /usr/src/linux; patch -p1) cat lvm-*.*-*.*.*.patch | ( cd /usr/src/linux; patch -p1) An example for patch-*.*.*-LVM-*.*.gz could be lvm-0.8final-2.2.16TL.patch An example for linux-*.*.*-rawio.patch could be linux-2.2.17-rawio.patch. 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.8.1/) and run ./configure 6. Run "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/ 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