$ lspv --列出os中所有的pv ,pvname,pvid,vgname,status
hdisk0 00c3f005d072189b rootvg active
hdisk1 00c3f435d0f4916c rootvg active
hdisk2 00c3f435d146d817 datavg active
hdisk3 00c3f435d1471ae6 datavg active
hdisk6 00c3f005121c061c oradata1
hdisk7 00c3f0051851e1e1 oradata2
hdisk8 00c3f00518531f94 oradata3
hdisk9 00c3f00518537918 oradata4
hdisk10 00c3f0051853aa71 oradata5
hdisk11 00c3f00518540d76 oradata6
hdisk12 00c3f00518543b4b oradata7
updisk0 00c3f005121e6622 backup
updisk1 00c3f0051854b9e9 dmp active
hdisk13 00c3f435a09e2d25 nmvg1 active
hdisk14 00c3f435a09f26d2 nmvg2 active
updisk2 00c3f435a0a02e5b None
$ lspv hdisk2 概述每个pv的大小,PP SIZE,VOLUME GROUP,TOTAL PPs,FREE PPs,USED PPs
PHYSICAL VOLUME: hdisk2 VOLUME GROUP: datavg
PV IDENTIFIER: 00c3f435d146d817 VG IDENTIFIER 00c3f43500004c000000012ad6f34ea2
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 256 megabyte(s) LOGICAL VOLUMES: 2
TOTAL PPs: 546 (139776 megabytes) VG DESCRIPTORS: 2
FREE PPs: 465 (119040 megabytes) HOT SPARE: no
USED PPs: 81 (20736 megabytes) MAX REQUEST: 1 megabyte
FREE DISTRIBUTION: 110..28..109..109..109
USED DISTRIBUTION: 00..81 ..00..00..00
MIRROR POOL: None
DISTRIBUTION按照离磁头的距离划分
outer edge ,outer middle,center , inner middle , inner edge
$ lspv -P hdisk2
PHYSICAL VOLUME: hdisk2 VOLUME GROUP: datavg
PV IDENTIFIER: 00c3f435d146d817 VG IDENTIFIER 00c3f43500004c000000012ad6f34ea2
PV STATE: active
STALE PARTITIONS: 0 ALLOCATABLE: yes
PP SIZE: 256 megabyte(s) LOGICAL VOLUMES: 2
TOTAL PPs: 546 (139776 megabytes) VG DESCRIPTORS: 2
FREE PPs: 465 (119040 megabytes) HOT SPARE: no
USED PPs: 81 (20736 megabytes) MAX REQUEST: 1 megabyte
FREE DISTRIBUTION: 110..28..109..109..109
USED DISTRIBUTION: 00..81..00..00..00
MIRROR POOL: None
lspv hdisk2和 lspv -P hdisk2效果是一样的
$ lspv -l hdisk2
hdisk2:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
loglv00 1 1 00..01..00..00..00 N/A
oracle 80 80 00..80..00..00..00 /oracle
$ lspv -p hdisk2
hdisk2:
PP RANGE STATE REGION LV NAME TYPE MOUNT POINT
1-110 free outer edge
111-190 used outer middle oracle jfs2 /oracle
191-191 used outer middle loglv00 jfs2log N/A
192-219 free outer middle
220-328 free center
329-437 free inner middle
438-546 free inner edge
$ lspv -M hdisk2 相当与lspv pvname中pps distribution 的文字map
hdisk2:1-110
hdisk2:111 oracle:1:1
hdisk2:112 oracle:2:1
hdisk2:113 oracle:3:1
hdisk2:114 oracle:4:1
hdisk2:115 oracle:5:1
hdisk2:116 oracle:6:1
hdisk2:117 oracle:7:1
hdisk2:118 oracle:8:1
hdisk2:119 oracle:9:1
hdisk2:120 oracle:10:1
hdisk2:121 oracle:11:1
hdisk2:122 oracle:12:1
hdisk2:123 oracle:13:1
hdisk2:124 oracle:14:1
hdisk2:125 oracle:15:1
hdisk2:126 oracle:16:1
hdisk2:127 oracle:17:1
hdisk2:128 oracle:18:1
hdisk2:129 oracle:19:1
hdisk2:130 oracle:20:1
hdisk2:131 oracle:21:1
hdisk2:132 oracle:22:1
hdisk2:133 oracle:23:1
hdisk2:134 oracle:24:1
hdisk2:135 oracle:25:1
hdisk2:136 oracle:26:1
hdisk2:137 oracle:27:1
hdisk2:138 oracle:28:1
hdisk2:139 oracle:29:1
hdisk2:140 oracle:30:1
hdisk2:141 oracle:31:1
hdisk2:142 oracle:32:1
hdisk2:143 oracle:33:1
hdisk2:144 oracle:34:1
hdisk2:145 oracle:35:1
hdisk2:146 oracle:36:1
hdisk2:147 oracle:37:1
hdisk2:148 oracle:38:1
hdisk2:149 oracle:39:1
hdisk2:150 oracle:40:1
hdisk2:151 oracle:41:1
hdisk2:152 oracle:42:1
hdisk2:153 oracle:43:1
hdisk2:154 oracle:44:1
hdisk2:155 oracle:45:1
hdisk2:156 oracle:46:1
hdisk2:157 oracle:47:1
hdisk2:158 oracle:48:1
hdisk2:159 oracle:49:1
hdisk2:160 oracle:50:1
hdisk2:161 oracle:51:1
hdisk2:162 oracle:52:1
hdisk2:163 oracle:53:1
hdisk2:164 oracle:54:1
hdisk2:165 oracle:55:1
hdisk2:166 oracle:56:1
hdisk2:167 oracle:57:1
hdisk2:168 oracle:58:1
hdisk2:169 oracle:59:1
hdisk2:170 oracle:60:1
hdisk2:171 oracle:61:1
hdisk2:172 oracle:62:1
hdisk2:173 oracle:63:1
hdisk2:174 oracle:64:1
hdisk2:175 oracle:65:1
hdisk2:176 oracle:66:1
hdisk2:177 oracle:67:1
hdisk2:178 oracle:68:1
hdisk2:179 oracle:69:1
hdisk2:180 oracle:70:1
hdisk2:181 oracle:71:1
hdisk2:182 oracle:72:1
hdisk2:183 oracle:73:1
hdisk2:184 oracle:74:1
hdisk2:185 oracle:75:1
hdisk2:186 oracle:76:1
hdisk2:187 oracle:77:1
hdisk2:188 oracle:78:1
hdisk2:189 oracle:79:1
hdisk2:190 oracle:80:1
hdisk2:191 loglv00:1
hdisk2:192-546
-M选项
Lists the following fields for each logical volume on the physical volume:
PVname:PPnum [LVname: LPnum [:Copynum] [PPstate]]
Where:
PVname Name of the physical volume as specified by the system.
PPnum Physical partition number.
LVname Name of the logical volume to which the physical partitions are allocated. Logical
volume names must be system-wide unique names, and can range from 1 to 64
characters.
LPnum Logical partition number. Logical partition numbers can range from 1 to 64,000.
Copynum
Mirror number.
PPstate
Only the physical partitions on the physical volume that are not current are
shown as stale