Operating System - HP-UX
1752782 Members
6454 Online
108789 Solutions
New Discussion юеВ

Extend Physical Extents on unused area of a Disk

 
Kim Heui Jung
Occasional Advisor

Extend Physical Extents on unused area of a Disk

I've a 18GB hard drive in B132L+ (HP-UX 10.20), but only 4GB is used by pvdisplay.
It came from image backup of 4GB drive g4u utility.
Is it available to extend PE for unused area by hp-ux commands in working status.
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Extend Physical Extents on unused area of a Disk

Shalom,

You should be able to use lvextend to extend any existing volume group to the unused portion of the disk.

You can't lvextend the root filesystem though for example, because it must be contiguous.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Kim Heui Jung
Occasional Advisor

Re: Extend Physical Extents on unused area of a Disk

Sorry, I've no free PE allocating to volume group (vg00). all PE of pv (4GB area) is used. I'm finding to extend the no. of PE, a part (4GB) of disk to whole disk (18GB).

Thanks, Kim
Siju Vadakkan
Trusted Contributor

Re: Extend Physical Extents on unused area of a Disk

Can u please provide the vgdisplay of the VG which is holding the PV and the pvdisplay command output

#vgdisplay -v vgname
#pvdisplay pvname
Torsten.
Acclaimed Contributor

Re: Extend Physical Extents on unused area of a Disk

I'm sure your problem is the g4u utility - this is cloning each and every bit from one disk to the other.

I don't know any other way around other than using ignite (backup to tape and install from tape) to solve this.

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!   
psreedhar
Frequent Advisor

Re: Extend Physical Extents on unused area of a Disk

Hi,
There is a solution for this problem.
Let me explain what is happening in this case.
The Volume group is created for a disk which was 4GB, later the same data is copied on a 8GB disk. So untill and unless you expand the LVM metadata you can't use your extra 4GB disk space.

Recently (compared to 10.20), LVM has come up with a command called vgmodify. This command is there in 11.31, 11.23,11.11.

LVM has complete backward compatibility. So take out the disk from your 10.20 system and put it in a 11.23 or 11.11 system and do vgimport. Later run vgmodify command.

Put back the disk in 10.20 system and use your complete 8GB storage.

Kim Heui Jung
Occasional Advisor

Re: Extend Physical Extents on unused area of a Disk

Yes, problem by the image backup is. I've reconfigured with the ignite-ux.