Volume Group Operations


Volume Group Operations:

How do I …

Start smit/smitty a top level menu for volume groups

smit lvm

List all volume groups on system

lsvg

Usage: lsvg [-o] [[-L] -n PVname]

lsvg [-L] [-i] [-M | -l | -p] VGname...

List all active (varied on) volume groups

lsvg -o

List volume group attributes (size, PP size, Free, Used...)

lsvg volumegroup

List all logical volumes in a volume group

lsvg -l volumegroup

List  physical volumes in volume group

lsvg -p volumegroup

List physical mapping of volume group

lsvg -M volumegroup

Add a volume group

smit vg

mkvg -f -y vgname hdisk# [hdisk# hdisk#]

Usage: mkvg [-d MaxPVs] [-B] [-G] [-f] [-c] [-x] [-i] [-s PPsize] [-n]

[-m MaxPVsize | -t factor] [-V MajorNumber] [-y VGname] PVname...

Change a volume group

smit chvg

chvg options vgname

Usage: chvg [-a Auto on] [-Q quorum] [-u] [-c | -l] [-x] [-t [factor]] [ -B ] VGname...

Remove a volume group

smit reducevg

reducevg -df vgname hdisk

Usage: reducevg [-d] [-f] VGname PVname...

Activate a volume group

smit varyonvg

varryonvg vgname

Usage: varyonvg [-f] [-n] [-s] [-c] [-b] [-r] [-p] VGname

Deactivate a volume group

smit varyoffvg

varyoffvg vgname

Usage: varyoffvg [-s] VGname

Import a volume group

smit importvg

importvg -y vgname hdisk#

Usage: importvg [ [ [-V MajorNumber] [-y VGname] [-f] [-c] [-x] ] | [-L VGname] ] [-n] [-F] [-R] PVname

Export a volume group

smit exportvg

exportvg vgname

Usage: exportvg VGname

Mirror volume group

smit mirrorvg

mirrorvg vgname hdisk#

Usage: mirrorvg [-S | -s] [-Q] [-c Copies] [-m] VGname [PVname...]

Unmirror volume group

smit unmirrorvg

unmirrorvg vgname

Usage: unmirrorvg [-c Copies] VGname [PVname...]

Synchronize all physical partitions in a mirrored volume group

smit syncvg_vg

syncvg -v -f rootvg

Usage: /usr/sbin/syncvg [-i] [-f] [-H] [-P NumParalleLPs] {-l|-p|-v} Name

Synchronize all physical partitions in a mirrored logical volume

smit syncvg_lv

syncvg -l -f lvname

Synchronize all physical partitions by physical disk

smit syncvg_pv

syncvg -p -f pvname

 

Back to Contents