Jump to content

How to Create a Logical Volume Manager (LVM) Volume Group

  • PrintPrint

Information

This article explains how to create Logical Volume Manager (LVM) volume groups using the Command Line Interface (CLI). Other available methods include System Administration Manager (SAM) and System Management Homepage (SMH).
With the March 2008 release of HP-UX 11i v3 (11.31), a new LVM version 2.0 was included, that provides larger volume groups and physical volume support among another features. Current HP-UX 11i v3 releases also provided additional minor releases that increase the size of some of the supported components.
Only the required LVM commands are discussed. Is the responsibility of the system administrator to determine which physical volumes are available to create the volume group?

Details

LVM 1.0 volume group :
  1. Check the available minor numbers for the group device file:
    # ll /dev/*/group
  2. Create the directory where the volume group would be stored, and as a good practice, assign the permissions with the same command.
    # mkdir -m 755 /dev/<vgname>
  3. Create the device special file (dsf). Use the next available minor number.
    # mknod /dev/<vgname>/group c 64 0x##0000
  4. Create the volume group, adding at least one physical volume.
    # vgcreate /dev/<vgname> /dev/dsk/c#t#d# ...
NOTE: If all physical volumes were not included, use in the same command, it can be done using the vgextend command:# vgextend /dev/<vgname> /dev/dsk/c#t#d# ...
LVM 2.x volume group :
The 2.0 volume groups became available with the March 2008 release of HP-UX 11i v3 (11.31) and the 2.1 volume groups with the 11i v3 2008 september release. Prior to the March 2008 release, only version 1.0 volume groups were available.
Using 'Agile Device Special Files' to address the physical volumes is recommended.
  1. Check the available minor numbers for the group device file:
    # ll /dev/*/group
  2. Create the directory where the volume group would be stored, and as a good practice, assign the permissions with the same command.
    # mkdir -m 755 /dev/<vgname>
  3. Create the device special file (dsf). Use the next available minor number. On LVM 2.x volume groups, three HEX positions instead of two are use to set the minor number volume group ID.
    # mknod /dev/<vgname>/group c 128 0x###000
  4. Create the volume group, adding at least one physical volume.
    # vgcreate /dev/<vgname> /dev/disk/disk# ...
NOTE:If all physical volumes were not included, use in the same command, it can be done using the vgextend command:# vgextend /dev/<vgname> /dev/disk/disk# ...
Reference :
Click here to access the information on "HP Servers and Workstations: Managing Systems and Workgroups" at http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01920025/c01920025.pdf.
Click here to access the information on "HP-UX System Administrator's Guide: Logical Volume Management: HP-UX 11i Version 3" at http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02023734/c02023734.pdf.
Click here to access the information on "LVM Version 2.0 Volume Groups in HP-UX 11iv3" at http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c01919368/c01919368.pdf.

HP Support forums

Find solutions and collaborate with others on the HP Support Forum
HP.comHP on FacebookHP on TwitterHP on YouTubeHP on Linked InHP on FlickrHP on Google+