System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Adding disks and extending lv and file system

SOLVED
Go to solution
Jonathan Grymes
Frequent Advisor

Adding disks and extending lv and file system

I have an HP integrity (itanium) running HP-UX 11.23.

Existing file system:
/dev/vg01/gexdata01 204800000 246303 191769142 0% /h/data
Existing Disk:
0/1/1/0.0.0.5.0 1 LVM vg01 286102 HP DG0300

I configured these two new disks into vg01.
0/1/1/0.0.0.2.0 1 Unused -- 286102 HP DG0300
0/1/1/0.0.0.3.0 1 Unused -- 286102 HP DG0300

I tried to do an lvextend using:
lvextend -L 600000 /dev/vg01/gexdata01
lvextend: "LogicalExtentsNumber" is bigger than the maximum value allowed.

The goal is to add these two new disks to the existing vg01 volume group and extend the logical volume and filesystem to use the new size. Help?

5 REPLIES
Bill Hassell
Honored Contributor
Solution

Re: Adding disks and extending lv and file system

What does the command:

vgdisplay vg01

show for PE Size and Free PE? If the PE Size is too small, then you'll require more than 65536 extents. If this is the case, you'll have to rebuild the VG with -s 32 or -s 64 to reduce the extent count.


Bill Hassell, sysadmin
qijian_li
Occasional Visitor

Re: Adding disks and extending lv and file system

the number of vg01's PE is not enough!

Firstly,backup the /h/data filesystem.

Now you should get the pe_size and of vg01 from ouput of vgdisplay -v vg01, and evaluate the number of max_pe you need.

you can try vgmodify without rebuild vg01 as followed:
vgmodify -e [max_pe] -n /dev/vg01
P Arumugavel
Respected Contributor

Re: Adding disks and extending lv and file system

hi,

Get the pe_size and max_pe per pv values from vgdisplay.

This is the conditions:

1. If max_pe per pv value is the maximum value (65536), then you have no option except rebuilding the VG.

2. If the max_pe per pv value is less than 65536, then that will change automatically upto 65536 according to the value of pe_size to reach the disk space.

3. You can't change the pe_size value in any way, even in vgmodify.

Rgds...

Re: Adding disks and extending lv and file system

u have to take the backup of ur logical volume data first,then u have to remove gexdata01 & vg01 then extend the pe size during vgcreate command
#vgcreate -s 64 vg01 /dev/rdisk/newdisk's
#lvcreate -L 600000 -n gexdata01 /dev/vg01
Jonathan Grymes
Frequent Advisor

Re: Adding disks and extending lv and file system

# vgdisplay vg01
--- Volume groups ---
VG Name /dev/vg01
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 3
Act PV 3
Max PE per PV 35763
VGDA 6
PE Size (Mbytes) 8
Total PE 107271
Alloc PE 25000
Free PE 82271
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0