1754311 Members
2703 Online
108813 Solutions
New Discussion юеВ

LUN size disrepancy

 
Vick10
Advisor

LUN size disrepancy

Hi Experts,

I have a LUN assigned from EMC, as per the diskinfo below, thesize of the LUN is 256GB

# diskinfo /dev/rdsk/c6t0d0
SCSI describe of /dev/rdsk/c6t0d0:
vendor: EMC
product id: SYMMETRIX
type: direct access
size: 265224960 Kbytes
bytes per sector: 512


I created pv with pvcreate -f /dev/rdsk/c6t0d0

Then extended the vg with command : vgextend /dev/vg61 /dev/dsk/c6t0d0, I did the same for all the alternatelinks.


Now the vgdisplay show the new LUN is only 69GB, what happended to the rest of the space almost 200GB ?????

# vgdisplay -v vg61
--- Volume groups ---
VG Name /dev/vg61
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 17434
VGDA 4
PE Size (Mbytes) 4
Total PE 34864
Alloc PE 32500
Free PE 2364
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg61/lvol1
LV Status available/syncd
LV Size (Mbytes) 130000
Current LE 32500
Allocated PE 32500
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c8t6d1
PV Name /dev/dsk/c10t6d1 Alternate Link
PV Name /dev/dsk/c12t6d1 Alternate Link
PV Name /dev/dsk/c14t6d1 Alternate Link
PV Name /dev/dsk/c15t6d1 Alternate Link
PV Name /dev/dsk/c18t6d1 Alternate Link
PV Name /dev/dsk/c4t6d1 Alternate Link
PV Name /dev/dsk/c6t6d1 Alternate Link
PV Status available
Total PE 17430
Free PE 0
Autoswitch On

PV Name /dev/dsk/c8t0d0
PV Name /dev/dsk/c10t0d0 Alternate Link
PV Name /dev/dsk/c12t0d0 Alternate Link
PV Name /dev/dsk/c14t0d0 Alternate Link
PV Name /dev/dsk/c15t0d0 Alternate Link
PV Name /dev/dsk/c18t0d0 Alternate Link
PV Name /dev/dsk/c4t0d0 Alternate Link
PV Name /dev/dsk/c6t0d0 Alternate Link
PV Status available
Total PE 17434
Free PE 2364
Autoswitch On

2 REPLIES 2
TTr
Honored Contributor

Re: LUN size disrepancy

You need to adjust the PE size and max_pe during vgcreate. See "man vgcreate". With the default values that you used, your disk has 17434 maximum PEs and with 4MB PE size that maximum PV space you can utilize is 4MB * 17434 = 69736MB hence you LV size. If you can not recreate the VG and have 11.23 or higher, check out "man vgmodify".
Vick10
Advisor

Re: LUN size disrepancy

Thanks