AIX VG Commands

Display all VGs:
#lsvg

Display all active VGs:
#lsvg -o

Display info about rootvg:
#lsvg rootvg

Display info about all LVs in rootvg:
#lsvg -l rootvg

Display info about all LVs in all VGs:
#lsvg -o |lsvg -il

Display info about all PVs in rootvg:
#lsvg -p rootvg

Create VG with name vgXX on hdisk0 with partition size 128MB:
#mkvg -s 128 hdisk0

Create VG with name testvg on hdisk0 with partition size 128MB:
#mkvg -s 128 -y testvg hdisk0

Create testvg on hdisk0 with PP size 4 and no of partions 2 * 1016:
#mkvg -s 4 -t 2 -y testvg hdisk0

To cuase VG leetvg automatically activated at startup:
#chvg -a y leetvg

To deactivate the automatic activation at startup:
#chvg -a n leetvg

To change maximum no. of PP to 2032 on vg leetvg:
#chvg -t 2 leetvg

To disable quorum on VG leetvg:
#chvg -Q n leetvg

Reorganises PP allocation of VG leetvg:
#reorgvg leetvg

Add PV hdisk0 and hdisk1 to VG leetvg:
#extendvg leetvg hdisk0 hdisk1

Exports the VG leetvg:
#exportvg leetvg

Import the hdisk10 with name leetvg, and assign major number 33:
#importvg -V 33 -y leetvg hdisk10

Remove PV hdisk20 from VG leetvg:
#redcucevg leetvg hdisk20

To deactviate VG leetvg:
#varyoffvg leetvg

To activate VG leetvg:
#varyonvg leetvg

To sync the mirrored LV in the VG testvg:
#syncvg -v testvg

To mirror LVs of testvg with hdisk0 (-m for exact mirror, -S for background mirror):
#mirrorvg -S -m testvg hdisk0

To remove the mirrored PV from the set:
#unmirrorvg testvg hdiskX

Recent content

root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root