Copyright © 2002-2003 Sistina Software, Inc
Copyright © 2004-2005 Red Hat, Inc
Copyright © 2005-2006 Terrascale Technologies, Inc
Copyright © 2006 Rackable Systems, Inc
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, either expressed or implied. While every effort has been taken to ensure the accuracy of the information documented herein, the author(s)/editor(s)/maintainer(s)/contributor(s) assumes NO RESPONSIBILITY for any errors, or for any damages, direct or consequential, as a result of the use of the information documented herein.
| Revision History | ||
|---|---|---|
| Revision 0.19 | 2006-11-27 | ajl |
| Clarified full snapshot conditions in Section 8, “Snapshots” and Section 4.1, “Create the snapshot volume” and added a note about resizing the origin of a snapshot; Fixed Rackable copyright; Fixed e-mail address | ||
| Revision 0.18 | 2006-11-27 | ajl |
| Clarify whole disk usage in Section 1, “Initializing disks or disk partitions”; Updated copyright; Updated e-mail address | ||
| Revision 0.17 | 2005-10-03 | ajl |
| Added FAQ entry for max size of LVs in LVM2; Did some cleanup of "Recover physical volume metadata" section; Updated e-mail address | ||
| Revision 0.16 | 2005-07-15 | ajl |
| Added lvm2 boot-time scripts info; Added "Recover physical volume metadata" section - thanks to Maximilian Attems for the patch | ||
| Revision 0.15 | 2005-06-09 | ajl |
| Removed references to xfs_freeze - it is no longer needed; Updated snapshots subsection in Anatomy of LVM section; Added a couple entries to the LVM2 FAQ; Fixed a couple typos | ||
| Revision 0.14 | 2004-10-06 | ajl |
| Added reference to lvm2_createinitrd in source tree; Adjusted lvcreate example slightly; Added 'vgchange -ay' in 'Moving a volume group to another system' recipe | ||
| Revision 0.13 | 2004-08-16 | ajl |
| Clarify symlink farm description; Fix dm control device major number; Remove /boot from vg in small lvm setup example; Add notes about /boot and / on LVM; Remove outdated link; | ||
| Revision 0.12 | 2004-06-07 | ajl |
| Updated LVM2 FAQ entries | ||
| Revision 0.11 | 2004-05-03 | ajl |
| Updated LVM2 FAQ entries | ||
| Revision 0.10 | 2004-04-22 | ajl |
| removed -print0 from find command after receiving reports that it doesn't work | ||
| Revision 0.9 | 2004-04-16 | ajl |
| Added -print0 to find command before piping it to cpio; Changed vgimport command line for LVM 2; Added ext3 to the ext2 resize section; Updated FAQ; Updated Links section | ||
| Revision 0.8 | 2004-02-25 | ajl |
| Updated CVS locations and FTP links; Added section on extending a JFS filesystem; Fixed typos - Ran aspell against document | ||
| Revision 0.7 | 2004-02-16 | ajl |
| Updated to include LVM 2 and device mapper information; Updated email addresses; Updated copyright; Added FAQ section; Added document license; Updated to docbook 4.2 | ||
| Revision 0.6 | 2003-12-09 | ajl |
| Updated for LVM 1.0.8; fixed broken link; Clarified redhat init script section; | ||
| Revision 0.5 | 2003-02-10 | ajl |
| Updated Redhat initscript information for 7.0 and above; Added information on removing a partition table from a disk if pvcreate fails; Default PE size is 32MB now; Updated method for snapshotting under XFS. | ||
| Revision 0.4 | 2002-12-16 | ajl |
| Updated for LVM 1.0.6 | ||
| Revision 0.3 | 2002-09-16 | ajl |
| removed example pvmove from Command Operations section - we now just point to the more detailed recipe on pvmove that contains various warnings and such | ||
| Revision 0.2 | 2002-09-11 | ajl |
| Updated for LVM 1.0.5 and converted to DocBook XML 4.1.2. | ||
| Revision 0.1 | 2002-04-28 | gf |
| Initial conversion from Sistina's LaTeX source and import to tLDP in LinuxDoc format. | ||
Abstract
This document describes how to build, install, and configure LVM for Linux. A basic description of LVM is also included. This version of the HowTo is for LVM 2 with device-mapper, as well as LVM 1.0.8.
Table of Contents
- Introduction
- 1. What is LVM?
- 2. What is Logical Volume Management?
- 3. Anatomy of LVM
- 4. Frequently Asked Questions
- 5. Acquiring LVM
- 6. Building the kernel modules
- 7. LVM 1 Boot time scripts
- 8. LVM 2 Boot Time Scripts
- 9. Building LVM from the Source
- 10. Transitioning from previous versions of LVM to LVM 1.0.8
- 11. Common Tasks
- 1. Initializing disks or disk partitions
- 2. Creating a volume group
- 3. Activating a volume group
- 4. Removing a volume group
- 5. Adding physical volumes to a volume group
- 6. Removing physical volumes from a volume group
- 7. Creating a logical volume
- 8. Removing a logical volume
- 9. Extending a logical volume
- 10. Reducing a logical volume
- 11. Migrating data off of a physical volume
- 12. Disk partitioning
- 13. Recipes
- 1. Setting up LVM on three SCSI disks
- 2. Setting up LVM on three SCSI disks with striping
- 3. Add a new disk to a multi-disk SCSI system
- 4. Taking a Backup Using Snapshots
- 5. Removing an Old Disk
- 6. Moving a volume group to another system
- 7. Splitting a volume group
- 8. Converting a root filesystem to LVM 1
- 8.1. Boot single user
- 8.2. Run Parted
- 8.3. Reboot
- 8.4. Verify kernel config options
- 8.5. Adjust partition type
- 8.6. Set up LVM 1 for the new scheme
- 8.7. Create the Filesystem
- 8.8. Update /etc/fstab
- 8.9. Create an LVM 1 initial RAM disk
- 8.10. Update /etc/lilo.conf
- 8.11. Run LILO to write the new boot sector
- 8.12. Reboot to lvm
- 8.13. Add remainder of disk
- 9. Recover physical volume metadata
- A. Dangerous Operations
- B. Reporting Errors and Bugs
- C. Contact and Links
- D. GNU Free Documentation License
- 1. PREAMBLE
- 2. APPLICABILITY AND DEFINITIONS
- 3. VERBATIM COPYING
- 4. COPYING IN QUANTITY
- 5. MODIFICATIONS
- 6. COMBINING DOCUMENTS
- 7. COLLECTIONS OF DOCUMENTS
- 8. AGGREGATION WITH INDEPENDENT WORKS
- 9. TRANSLATION
- 10. TERMINATION
- 11. FUTURE REVISIONS OF THIS LICENSE
- 12. ADDENDUM: How to use this License for your documents