lsvg Lists all volume groups
lsvg (vg) Lists the volume group details
lsvg -l (vg) Lists all logical volumes in the volume group
lsvg -p (vg) Lists all physical volumes in the volume group
lsvg -o Lists all varied on volume groups

varyonvg (vg) nimmt eine VG online
varyonvg -f (vg) Forciert den varyon-Prozess
varyonvg -s (vg) Nimmt eine VG im „maintenence mode“ online.
Man kann keine LVs für IO öffnen, alles andere geht.
varyonvg -n (vg) Nimmt die VG online, *ohne* die LPs zu syncen
varyoffvg (vg) Nimmt die VG offline

synclvodm (vg) Tries to resync VGDA, LV control blocks and ODM.
synclvodm -v (vg) Erneuert den LVCB (Logical Volume Control Block)
Schreibt ihn auf alle Platten.
(Für synclvodm muß die VG online sein, also nach varyonvg)

getlvcb -AT tivoli_lcf_a_lv
mkvg -y(vg) -s(PP size) (pv) Create a volume group
mkvg -y datavg -s 4 hdisk1

reducevg (vg) (pv) Removes a volume group
reducevg -d (vg) (pv) Removes a volume group and delete all LV’s on the PV
reducevg (vg) (PVID) Removes the PVID disk reference from the VGDA when a
disk has vanished without the reducevg (vg) (pv)
command being run first.
reducevg -df (vg) (pv) Deletes all LV’s from the VG and removes the VG
from the disk. If the last disk in the VG then
the VG is deleted.

extendvg (vg) (new pv) Adds another PV into a VG.

exportvg (vg) Exports the volume group, removes the VG entries and
removes all FS entries from /etc/filesystems but
leaves the mount points.

Note : Cannot export a VG if it has active paging space, turn off paging,
reboot before exporting VG. Exporting removes entries from filesystems
file but does not remove the mount points.

chvg -a y (vg) Auto Vary On a volume group at system start.
chvg -u (vg) Unlocks a locked volume group.

chvg -t 2 rootvg ==> Wenn nicht genug Platten in die
VG passen, kann man den „T-Factor“ setzen. Dann wird
die Anzahl der möglichen PP pro Platten (normal 1016)
um diesen Faktor erhöht.

chvg -C (vg) Setzt die VG in den „enhanced concurrent“ Mode
chvg -l (vg) Entfernt das wieder.

lqueryvg -Atp (pv) Details volume group info for the hard disk.

importvg -y (vg name) (pv) Import a volume group from a disk.
importvg (pv) Same as above but VG will be called vg00 etc.

Learning Import (bei HACMP Cluster, oder Maschinen, die sich eine VG teilen)
– VG auf einem (nur einem) Knoten varyon nehmen. VG beliebig anpassen.
– varyonvg -b -u VG_name ==> bricht die Reservirung der Platten
– Auf dem andern Knoten: importvg -L VG_name PV_name
– Prüfen, ob alles schön angekommen ist (/etc/filesystems, lsvg -l)
– Auf dem ersten Knoten: varyonvg VG_name

chvg -Q (y/n) (vg name) Turns on/off Quorum checking on a VG.

reorgvg (vg) (lv) Reorganised a fragmented LV, must state an LV at the
command line else the first LV in the VG is picked.
Does not reorg the PP’s of striped LV’s.

/usr/sbin/readvgda /dev/hdisk0 Auslesen des VGDA direkt von der Platte.
/usr/sbin/readvgda /dev/vpath0 Alle Info zu Platten, VG, LV, FS.
Mit AIX 5.3 kann man sich Maps zu einzelnen LVs ausgeben lassen:
/usr/sbin/readvgda -s -m tivoli_lcf_lv /dev/hdisk0
Und man kann gezielt den 1. oder 2. VGDA abfragen:
/usr/sbin/readvgda -p /dev/hdisk0 ==> *= 1ST VGDA-VGSA: /dev/hdisk0 =*
/usr/sbin/readvgda -s /dev/hdisk0 ==> *= 2ND VGDA-VGSA: /dev/hdisk0 =*