Wednesday, August 31, 2011

VCS Linux LVM Resource using PowerPath as third party driver multipathing

If PowerPath is being used as multipathing software for VCS LVMVolumeGroup Resource, PowerPath Pseudo name must be used for PV creation and native OS path name must be filtered for LVM as shown in RED below. Otherwise, LVM will not failover properly for device path failure causing VCS LVM Service Group failing as well.

# more /etc/lvm/lvm.conf |grep filter |grep -v "#"
    filter = [ "r|^/dev/(sda)[0-9]*$|", "r|^/dev/(sda)[a-z]*$|", "r|^/dev/(sdc)[a-z]*$|", "r|/dev/vx/dmp/.*|", "r|/dev/block/.*|", "r|/dev/VxDMP.*|", "r|/dev/vx/dmpconfig|", "r|/dev/vx/rdmp/.*|", "r|/dev/dm-[0-9]*|", "r|/dev/mpath/mpath[0-9]*|", "r|/dev/mapper/mpath[0-9]*|", "r|/dev/disk/.*|","r|/dev/.*/by-path/.*|", "r|/dev/.*/by-id/.*|", "a/.*/" ]

# powermt display dev=emcpowerar |egrep "sda|sdc"
   6 qla2xxx                  sdaf      FA  8fB   active  alive       0      0
   5 qla2xxx                  sdcb      FA  7fB   active  alive       0      0
# powermt display dev=emcpoweras |egrep "sda|sdc"
   6 qla2xxx                  sdae      FA  8fB   active  alive       0      0
   5 qla2xxx                  sdca      FA  7fB   active  alive       0      0
# powermt display dev=emcpoweraq |egrep "sda|sdc"
   6 qla2xxx                  sdag      FA  8fB   active  alive       0      0
   5 qla2xxx                  sdcc      FA  7fB   active  alive       0      0

#vgdispay -v vmax

--- Volume group ---
  VG Name               vmax
  System ID            
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  58
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               3.01 GB
  PE Size               4.00 MB
  Total PE              771
  Alloc PE / Size       700 / 2.73 GB
  Free  PE / Size       71 / 284.00 MB
  VG UUID               buYhkI-iIHB-ppPr-sgar-DlI8-6KeK-bweUd0
  
  --- Logical volume ---
  LV Name                /dev/vmax/vmaxvol
  VG Name                vmax
  LV UUID                ip0WHa-nCgP-wNbe-61yT-3T7d-LHoq-aVTLod
  LV Write Access        read/write
  LV Status              available
  # open                 0
  LV Size                2.73 GB
  Current LE             700
  Segments               3
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     1024
  Block device           253:0
  
  --- Physical volumes ---
  PV Name               /dev/emcpoweraq    
  PV UUID               xFoNsX-47n2-mBeL-UkxM-iZ5p-lIcw-xJndJV
  PV Status             allocatable
  Total PE / Free PE    257 / 0
  
  PV Name               /dev/sdcb     (improper LVM filtering)
  PV UUID               UV5ip7-T73S-Hbnp-w6bM-CrIs-7tYj-ti5g9C
  PV Status             allocatable
  Total PE / Free PE    257 / 0
  
  PV Name               /dev/sdca      (improper LVM filtering)
  PV UUID               lsYJmT-Etak-Gz27-9yG1-Hzxv-EP7T-G48ZyJ
  PV Status             allocatable
  Total PE / Free PE    257 / 71

# vgscan
  Reading all physical volumes.  This may take a while...
  Found duplicate PV 7WcanQm06zYfK0TdUPo7ABQy0cR4AHRN: using /dev/emcpowerar not /dev/vx/dmp/pp_emc0_9
  Found duplicate PV P3gU7FTqwVpOzGmep2cf2yILcqxFlvHX: using /dev/emcpoweras not /dev/vx/dmp/pp_emc0_8
  Found duplicate PV BRnJgGZrMwliZFSmnCDOgH54HCIaIXKX: using /dev/vx/dmp/pp_emc0_10 not /dev/emcpoweraq  (improper LVM filtering)
  Found volume group "vmax" using metadata type lvm2

No comments:

Post a Comment