Creating A Mirrored Logical Volume; Extending A Logical Volume - HP -UX 11i Administrator's Manual

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

Advertisement

NOTE:
When you stripe across multiple disks, the striped volume size cannot exceed the capacity
of the smallest disk multiplied by the number of disks used in the striping.

Creating a Mirrored Logical Volume

To create a mirrored logical volume, use lvcreate with the -m option to select the number of
mirror copies. To control how the mirror copies are managed, choose from the following options:
-s y
-s n
-s g
-C y
-C n
-d p
-d s
-M y
-M n -c y
-M n -c n
For example, to create a 240 MB mirrored logical volume with one mirror copy, nonstrict allocation,
parallel scheduling, and no mirror resynchronization, enter the following command:
# lvcreate -m 1 -s n -d p -M n -c n -L 240 -n lvol1 /dev/vg01
TIP:
To change the characteristics of an existing mirrored logical volume, use the lvchange
command. It supports the -C, -c, -d, -M, and -s options. For more information, see lvchange(1M).

Extending a Logical Volume

NOTE:
Adding space to a logical volume does not automatically assign that space to the entity
using that logical volume. For example, if you want to add space to a file system contained in a
logical volume, you must run extendfs after extending the logical volume. See
File System Logical Volumes" (page 97)
for more information.
1.
Decide how much more disk space the logical volume needs.
For example, you can add 200 MB of swap space, or an existing project might need an
additional 1 GB.
2.
Find out if any space is available using the vgdisplay command. For example:
# vgdisplay vg00
--- Volume groups ---
VG Name
VG Write Access
VG Status
Max LV
Cur LV
Open LV
Max PV
Cur PV
Strict, Nonstrict, or PVG-strict Extent Allocation
Strict allocation (default)
Nonstrict allocation
PVG-strict allocation
Contiguous or Noncontiguous Extent Allocation
Contiguous allocation
Noncontiguous allocation (default)
Mirror Scheduling Policy
Parallel scheduling (default)
Sequential scheduling
Mirror Consistency Policy
MWC enable (default, optimal mirror resynchronization during crash recovery)
MCR enable (full mirror resynchronization during crash recovery)
MCR disable (no mirror resynchronization during crash recovery)
and
"Administering Swap Logical Volumes" (page 101)
/dev/vg00
read/write
available
255
8
8
16
1
"Administering
Common LVM Tasks
53

Advertisement

Table of Contents
loading

Table of Contents