HP XP7 Configuration Manual page 21

Hide thumbs Also See for XP7:
Table of Contents

Advertisement

Example
lvextend
L size /dev/vgnn/lvolx
lvreduce
Decreases the size of an existing logical volume. Any file system attached to the logical volume
must be unmounted before executing the lvreduce command.
Example
lvreduce
L size /dev/vgnn/lvolx
CAUTION:
Data within the file system can be lost after execution of lvreduce.
Create logical volumes after you create volume groups. A logical volume must be created for each
new SCSI disk device.
To create logical volumes:
1.
Use the lvcreate
Specify the volume size (in megabytes) and the volume group for the new logical volume.
HP-UX assigns the logical volume numbers automatically (lvol1, lvol2, lvol3). Use the following
capacity values for the size parameter:
OPEN-K = 1740
OPEN-3 = 2344
OPEN-8 = 7004
OPEN-9 = 7004
OPEN-E = 13888
OPEN-L = 34756
OPEN-V = 61432
To calculate S1 for CVS, LUSE, and CVS LUSE volumes, first use the vgdisplay command
to display the physical extent size (PE Size) and usable number of physical extents (Free PE)
for the volume. Calculate the maximum size value (in MB) as follows:
S1 = (PE Size) × (Free PE)
Logical volumes can span multiple physical volumes. Use the diskinfo command for extended
LUNs.
2.
Create an OPEN-3 logical volume the size of the physical volume, using 2344 for the size
parameter. An OPEN-9 volume uses 7040 for the size parameter to create a logical volume
the size of the physical volume.
Example
# lvcreate
L 2344 /dev/vg06
Logical volume "/dev/vg06/lvol1" has been successfully created with
character device "/dev/vg06/rlvol1".
Logical volume "/dev/vg06/lvol1" has been successfully extended.
Volume Group configuration for /dev/vg06 has been saved in
/etc/1vmconf/vg06.conf.
3.
Use the lvdisplay command to verify that the logical volume was created correctly.
Example
# lvdisplay /dev/vg06/lvol1
- - - Logical volume - - -
LV Name
VG Name
LV Permission
LV Status
Mirror copies
L command to create a logical volume.
/dev/vg06/lvol1
/dev/vg06
read/write
available/syncd
0
Configuring disk array devices
21

Advertisement

Table of Contents
loading

Table of Contents