Operating System - HP-UX
1752815 Members
6006 Online
108789 Solutions
New Discussion

Problem extending /stand with lvextend and extendfs

 
glennes
Frequent Advisor

Problem extending /stand with lvextend and extendfs

I have been able to extend several lvol's on my K370. However, when I try to extend /stand (lvol1), I get this message:

 

lvextend: Not enough free physical extents available.

Logical volume "/dev/vg00/lvol1" could not be extended.

Failure possibly caused by contiguous allocation policy.

Failure possibly caused by strict allocation policy.

 

When I try it with:

 

/sbin/extendfs -F vxfs /dev/vg00/rlvol1  I get this message:

 

/dev/vg00/rlvol1 invalid super-block

 

I have verified that lvol1 (/stand) is unmounted in both these attempts.

 

Why will the system extend lvol 8, lvol7, and lvol5 using these commands but not extend lvol1?

 

What do these errors mean and how do I get the system to extend lvol1?

 

Also, when using the lvextend command and including the '4096' variable (or any other larger number), is this 4096 bytes, 4096 kilobytes, or 4096 megabytes?

 

Glenn

 

P.S. This thread has been moved from HP 9000 to  HP-UX > LVM and VxVM. -HP Forum Moderator

3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: Problem extending /stand with lvextend and extendfs

>when using the lvextend command and including the 4096 value

 

"man lvextend" is your friend.

Patrick Wallek
Honored Contributor

Re: Problem extending /stand with lvextend and extendfs

Question -- Why do you think you need to extend /stand?

 

/stand, primary swap, and the / volumes (lvol1, lvol2 and lvol3) are all special in that they must ALL be contiguous in their allocaiton.  What that means is that ALL parts of /stand (lvol1) must be together on disk, then swap (lvol2) and then / (lvol3).  Basically there is no EASY way to extend /stand.

 

The least difficult way is to create an Ignite backup tape and restore your system from it.  When restoring from the Ignite tape, you can extend your volumes as you see fit.

 

Ignite is a very good tool that you should get familiar with.

Patrick Wallek
Honored Contributor

Re: Problem extending /stand with lvextend and extendfs

When using 'lvextend' are you using '-L' or '-l' (ie. upper case L or lower case L)?  The upper case '-L' value is MB.  The lower case 'l' value is in extents (so to get size you have to multiply the # of extents by the physical extent size that the VG was configured with).

 

The upper case '-L' is far easier to use, in my opinion.