Operating System - HP-UX
1753850 Members
7289 Online
108807 Solutions
New Discussion юеВ

Re: Increasing Volume group size

 
SOLVED
Go to solution
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

I'm not sure how we are supposed to know that your original LUN/VG is uncompromised. You'll need to verify that first, then run vgextend, giving it the new LUN. If all that succeeds, run extendfs.


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

Is there a command to run so the HP machine will recognize the new LUN or should it show up automatically?
Torsten.
Acclaimed Contributor

Re: Increasing Volume group size

Simply do an ioscan, the disk without device files is your new disk.
Now run "insf -eCdisk" to create new device files.

Create the PV (pvcreate) and extend the VG (vgextend).

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

I have created the new LUN but I do not see it on my HP machine.
Tingli
Esteemed Contributor
Solution

Re: Increasing Volume group size

Run
# ioscan -fnC disk
# insf -e

You should see the new lun.
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

I see the new lun. It shows up with 4 devices under /dev/rdsk. Do I need to extend my vg to all 4?
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

I see the new LUN. I have performed the pvcreate and vgextend. But I'm having problems with the lvextend. But I am having problems with the lvextend.
Receiving the following error.

lvextend: Not enough free physical extents available.
Logical volume "/dev/vg_audev_backup/audev_backup" could not be extended.
Failure possibly caused by strict allocation policy

The new LUN I created is 60G. Below is my vgdisplay for vg_audev_backup

VG Name /dev/vg_audev_backup
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 5119
VGDA 4
PE Size (Mbytes) 4
Total PE 10238
Alloc PE 5000
Free PE 5238
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg_audev_backup/audev_backup
LV Status available/syncd
LV Size (Mbytes) 20000
Current LE 5000
Allocated PE 5000
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c49t3d0
PV Name /dev/dsk/c55t3d0 Alternate Link
PV Name /dev/dsk/c52t3d0 Alternate Link
PV Name /dev/dsk/c58t3d0 Alternate Link
PV Status available
Total PE 5119
Free PE 119
Autoswitch On

PV Name /dev/dsk/c52t3d1
PV Name /dev/dsk/c49t3d1 Alternate Link
PV Name /dev/dsk/c58t3d1 Alternate Link
PV Name /dev/dsk/c55t3d1 Alternate Link
PV Status available
Total PE 5119
Free PE 5119
Autoswitch On
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

We need the lvdisplay output for the LV you're trying to extend.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Increasing Volume group size

To be more definitive, you should run lvdsiplay on the LV in question and look for the "Allocation" line. If it says strict/contiguous, then you are going to have to recreate (backup, lvremove, lvcreaate, restore) your logical volume with a non-contiguous policy (no -C switch on lvcreate).


Pete

Pete
Randy Durden
Frequent Advisor

Re: Increasing Volume group size

LV Name /dev/vg_audev_backup/audev_backup
VG Name /dev/vg_audev_backup
LV Permission read/write
LV Status available/syncd
Mirror copies 0
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 20000
Current LE 5000
Allocated PE 5000
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default