Cluster Logical Volume Manager
iv
4.3.10. Combining Volume Groups ............................................................................. 24
4.3.11. Backing Up Volume Group Metadata ............................................................... 24
4.3.12. Renaming a Volume Group ............................................................................ 25
4.3.13. Moving a Volume Group to Another System .................................................... 25
4.3.14. Recreating a Volume Group Directory ............................................................. 26
4.4. Logical Volume Administration ..................................................................................... 26
4.4.1. Creating Logical Volumes ................................................................................. 26
4.4.2. Persistent Device Numbers .............................................................................. 30
4.4.3. Resizing Logical Volumes ................................................................................ 30
4.4.4. Changing the Parameters of a Logical Volume Group ........................................ 31
4.4.5. Renaming Logical Volumes .............................................................................. 31
4.4.6. Removing Logical Volumes .............................................................................. 31
4.4.7. Displaying Logical Volumes .............................................................................. 32
4.4.8. Growing Logical Volumes ................................................................................. 32
4.4.9. Extending a Striped Volume ............................................................................. 33
4.4.10. Shrinking Logical Volumes .............................................................................. 35
4.5. Creating Snapshot Volumes ........................................................................................ 35
4.6. Controlling LVM Device Scans with Filters ................................................................... 36
4.7. Online Data Relocation ............................................................................................... 37
4.8. Activating Logical Volumes on Individual Nodes in a Cluster .......................................... 38
4.9. Customized Reporting for LVM .................................................................................... 38
4.9.1. Format Control ................................................................................................ 39
4.9.2. Object Selection .............................................................................................. 41
4.9.3. Sorting LVM Reports ........................................................................................ 47
4.9.4. Specifying Units ............................................................................................... 48
5. LVM Configuration Examples 51
5.1. Creating an LVM Logical Volume on Three Disks ......................................................... 51
5.1.1. Creating the Physical Volumes ......................................................................... 51
5.1.2. Creating the Volume Group .............................................................................. 51
5.1.3. Creating the Logical Volume ............................................................................. 51
5.1.4. Creating the File System .................................................................................. 52
5.2. Creating a Striped Logical Volume .............................................................................. 52
5.2.1. Creating the Physical Volumes ......................................................................... 52
5.2.2. Creating the Volume Group .............................................................................. 53
5.2.3. Creating the Logical Volume ............................................................................. 53
5.2.4. Creating the File System .................................................................................. 53
5.3. Splitting a Volume Group ............................................................................................ 54
5.3.1. Determining Free Space .................................................................................. 54
5.3.2. Moving the Data .............................................................................................. 54
5.3.3. Splitting the Volume Group ............................................................................... 55
5.3.4. Creating the New Logical Volume ..................................................................... 55
5.3.5. Making a File System and Mounting the New Logical Volume ............................. 55
5.3.6. Activating and Mounting the Original Logical Volume .......................................... 56
5.4. Removing a Disk from a Logical Volume ..................................................................... 56
5.4.1. Moving Extents to Existing Physical Volumes .................................................... 56
5.4.2. Moving Extents to a New Disk .......................................................................... 57
6. LVM Troubleshooting 61
6.1. Troubleshooting Diagnostics ........................................................................................ 61
6.2. Displaying Information on Failed Devices ..................................................................... 61
6.3. Recovering from LVM Mirror Failure ............................................................................ 62