HP-UX System Administrator's Guide: Logical Volume Management (762803-001, March 2014)
Contents
HP secure development lifecycle......................................................................9
1 Introduction.............................................................................................11
1.1 LVM features.....................................................................................................................11
1.2 LVM architecture...............................................................................................................12
1.3 Physical versus logical extents.............................................................................................13
1.4 LVM volume group versions................................................................................................14
1.5 LVM device file usage........................................................................................................15
1.5.1 Legacy device files versus persistent device files..............................................................16
1.5.2 Cluster-wide Device Special Files..................................................................................16
1.5.3 Naming Conventions for LVM......................................................................................17
1.5.4 Device Number Format...............................................................................................18
1.5.4.1 Version 1.0 Device Number Format.......................................................................19
1.5.4.2 Version 2.x Device Number Format......................................................................19
1.6 LVM Disk Layout................................................................................................................19
1.6.1 Boot Data Reserved Area............................................................................................19
1.6.2 Logical Interface Format Area......................................................................................20
1.6.3 Physical Volume Reserved Area...................................................................................20
1.6.4 Volume Group Reserved Area.....................................................................................20
1.6.5 User Data Area.........................................................................................................21
1.7 LVM Limitations.................................................................................................................21
1.8 Shared LVM.....................................................................................................................21
2 Configuring LVM......................................................................................23
2.1 Planning Your LVM Configuration........................................................................................23
2.2 Setting Up Different Types of Logical Volumes.......................................................................23
2.2.1 Setting Up Logical Volumes for Raw Data Storage..........................................................23
2.2.2 Setting Up Logical Volumes for File Systems..................................................................24
2.2.2.1 File System Logical Volume Guidelines..................................................................25
2.2.3 Setting Up Logical Volumes for Swap...........................................................................25
2.2.3.1 Swap Logical Volume Guidelines..........................................................................26
2.2.4 Setting Up Logical Volumes for Dump...........................................................................26
2.2.4.1 Dump Logical Volume Guidelines.........................................................................26
2.2.5 Setting Up Snapshot Logical Volumes for Backup...........................................................26
2.3 Planning for Availability.....................................................................................................27
2.3.1 Increasing Data Availability Through Mirroring..............................................................27
2.3.1.1 Mirror Write Behavior Control...............................................................................27
2.3.1.1.1 Allocation Policy...........................................................................................27
2.3.1.1.2 Scheduling Policy.........................................................................................28
2.3.1.1.3 Synchronization Policy...................................................................................28
2.3.1.2 Synchronizing a Mirrored Logical Volume..............................................................29
2.3.2 Increasing Disk Redundancy Through Disk Sparing........................................................30
2.3.3 Increasing Hardware Path Redundancy Through Multipathing..........................................31
2.3.3.1 Setting Up Multipathing to a Physical Volume (LVM PVlinks).....................................31
2.4 Planning for Performance...................................................................................................32
2.4.1 General Performance Factors.......................................................................................32
2.4.1.1 Memory Usage...................................................................................................32
2.4.1.2 CPU Usage........................................................................................................32
2.4.1.3 Disk Space Usage..............................................................................................32
Contents 3