Configuring Lvm; Planning Your Lvm Configuration; Setting Up Different Types Of Logical Volumes; Setting Up Logical Volumes For Raw Data Storage - HP -UX 11i Administrator's Manual

Logical volume management
Hide thumbs Also See for HP-UX 11i:
Table of Contents

Advertisement

2 Configuring LVM

By default, the LVM commands are already installed on your system. This chapter discusses issues
to consider when setting up your logical volumes. It addresses the following topics:
"Planning Your LVM Configuration" (page 20)
"Setting Up Different Types of Logical Volumes" (page 20)
"Planning for Availability" (page 24)
"Planning for Recovery" (page 34)
"Planning for Performance" (page 29)

Planning Your LVM Configuration

Using logical volumes requires some planning. Some of the issues to consider for planning purposes
are discussed in this chapter. Consider these issues before setting up or modifying logical volumes
on your system.
For what purpose will you use a logical volume? For raw data or a file system? As a swap
area or dump area? See
How big will you make a logical volume?
Does your data require high availability? If so, consider mirroring your logical volume across
multiple disks, as described in
Also consider setting up spare disks to handle mirror failure, as described in
Redundancy Through Disk Sparing" (page
Is I/O performance very important to you? If so, consider striping your logical volumes across
multiple disks, as described in
and separating I/O channels, as described in
Separation" (page
Performance" (page
Do you need to balance high availability and I/O performance? If so, consider striping and
mirroring your logical volume, as described in
(page 24)
Is it important to recover from disk failures quickly? If so, see

Setting Up Different Types of Logical Volumes

This section contains information on setting up special logical volumes.

Setting Up Logical Volumes for Raw Data Storage

You can optimize raw I/O performance by planning your logical volumes specifically for raw data
storage. To create a raw data logical volume (such as for a database), consider how large the
logical volume must be and how such a logical volume is distributed over your disks.
Typically, you specify the size of a logical volume in megabytes. However, a logical volume must
be a multiple of the extent size used in the volume group. For example, if a database partition
requires 2002 MB and the logical extent size is 4 MB, LVM creates a logical volume that is 2004
MB (or 501 logical extents).
If you plan to use logical volumes heavily for raw data storage (such as for setting up database
partitions), consider how the logical volumes are distributed over your disks.
By default, LVM assigns disk space for a logical volume from one physical volume, uses the space
on this physical volume entirely, then assigns space from each successive physical volume in the
same manner. LVM uses the physical volumes in the order in which they appear in /etc/lvmtab
20
Configuring LVM
"Setting Up Different Types of Logical Volumes" (page
"Increasing Data Availability Through Mirroring" (page
"Increasing Performance Through Disk Striping" (page
33). For additional recommendations for performance, read
29).
and
"Increasing Performance Through Disk Striping" (page
27).
"Increasing Performance Through I/O Channel
"Increasing Data Availability Through Mirroring"
"Planning for Recovery" (page
20).
24).
"Increasing Disk
31),
"Planning for
31).
34).

Advertisement

Table of Contents
loading

Table of Contents