Expanding existing lun space using multipath and lvm
The storage team extended an existing lun. (mpath6) I am able to see the space 300G via multpath. I am unable to get lvm to see the space. I have added a second partition to dm-3. but pvresize is not picking it up.
What am I missing? Is there a way to extend the existing partition without risking the data?
mpath6 (360a98000572d4f38466f5732472d5a4d) dm-3 NETAPP,LUN
size=300G features='1 queue_if_no_path' hwhandler='0' wp=rw
|-+- policy='round-robin 0' prio=50 status=active
| |- 2:0:3:7 sdbk 67:224 active ready running
| |- 2:0:2:7 sdbc 67:96 active ready running
| |- 1:0:3:7 sdae 65:224 active ready running
| `- 1:0:2:7 sdw 65:96 active ready running
`-+- policy='round-robin 0' prio=10 status=enabled
|- 2:0:1:7 sdau 66:224 active ready running
|- 2:0:0:7 sdam 66:96 active ready running
|- 1:0:1:7 sdo 8:224 active ready running
`- 1:0:0:7 sdg 8:96 active ready running
--- Physical volume ---
PV Name /dev/mpath/mpath6p1
VG Name sanvg6
PV Size 200.00 GB / not usable 1.15 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 51199
Free PE 0
Allocated PE 51199
PV UUID gji02f-VErW-jNva-b1xQ-HXMw-zcz1-jPsMtV
[root@hqlinnmnpdbt ~]# fdisk -l /dev/dm-3
Disk /dev/dm-3: 322.1 GB, 322122547200 bytes
255 heads, 63 sectors/track, 39162 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/dm-3p1 1 26108 209712478+ 8e Linux LVM
/dev/dm-3p2 26109 39162 104856255 8e Linux LVM
[root@hqlinnmnpdbt ~]#
[root@hqlinnmnpdbt ~]# pvresize /dev/mpath/mpath6p1
Physical volume "/dev/mpath/mpath6p1" changed
1 physical volume(s) resized / 0 physical volume(s) not resized
[root@hqlinnmnpdbt ~]# pvdisplay /dev/mpath/mpath6p1
--- Physical volume ---
PV Name /dev/mpath/mpath6p1
VG Name sanvg6
PV Size 200.00 GB / not usable 1.15 MB
Allocatable yes (but full)
PE Size (KByte) 4096
Total PE 51199
Free PE 0
Allocated PE 51199
PV UUID gji02f-VErW-jNva-b1xQ-HXMw-zcz1-jPsMtV
|