AIX Logical Volume and Disk Management Commands

Quick Commands:

lslv <logical volume> [-l,

      Lists information about the
logical volumes.  The -l option lists the disks in the logical

lspv <physical volume>
[-l, M, p]

      Lists the disks on the server,
including the physical volume will give details about that disk.
The -l option will list the details of how the filesystems are
distributed on the disk.

lsvg <volume group> [-l]
Lists the volume groups on the
server, including the volume group name will give details about that
The -l option will list the logical volumes in the volume group.

      Lists each vpath and the hdisks
that make up the vpath

exportvg <volume

      removes a volume group from a

extendvg <volume group>
<physical volume>

Adds a new physical volume to an
existing volume group

importvg -y <volume group>
<physical volume>

add a
volume group to another machine

reducevg <volume group>
<physical volume>

Removes a physical volume from
volume group

lsdev -C -c disk
lists available disks (and the hdisk#) on the server

lscfg -vl hdisk

Shows advanced information on a disk

rmdev -dl hdisk#

 remove a disk

Sample Procedures:

Check to see if  all of the
logical volumes in a volume group are

  • lsvg -l <vg_name>

Procedure to find disks/vpaths that
are unallocated

  • lspv|grep None
    • This will show pvs and whether they are asssociated with a
      volume group
    • Note:  For vpaths, the hdisks will show as none, but they
      may be allocated to a vpath – you must grep each hdisk with the lsvpcfg

Procedure to make a new lun available
to AIX

  • Allocate the new lun on the SAN
  • Run "cfgmgr"
  • Verify the new vpatch/hdisk by running "lsvpcfg"
    • There should be a new vpath and it should be available with no
      volume group – if not, rerun cfgmgr

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.