Jump To Close Expand all Collapse all Table of contents Logical Volume Manager Administration 1. Introduction Expand section "1. Introduction" Collapse section "1. Introduction" 1.1. Audience 1.2. Software Versions 1.3. Related Documentation 1.4. We Need Feedback! 2. The LVM Logical Volume Manager Expand section "2. The LVM Logical Volume Manager" Collapse section "2. The LVM Logical Volume Manager" 2.1. New and Changed Features Expand section "2.1. New and Changed Features" Collapse section "2.1. New and Changed Features" 2.1.1. New and Changed Features for Red Hat Enterprise Linux 6.0 2.1.2. New and Changed Features for Red Hat Enterprise Linux 6.1 2.1.3. New and Changed Features for Red Hat Enterprise Linux 6.2 2.1.4. New and Changed Features for Red Hat Enterprise Linux 6.3 2.1.5. New and Changed Features for Red Hat Enterprise Linux 6.4 2.1.6. New and Changed Features for Red Hat Enterprise Linux 6.5 2.1.7. New and Changed Features for Red Hat Enterprise Linux 6.6 2.1.8. New and Changed Features for Red Hat Enterprise Linux 6.7 2.1.9. New and Changed Features for Red Hat Enterprise Linux 6.8 2.2. Logical Volumes 2.3. LVM Architecture Overview 2.4. The Clustered Logical Volume Manager (CLVM) 2.5. Document Overview 3. LVM Components Expand section "3. LVM Components" Collapse section "3. LVM Components" 3.1. Physical Volumes Expand section "3.1. Physical Volumes" Collapse section "3.1. Physical Volumes" 3.1.1. LVM Physical Volume Layout 3.1.2. Multiple Partitions on a Disk 3.2. Volume Groups 3.3. LVM Logical Volumes Expand section "3.3. LVM Logical Volumes" Collapse section "3.3. LVM Logical Volumes" 3.3.1. Linear Volumes 3.3.2. Striped Logical Volumes 3.3.3. Mirrored Logical Volumes 3.3.4. RAID Logical Volumes 3.3.5. Thinly-Provisioned Logical Volumes (Thin Volumes) 3.3.6. Snapshot Volumes 3.3.7. Thinly-Provisioned Snapshot Volumes 3.3.8. Cache Volumes 4. LVM Administration Overview Expand section "4. LVM Administration Overview" Collapse section "4. LVM Administration Overview" 4.1. Creating LVM Volumes in a Cluster 4.2. Logical Volume Creation Overview 4.3. Growing a File System on a Logical Volume 4.4. Logical Volume Backup 4.5. Logging 4.6. The Metadata Daemon (lvmetad) 4.7. Displaying LVM Information with the lvm Command 5. LVM Administration with CLI Commands Expand section "5. LVM Administration with CLI Commands" Collapse section "5. LVM Administration with CLI Commands" 5.1. Using CLI Commands 5.2. Physical Volume Administration Expand section "5.2. Physical Volume Administration" Collapse section "5.2. Physical Volume Administration" 5.2.1. Creating Physical Volumes Expand section "5.2.1. Creating Physical Volumes" Collapse section "5.2.1. Creating Physical Volumes" 5.2.1.1. Setting the Partition Type 5.2.1.2. Initializing Physical Volumes 5.2.1.3. Scanning for Block Devices 5.2.2. Displaying Physical Volumes 5.2.3. Preventing Allocation on a Physical Volume 5.2.4. Resizing a Physical Volume 5.2.5. Removing Physical Volumes 5.3. Volume Group Administration Expand section "5.3. Volume Group Administration" Collapse section "5.3. Volume Group Administration" 5.3.1. Creating Volume Groups 5.3.2. LVM Allocation 5.3.3. Creating Volume Groups in a Cluster 5.3.4. Adding Physical Volumes to a Volume Group 5.3.5. Displaying Volume Groups 5.3.6. Scanning Disks for Volume Groups to Build the Cache File 5.3.7. Removing Physical Volumes from a Volume Group 5.3.8. Changing the Parameters of a Volume Group 5.3.9. Activating and Deactivating Volume Groups 5.3.10. Removing Volume Groups 5.3.11. Splitting a Volume Group 5.3.12. Combining Volume Groups 5.3.13. Backing Up Volume Group Metadata 5.3.14. Renaming a Volume Group 5.3.15. Moving a Volume Group to Another System 5.3.16. Recreating a Volume Group Directory 5.4. Logical Volume Administration Expand section "5.4. Logical Volume Administration" Collapse section "5.4. Logical Volume Administration" 5.4.1. Creating Linear Logical Volumes 5.4.2. Creating Striped Volumes 5.4.3. Creating Mirrored Volumes Expand section "5.4.3. Creating Mirrored Volumes" Collapse section "5.4.3. Creating Mirrored Volumes" 5.4.3.1. Mirrored Logical Volume Failure Policy 5.4.3.2. Splitting Off a Redundant Image of a Mirrored Logical Volume 5.4.3.3. Repairing a Mirrored Logical Device 5.4.3.4. Changing Mirrored Volume Configuration 5.4.4. Creating Thinly-Provisioned Logical Volumes 5.4.5. Creating Snapshot Volumes 5.4.6. Creating Thinly-Provisioned Snapshot Volumes 5.4.7. Creating LVM Cache Logical Volumes 5.4.8. Merging Snapshot Volumes 5.4.9. Persistent Device Numbers 5.4.10. Changing the Parameters of a Logical Volume Group 5.4.11. Renaming Logical Volumes 5.4.12. Removing Logical Volumes 5.4.13. Displaying Logical Volumes 5.4.14. Growing Logical Volumes Expand section "5.4.14. Growing Logical Volumes" Collapse section "5.4.14. Growing Logical Volumes" 5.4.14.1. Extending a Striped Volume 5.4.14.2. Extending a Mirrored Volume 5.4.14.3. Extending a Logical Volume with the cling Allocation Policy 5.4.15. Shrinking Logical Volumes 5.4.16. RAID Logical Volumes Expand section "5.4.16. RAID Logical Volumes" Collapse section "5.4.16. RAID Logical Volumes" 5.4.16.1. Creating a RAID Logical Volume 5.4.16.2. Converting a Linear Device to a RAID Device 5.4.16.3. Converting an LVM RAID1 Logical Volume to an LVM Linear Logical Volume 5.4.16.4. Converting a Mirrored LVM Device to a RAID1 Device 5.4.16.5. Changing the Number of Images in an Existing RAID1 Device 5.4.16.6. Splitting off a RAID Image as a Separate Logical Volume 5.4.16.7. Splitting and Merging a RAID Image 5.4.16.8. Setting a RAID fault policy Expand section "5.4.16.8. Setting a RAID fault policy" Collapse section "5.4.16.8. Setting a RAID fault policy" 5.4.16.8.1. The allocate RAID Fault Policy 5.4.16.8.2. The warn RAID Fault Policy 5.4.16.9. Replacing a RAID device 5.4.16.10. Scrubbing a RAID Logical Volume 5.4.16.11. Controlling I/O Operations on a RAID1 Logical Volume 5.4.17. Controlling Logical Volume Activation 5.5. Controlling LVM Device Scans with Filters 5.6. Online Data Relocation 5.7. Activating Logical Volumes on Individual Nodes in a Cluster 5.8. Customized Reporting for LVM Expand section "5.8. Customized Reporting for LVM" Collapse section "5.8. Customized Reporting for LVM" 5.8.1. Format Control 5.8.2. Object Selection 5.8.3. Sorting LVM Reports 5.8.4. Specifying Units 6. LVM Configuration Examples Expand section "6. LVM Configuration Examples" Collapse section "6. LVM Configuration Examples" 6.1. Creating an LVM Logical Volume on Three Disks Expand section "6.1. Creating an LVM Logical Volume on Three Disks" Collapse section "6.1. Creating an LVM Logical Volume on Three Disks" 6.1.1. Creating the Physical Volumes 6.1.2. Creating the Volume Group 6.1.3. Creating the Logical Volume 6.1.4. Creating the File System 6.2. Creating a Striped Logical Volume Expand section "6.2. Creating a Striped Logical Volume" Collapse section "6.2. Creating a Striped Logical Volume" 6.2.1. Creating the Physical Volumes 6.2.2. Creating the Volume Group 6.2.3. Creating the Logical Volume 6.2.4. Creating the File System 6.3. Splitting a Volume Group Expand section "6.3. Splitting a Volume Group" Collapse section "6.3. Splitting a Volume Group" 6.3.1. Determining Free Space 6.3.2. Moving the Data 6.3.3. Splitting the Volume Group 6.3.4. Creating the New Logical Volume 6.3.5. Making a File System and Mounting the New Logical Volume 6.3.6. Activating and Mounting the Original Logical Volume 6.4. Removing a Disk from a Logical Volume Expand section "6.4. Removing a Disk from a Logical Volume" Collapse section "6.4. Removing a Disk from a Logical Volume" 6.4.1. Moving Extents to Existing Physical Volumes 6.4.2. Moving Extents to a New Disk Expand section "6.4.2. Moving Extents to a New Disk" Collapse section "6.4.2. Moving Extents to a New Disk" 6.4.2.1. Creating the New Physical Volume 6.4.2.2. Adding the New Physical Volume to the Volume Group 6.4.2.3. Moving the Data 6.4.2.4. Removing the Old Physical Volume from the Volume Group 6.5. Creating a Mirrored LVM Logical Volume in a Cluster 7. LVM Troubleshooting Expand section "7. LVM Troubleshooting" Collapse section "7. LVM Troubleshooting" 7.1. Troubleshooting Diagnostics 7.2. Displaying Information on Failed Devices 7.3. Recovering from LVM Mirror Failure 7.4. Recovering Physical Volume Metadata 7.5. Replacing a Missing Physical Volume 7.6. Removing Lost Physical Volumes from a Volume Group 7.7. Insufficient Free Extents for a Logical Volume 7.8. Duplicate PV Warnings for Multipathed Devices Expand section "7.8. Duplicate PV Warnings for Multipathed Devices" Collapse section "7.8. Duplicate PV Warnings for Multipathed Devices" 7.8.1. Root Cause of Duplicate PV Warning 7.8.2. Duplicate Warnings for Single Paths 7.8.3. Duplicate Warnings for Multipath Maps 8. LVM Administration with the LVM GUI A. The Device Mapper Expand section "A. The Device Mapper" Collapse section "A. The Device Mapper" A.1. Device Table Mappings Expand section "A.1. Device Table Mappings" Collapse section "A.1. Device Table Mappings" A.1.1. The linear Mapping Target A.1.2. The striped Mapping Target A.1.3. The mirror Mapping Target A.1.4. The snapshot and snapshot-origin Mapping Targets A.1.5. The error Mapping Target A.1.6. The zero Mapping Target A.1.7. The multipath Mapping Target A.1.8. The crypt Mapping Target A.1.9. The device-mapper RAID Mapping Target A.1.10. The thin and thin-pool Mapping Targets A.2. The dmsetup Command Expand section "A.2. The dmsetup Command" Collapse section "A.2. The dmsetup Command" A.2.1. The dmsetup info Command A.2.2. The dmsetup ls Command A.2.3. The dmsetup status Command A.2.4. The dmsetup deps Command A.3. Device Mapper Support for the udev Device Manager Expand section "A.3. Device Mapper Support for the udev Device Manager" Collapse section "A.3. Device Mapper Support for the udev Device Manager" A.3.1. udev Integration with the Device Mapper A.3.2. Commands and Interfaces that Support udev B. The LVM Configuration Files Expand section "B. The LVM Configuration Files" Collapse section "B. The LVM Configuration Files" B.1. The LVM Configuration Files B.2. The lvmconfig Command B.3. LVM Profiles B.4. Sample lvm.conf File C. LVM Selection Criteria Expand section "C. LVM Selection Criteria" Collapse section "C. LVM Selection Criteria" C.1. Selection Criteria Field Types C.2. Selection Criteria Operators C.3. Selection Criteria Fields Expand section "C.3. Selection Criteria Fields" Collapse section "C.3. Selection Criteria Fields" C.3.1. Specifying Time Values Expand section "C.3.1. Specifying Time Values" Collapse section "C.3.1. Specifying Time Values" C.3.1.1. Standard time selection format C.3.1.2. Freeform time selection format C.4. Selection Criteria Display Examples C.5. Selection Criteria Processing Examples D. LVM Object Tags Expand section "D. LVM Object Tags" Collapse section "D. LVM Object Tags" D.1. Adding and Removing Object Tags D.2. Host Tags D.3. Controlling Activation with Tags E. LVM Volume Group Metadata Expand section "E. LVM Volume Group Metadata" Collapse section "E. LVM Volume Group Metadata" E.1. The Physical Volume Label E.2. Metadata Contents E.3. Sample Metadata F. Revision History Index Legal Notice Settings Close Language: English Español Русский Português 한국어 日本語 Italian Deutsch Français 繁體中文 Language: English Español Русский Português 한국어 日本語 Italian Deutsch Français 繁體中文 Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: English Español Русский Português 한국어 日本語 Italian Deutsch Français 繁體中文 Language: English Español Русский Português 한국어 日本語 Italian Deutsch Français 繁體中文 Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Red Hat Training A Red Hat training course is available for Red Hat Enterprise Linux 5.2.4. Resizing a Physical Volume If you need to change the size of an underlying block device for any reason, use the pvresize command to update LVM with the new size. You can execute this command while LVM is using the physical volume. Previous Next