AIX Logical Volume and Disk Management Commands

Quick Commands:

lslv <logical volume> [-l,
m]

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

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
vg.
The -l option will list the logical volumes in the volume group.

lsvpcfg
      
      Lists each vpath and the hdisks
that make up the vpath

exportvg <volume
group>

      
      removes a volume group from a
machine

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
a
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
mirrored

  • 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.