Creating Logical Volumes

Adaptive Server supports the fencing of logical volumes and partitions.

See your AIX documentation from IBM for details on these commands.

Note: You must create a volume group from a single logical unit number (LUN). However:
  • Do not make database devices using LUNs (/dev/rhdisk#) that support existing volume groups and logical volumes.
  • Do not make volume groups or logical volumes using any LUNs that are currently used as database devices.
  1. Create a volume group on one node using the AIX mkvg command:
    mkvg -y volume_group_name hdisk#
    For example: mkvg -y myvolgroup hdisk5
  2. Create a logical volume on one node:
    mklv -y logical_volume_name volume_group_name size
    For example: mklv -y mylogicalvol myvolgroup 100M
  3. Clear any disk reservations:
    /opt/rsct/vsd/bin/prClear hdisk
    For example: /opt/rsct/vsd/bin/prClear hdisk5
  4. Import the volume groups on the other nodes to align the logical volumes on each node, then configure the logical volume to be created automatically when imported:
    chdev -l hdisk -a pv=yes
    importvg -y volume_group_name hdisk
    For example:
    chdev -l hdisk5 -a pv=yes
    importvg -y myvolgroup hdisk5
  5. Give read and write permission to the logical volume:
    chmod 666 /dev/rlogical_volume_name
    For example: chmod 666 /dev/rmylogicalvol