-LVM2 installation
-=================
+Installation
+============
-1) Install device-mapper
+1) Generate custom makefiles.
- Ensure the device-mapper has been installed on the machine.
-
- The device-mapper should be in the kernel (look for 'device-mapper'
- messages in the kernel logs) and /usr/include/libdevmapper.h should
- be present.
-
- The device-mapper is available from:
- ftp://ftp.sistina.com/pub/LVM2/device-mapper/
+ Run the 'configure' script from the top directory.
+ If you don't want to include the LVM1 backwards-compatibility code use:
+ ./configure --with-lvm1=none
-2) Generate custom makefiles.
+ To separate the LVM1 support into a shared library loaded by lvm.conf use:
+ ./configure --with-lvm1=shared
- Run the 'configure' script from the top directory.
+ Use ./configure --help to see other options.
- If you do not have GNU readline (http://www.gnu.org/directory/readline.html)
- installed use
- ./configure --disable-readline
+2) Build and install.
+ Run 'make' from the top directory to build everything you configured.
+ Run 'make install' to build and install everything you configured.
-3) Build and install LVM2.
+ If you only want the device-mapper libraries and tools use
+ 'make device-mapper' or 'make install_device-mapper'.
- Run 'make install' from the top directory.
+3) If using LVM2, create a configuration file.
+ The tools will work fine without a configuration file being
+ present, but you ought to review the example file in doc/example.conf.
-4) Create a configuration file
+Please also refer to the WHATS_NEW file and the manual pages for the
+individual commands.