Disk Enclosures
cancel
Showing results for 
Search instead for 
Did you mean: 

Can't Increase LUN size on VA 7400 Array

Paul F Rose
Advisor

Can't Increase LUN size on VA 7400 Array

I originally created a 8Mb Lun on our VA 7400 array. Then I wanted to increase the size to 16Mb. So I deleted the LUN from the array and re-created it as 16Mb in size.

When I try to add it to a volume group the PV still comes back with 1 8Mb PE:

--------------------------------------------------------------

root# pvremove /dev/rdsk/c3t0d1
The physical volume associated with "/dev/rdsk/c3t0d1" has been removed.

root# diskinfo /dev/rdsk/c3t0d1
SCSI describe of /dev/rdsk/c3t0d1:
vendor: HP
product id: A6189A
type: direct access
size: 16384 Kbytes
bytes per sector: 512

root# pvcreate -f /dev/rdsk/c3t0d1
Physical volume "/dev/rdsk/c3t0d1" has been successfully created.

root # vgcreate -e 5000 -l 255 -p 48 -s 8 /dev/vghlab2 /dev/dsk/c3t0d1
Volume group "/dev/vghlab2" has been successfully created.
Volume Group configuration for /dev/vghlab2 has been saved in /etc/lvmconf/vghlab2.conf

root # vgdisplay -v vghlab2
--- Volume groups ---
VG Name /dev/vghlab2
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 48
Cur PV 1
Act PV 1
Max PE per PV 5000
VGDA 2
PE Size (Mbytes) 8
Total PE 1
Alloc PE 0
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0


--- Physical volumes ---
PV Name /dev/dsk/c3t0d1
PV Status available
Total PE 1
Free PE 1
Autoswitch On
-----------------------------------------------------------
If diskinfo returns the correct info where do the LVM commands get theirs???
3 REPLIES
Luk Vandenbussche
Honored Contributor

Re: Can't Increase LUN size on VA 7400 Array

Hi,

Don't forget to recreate the volumegroup with the new lun.

I think you forget this action
Paul F Rose
Advisor

Re: Can't Increase LUN size on VA 7400 Array

I figured it out.

It's the LVM data structures on each disk that reduce the total amount of space available for the PV.
Paul F Rose
Advisor

Re: Can't Increase LUN size on VA 7400 Array

Closing thread.