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