Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Administering a System: Managing Disks and Files
Managing Disks
Chapter 6570
Naming Logical Volumes
Logical volumes are identified by their device file names which can either
be assigned by you or assigned by default when you create a logical
volume using lvcreate (1M).
When assigned by you, you can choose whatever name you wish up to
255 characters.
When assigned by default, these names take the form:
/dev/vgnn/lvolN (the block device file form) and /dev/vgnn/rlvolN
(the character device file form). The number N starts at 1 and proceeds 2,
3, and so on, in the order that logical volumes are created within each
volume group.
When LVM creates a logical volume, it creates both block and character
device files. LVM then places the device files for a logical volume in the
appropriate volume group directory.
For example, the default block name for the first logical volume created
in volume group vg01 would have the full path name:
/dev/vg01/lvol1
If you create a logical volume to contain raw data for a sales database,
you might want to name it using a nondefault name:
/dev/vg01/sales_db_lv
After the logical volume in the above example has been created, it will
have two device files:
/dev/vg01/sales_db_lv
block device file
/dev/vg01/rsales_db_lv
character, or raw, device file
Naming Physical Volume Groups
Physical volume groups are useful for mirroring and are discussed under
“Managing Mirrored File Systems” on page 627. The only naming
restriction in this case is that within a volume group, each physical
volume group must have its own unique name. For example, the volume
group /dev/vg02 might have two physical volume groups called
/dev/vg02/pvg1 and /dev/vg02/pvg2.