1748058 Members
5113 Online
108758 Solutions
New Discussion юеВ

Re: Unable to resize /

 
SOLVED
Go to solution
jerry1
Super Advisor

Unable to resize /

There is enough physical extents available.
This is 11.0 box.

# lvextend -l 55 /dev/vg00/lvol3
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol3" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor
Solution

Re: Unable to resize /

Hi:

This would appear to be HP-UX, not Linux.

The 'root' ('/') filesystem is mounted on 'lovol3'. There is very little reason to extend it, and essentially, only safe-way is to take an Ignite 'make_tape_recovery' image and reload it. When you do this, choose the "advanced installation mode". This way, yu can specify the sizes of the vg00 logical volumes to your taste.

"Contiguous" allocation means that the physical disk extents must occur in unbroken succession. This is a requirement for the root filesystem.

"Strict" allocation means that mirrored extents (when present) cannot occupy the same physical volume. Without this caveat, high-availabilty of a logical volume is meaningless.

Look for files in '/dev' that are not character or block device files. A very common contamination is to create a regular file when you mean to do a backup. Thus, you might find '/dev/rmt/om' [that's the letter "o" instead of the digit "0".

Also find where you have files that don't belong in root:

# du -x /|sort -k1nr

...should show you that '/etc' and '/sbin' are the principal directories that occupy space. Other things need your attention and need to be moved elsewhere.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Unable to resize /

Shalom,

This is HP-UX.

The only way to make root bigger except under HP-UX 11.31 is to do an ignite backup, and restore the backup, intervening to set a larger root filesystem size during the restore.

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
jerry1
Super Advisor

Re: Unable to resize /

Is this a lock out because it is /.
I am able to resize other partitions with
online JFS on the fly.
James R. Ferguson
Acclaimed Contributor

Re: Unable to resize /

Hi (again):

> Is this a lock out because it is /.
I am able to resize other partitions with
online JFS on the fly.

The problem is that the logical volume's new physical extents must be *contigous* to those of the old physical extents. Thus, you would have to move the extents of (most likely) 'lvol4' to create free space immediately adjacent to lvol3. Then, and only then, could you 'lvextend' lvol3 into the free extents; and then you could resize the filesystem contained within the logical volume.

As I noted, originally, Ignite is the standard. safest, easiest method by which to achieve a resizing of the root filesystem.

Regards!

...JRF...
jerry1
Super Advisor

Re: Unable to resize /

Bummer. I see downtime in my future.
Jeeshan
Honored Contributor

Re: Unable to resize /

wrong forum jerry!!!

anyway, you can find a doc here

http://www.symmetricwebsites.com/
a warrior never quits
Robin T. Slotten
Trusted Contributor

Re: Unable to resize /

Ashan is correct. However, caution is well advised. This procedure requires a good understanding of LVM, HP-UX boot process and why you need a contiguous allocation for / and /stand. As is advised in the document, make certain you have a full system backup, and an Ignite backup as well. One wrong move can give you an un-bootable system. (I can attest to that). If this is a production system, you may want to try this on a test system first.

Buy the way, this procedure is not supported by Hewlett Packard.

Good luck,
Rob...
IF you do it more than twice, write a script.
jerry1
Super Advisor

Re: Unable to resize /

Sadly, HP is slowly not supporting it's
products.
Robin T. Slotten
Trusted Contributor

Re: Unable to resize /

I have had several conversations with my Acct Exec and my ASC about the quality of support lately. If enough customers complain, maybe things will change.

Rob...
IF you do it more than twice, write a script.