Unix‎ > ‎AIX‎ > ‎

LVM

AIX LVM


Parameters for creating and modifying logical volumes


Work in progress...

 Parameter mkvg chvg default constraints notes odm 
 VGName       
 PPsize       
 MaxLVs       
 Quorum       
 MaxPP/VG       
 MaxPP/PV       
 LTGSize       
 MaxPVs       
 Hotspare       
 AutoOn       
 AutoSync       
 BBPolicy       
 BigVG       
        
        
        
        
        
        


 Parameter mklv chlv default constraints notes odm 
 LVName       
 Label       
 FSType       
 WriteVerify       
 MaxLPs       
 PPSize       
 BBPolicy       
 Inter-Policy       
 Intra-Policy       
 Relocatable       
 MirrorWriteC       
 UpperBound       
 LP/SeparatePV       
 SerializeIO       
 SchedulePolicy       
 StripeWidth       
 StripeSize       
 Copies       
 Size       
        


Differences in LVM parameters between current AIX versions

Only VG/LV commands are covered here.

mkvg

7.1
[-O {y/n}]

6.1/7.1 
[-M {y/s}] [-X {none/SSD}]

5.3
[-B] [-G] [-f] [-C | -c] [-i] [-s PPsize]
[-n] [-t factor] [-V MajorNumber] [-L LTGsize] [-I]
[-S [-v LogicalVolumes] [-P Partitions]] [-y VGname] PVname...


chvg

7.1
[-O {y/n}]

6.1/7.1 
[-M {y/s}] [-X {none/SSD}]

5.3
[-a Auto on] [-Q quorum] [-u] [-C | -c | -l] [-x] [-t [factor]]
[ -B | -G ] [-S | -R] [-L LTGsize] [-P maxpps per vg ] [-v maxlvs]
[-h hotspare] [-s sync] [-g] [-b BadBlocks] [-I] VGname...


mklv

7.1
[-O InfiniteRetry]

6.1/7.1
[-f] [-w MWC] [-G groupid] [-P modes] [-U userid] [-p copyN=MirrorPool]

5.3
[-a IntraPolicy] [-b BadBlocks] [-c Copies]
[-d Schedule] [-e InterPolicy] [-i] [-L Label] [-m MapFile]
[-r Relocate] [-s Strict][-t Type] [-u UpperBound]
[-v Verify] [-x MaxLPs] [-y LVname] [-S StripeSize] [-Y Prefix]
[-o Overlapping IO] [-C StripeWidth] [-T IOoption] VGname NumberOfLPs [PVname...]

chlv


7.1
[-O InfiniteRetry]

6.1/7.1 
[-m copyN=MirrorPool] [-M] 

5.3
-n NewLVname LVname
[-a IntraPolicy] [-e InterPolicy] [-L Label] [-u UpperBound]
[-s Strict] [-b BadBlocks] [-d Schedule] [-p Permission]
[-r Relocate] [-t Type] [-v Verify] [-x MaxLPs] [-T { O | F }]
[-o Overlapping IO] [-U Userid] [-G Groupid] [-P Modes]
[-w MirrorWriteConsistency] LVname...



AIX and LVM2 cross-reference


 AIXLVM2 Notes 
 mkvg vgcreate 
 chvg vgchange 
 varyonvg (vgchange -ay) 
 varyoffvg (vgchange -an) 
 importvg vgimport 
 (importvg) vgimportclone import and rename duplicated volume group - AIX importvg handles LV name conflicts
 exportvg vgexport 
 extendvg vgextend 
 reducevg  vgreduce, vgremove 
 (reducevg) vgremove AIX has no separate command for VG deletion
 lsvg vgs, vgdisplay 
  vgconvert convert VG metadata format (LVM1 - LVM2)
 (cfgmgr) vgscan AIX will identify disk LVM status during device configuration
 (importvg -y) vgrename 
  vgmerge vgmerge merges an inactive VG into another with the same PV sizes
  vgsplit vgsplit splits PVs of a VG into another (new) VG
 lspv pvdisplay, pvs 
 chpv pvchange 
 (rmdev, chdev -a pv=) pvremove 
 (cfgmgr, chdev -a pv=) pvcreate 
 (chvg -g) pvresize pvresize is intended to use with PC/fdisk partitions
 replacepv  
 migratepv pvmove 
 (cfgmgr) pvscan AIX will identify disk LVM status during device configuration
 mklv lvcreate 
 chlv lvchange 
 rmlv lvremove 
 extendlv lvextend 
 (lreducelv) lvreduce In AIX, there is only a low-level command which should not be used, use chfs instead
 (extendlv, reducelv) lvresize 
 lslv lvdisplay, lvs 
  lvconvert convert a logical volume from linear to mirror or snapshot
 (chlv -n) lvrename 
 (varyonvg) lvscan AIX detects LVs when a new VG is activated (varied on)
  lvmdiskscan scan for all devices visible to LVM2 (every disk device, partition and filesystem, not just PVs)
  lvmconf modifies the locking configuration in an lvm configuration file
  lvmdump create lvm2 information dumps for diagnostic purposes

Parentheses mean there is no dedicated command for the given operation in the respective LVM implementation.

LVM2 specific commands

pvck
vgck
pvcreate, pvremove - AIX determines VG membership/PV status based on metadata areas on the disks and/or in ODM
vgmerge, vgsplit - there is no equivalent of these operations under AIX, you just do reducevg/mkvg -f
vgconvert
vgcfgbackup, vgcfgrestore - AIX LVM doesn't contain metadata backup tools, but you can dump the VGDA with readvgda or dd
vgmknodes

AIX LVM specific commands

cfgmgr, rmdev - AIX uses static device nodes and runs hardware detection either during boot or via cfgmgr
mkps, chps, lsps, rmps - paging space LV management special commands
low-level commands (readvgda, lquery*, getlvcb...).

Comments