Lsvg
Lsvg-o
Lsvg rootvg view rootvg Information
Lsvg-p rootvg view the physical hard disk and distribution information in the rootvg volume
Lsvg-l rootvg view the basic information of the logical volume under the rootvg volume
Add a volume group
Smit mkvg adds a volume group using the smit tool. You can set more information.
Mkvg command to create a volume group named newvg created with a physical partition size of 2 MB is:
Mkvg-s 2-y newvg hdisk1
To display the LTG size of a disk, use the command:
/Usr/sbin/lquerypv-M hdisk0
Setting the LTG size
Varyonvg-M512K myvg
Set the logical track group size to the common maximum transfer size of the disks:
Chvg-L 0 tmpvg
Designate a hot spare:
Chpv-hy hdisk1
Chpv-hn hdisk1
Add a physical volume to a volume group:
Extendvg-f volumegroup hdiskn
Removed a physical volume from a volume group:
Reducevg-d-f volumegroup hdiskn
How to remove a volume group:
Reducevg-d-f volumgroup physicalvolume
Activate/deactivate a volume group
Varyonvg datavg
Varyoffvg datavg
Import/export a volume group