1. the LVM is organized as follows:
a VG consists of one or more PVs
a LV is made up of LPs
LPs are mapped to PPs
2. Logical Volumes are used to contain:
JFS or JFS2 paging spaces
dump space journal log
boot logical volume raw space
3.logical volume manager
#smit lvm
the logical volume manager is used to manage many aspects of the system's storage:
volume groups
loggical volumes
physical volumes
paging space
4.vg的major number
To determine a volume group's major number, use the ls -al /dev/VGName command. This command lists the special device file that represents the volume group. The volume group major number is the same as the major device number of the special device file.
eg:
# ls -al /dev/rootvg
crw-rw---- 1 root system 10, 0 Mar 22 19:42 /dev/rootvg
In this example, the volume group major number is 10.
查看rootvg的centents
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000d5d2c00004c000000012788ae4b8a
VG STATE: active PP SIZE: 64 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 547 (35008 megabytes)
MAX LVs: 256 FREE PPs: 430 (27520 megabytes)
LVs: 9 USED PPs: 117 (7488 megabytes)
OPEN LVs: 8 QUORUM: 2
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
列出VG中的PV lsvg –P vgname
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 1 1 closed/syncd N/A
hd6 paging 8 8 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 1 1 1 open/syncd /
hd2 jfs2 50 50 1 open/syncd /usr
hd9var jfs2 1 1 1 open/syncd /var
hd3 jfs2 1 1 1 open/syncd /tmp
hd1 jfs2 8 8 1 open/syncd /home
hd10opt jfs2 46 46 1 open/syncd /opt
# lsvg -p rootvg
rootvg:
PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION
hdisk0 active 547 430 109..101..01..109..110
列出的信息由PV的名字,PV的状态(active或者inactive),PP的总个数,free的PP数等。
创建vg
创建一个vg的名字是firstvg,大小是200M
mkvg -s 200M -y firstvg hdisk1
设置vg的charactoristics
#smit vgsc