Installation guide

Logical Volume Manager Administration
iv
4.3.9. Removing Volume Groups ................................................................................ 30
4.3.10. Splitting a Volume Group ............................................................................... 30
4.3.11. Combining Volume Groups ............................................................................. 30
4.3.12. Backing Up Volume Group Metadata .............................................................. 31
4.3.13. Renaming a Volume Group ............................................................................ 31
4.3.14. Moving a Volume Group to Another System .................................................... 31
4.3.15. Recreating a Volume Group Directory ............................................................. 32
4.4. Logical Volume Administration ..................................................................................... 32
4.4.1. Creating Linear Logical Volumes ...................................................................... 32
4.4.2. Creating Striped Volumes ................................................................................. 34
4.4.3. Creating Mirrored Volumes ............................................................................... 34
4.4.4. Creating Snapshot Volumes ............................................................................. 39
4.4.5. Merging Snapshot Volumes .............................................................................. 41
4.4.6. Persistent Device Numbers .............................................................................. 41
4.4.7. Resizing Logical Volumes ................................................................................ 42
4.4.8. Changing the Parameters of a Logical Volume Group ........................................ 42
4.4.9. Renaming Logical Volumes .............................................................................. 42
4.4.10. Removing Logical Volumes ............................................................................ 42
4.4.11. Displaying Logical Volumes ............................................................................ 43
4.4.12. Growing Logical Volumes ............................................................................... 43
4.4.13. Shrinking Logical Volumes .............................................................................. 47
4.5. Controlling LVM Device Scans with Filters ................................................................... 47
4.6. Online Data Relocation ............................................................................................... 48
4.7. Activating Logical Volumes on Individual Nodes in a Cluster .......................................... 49
4.8. Customized Reporting for LVM .................................................................................... 49
4.8.1. Format Control ................................................................................................ 49
4.8.2. Object Selection .............................................................................................. 51
4.8.3. Sorting LVM Reports ........................................................................................ 57
4.8.4. Specifying Units ............................................................................................... 57
5. LVM Configuration Examples 59
5.1. Creating an LVM Logical Volume on Three Disks ......................................................... 59
5.1.1. Creating the Physical Volumes ......................................................................... 59
5.1.2. Creating the Volume Group .............................................................................. 59
5.1.3. Creating the Logical Volume ............................................................................. 59
5.1.4. Creating the File System .................................................................................. 59
5.2. Creating a Striped Logical Volume .............................................................................. 60
5.2.1. Creating the Physical Volumes ......................................................................... 60
5.2.2. Creating the Volume Group .............................................................................. 60
5.2.3. Creating the Logical Volume ............................................................................. 61
5.2.4. Creating the File System .................................................................................. 61
5.3. Splitting a Volume Group ............................................................................................ 61
5.3.1. Determining Free Space .................................................................................. 62
5.3.2. Moving the Data .............................................................................................. 62
5.3.3. Splitting the Volume Group ............................................................................... 62
5.3.4. Creating the New Logical Volume ..................................................................... 63
5.3.5. Making a File System and Mounting the New Logical Volume ............................. 63
5.3.6. Activating and Mounting the Original Logical Volume .......................................... 63
5.4. Removing a Disk from a Logical Volume ..................................................................... 63
5.4.1. Moving Extents to Existing Physical Volumes .................................................... 64
5.4.2. Moving Extents to a New Disk .......................................................................... 64
5.5. Creating a Mirrored LVM Logical Volume in a Cluster ................................................... 66
6. LVM Troubleshooting 69
6.1. Troubleshooting Diagnostics ........................................................................................ 69