AIX中的硬盘、PP、VG、LV、文件系统
问:aix中,怎么查看有几个硬盘?
说:lspv , 可以看到系统中有几个物理卷,但是磁盘柜上的硬盘是没法看的。
bash-3.00# lspv
hdisk0 000adf2f982448b4 rootvg active
bash-3.00#
问:怎么看某个硬盘上有多少个pp ?
答:lspv hdisk0
bash-3.00# lspv hdisk0
PHYSICAL VOLUME: hdisk0 VOLUME GROUP: rootvg
PV IDENTIFIER: 000adf2f982448b4 VG IDENTIFIER 000adf2f00004c000000010ec49156a4
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 32 megabyte(s) LOGICAL VOLUMES: 9
TOTAL PPs: 542 (17344 megabytes) VG DESCRIPTORS: 2
FREE PPs: 504 (16128 megabytes) HOT SPARE: no
USED PPs: 38 (1216 megabytes) MAX REQUEST: 256 kilobytes
FREE DISTRIBUTION: 108..92..87..108..109
USED DISTRIBUTION: 01..16..21..00..00
bash-3.00#
问:硬盘中的ppsize能改吗?
答:里面的数据不能保留,重新创建VG的时候,可以设定PPsize。
问:如何看现在系统中有几个vg?
答:lsvg -o 看到目前挂载的vg,lsvg 看系统中设定了什么vg。
问:如何看某个vg的具体参数、有几个lv,有多少个pp,用了多少个pp等等?
答:lsvg vgname
bash-3.00# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 000adf2f00004c000000010ec49156a4
VG STATE: active PP SIZE: 32 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 542 (17344 megabytes)
MAX LVs: 256 FREE PPs: 504 (16128 megabytes)
LVs: 9 USED PPs: 38 (1216 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 0
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
bash-3.00#
问:如何看到某个vg中存在多少个lv ?
答:lsvg -l vgname
bash-3.00# 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 16 16 1 open/syncd N/A
hd8 jfs2log 1 1 1 open/syncd N/A
hd4 jfs2 1 1 1 open/syncd /
hd2 jfs2 13 13 1 open/syncd /usr
hd9var jfs2 1 1 1 open/syncd /var
hd3 jfs2 1 1 1 open/syncd /tmp
hd1 jfs2 1 1 1 open/syncd /home
hd10opt jfs2 3 3 1 open/syncd /opt
bash-3.00#
问:如何看某个lv的参数、挂载点、pps... ... ?
答:lslv lvname
bash-3.00# lslv hd2
LOGICAL VOLUME: hd2 VOLUME GROUP: rootvg
LV IDENTIFIER: 000adf2f00004c000000010ec49156a4.5 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 32512 PP SIZE: 32 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 13 PPs: 13
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: center UPPER BOUND: 32
MOUNT POINT: /usr LABEL: /usr
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
bash-3.00#
阅读(5320) | 评论(0) | 转发(0) |