1834178 Members
2753 Online
110064 Solutions
New Discussion

lvextend doesn`t work

 
SOLVED
Go to solution
Andreas Barth
Occasional Contributor

lvextend doesn`t work

Hi,

we tried to extend a logical volume and get the following error message:

lvextend -L 200 /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´

The LV is mirrored but on the VG00 are 16MB x 2020 PE`s free, so there are enough free space to extend.

What can be the problem ?

best regards

Andy

Andy Barth
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: lvextend doesn`t work

Shalom Andy,

Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy´

lvchange -C n /dev/vg00/lvol3

Then try again.

If you are trying to expand root filesystem.

Forget it.

You can't do that.

You have to make an ignite backup of your system boot off of it, intervene manually and restore your system with a larger root fs.

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
James R. Ferguson
Acclaimed Contributor

Re: lvextend doesn`t work

Hi Andy:

This is expected. 'vg00/lvol3' is the root filesystem mountpoint. It's physical extents must be allocated with gaps (contiguously) and cannot mirrored extents cannot occupy the same physical disk volume (strict allocation).

Thus, you are not going to be able to extend it unless you were to move extents from an adjacent logical volume to another area on the disk.

The question really becomes, why do you want to expand the root filesystem? The root ("/") filesystem should be relatively small and contain only directories like '/etc', '/sbin', and '/dev', principally.

Regards!

...JRF...
Andreas Barth
Occasional Contributor

Re: lvextend doesn`t work

Thank for your help
Andy Barth
Sivakumar TS
Honored Contributor

Re: lvextend doesn`t work


Dear Andreas,

lvol3 --> root

should be contigeous always.

ie . PE should be continous.

This is the reason.

With Regards,

Siva.
Nothing is Impossible !