Operating System - HP-UX
1826042 Members
2875 Online
109690 Solutions
New Discussion

Re: These extents free or not?

 
Vassily Gorbounov_1
Occasional Advisor

These extents free or not?

Hi, everybody.
I've encountered a problem with increasing /var filesystem (cause many software
[patches] tries to put itself in /var/adm/sw).
So, I've umounted all filesystems (including /var) and after that vgdisplay of
the root VG showed that there are 144 free extents remained in it.
But when I have tried to increase current size from 112 extents to 836 MB (
that is 209 extents) the lvextend command showed below told me that there
aren't so many extents.

What could happen?

And the second question :

When I needed to umount /var filesystem I had to kill syncer process although
fuser command showed no processes using that filesystem. (umount gave "Device
busy")

Thanks a lot.

Vassily
7 REPLIES 7
Sy-hoang Truong_1
Occasional Advisor

Re: These extents free or not?

Hi,
If you want extend /var , you shoud shutdown your system with a single mode
# shutdown -y 0

In order to extend your /var . Please see :

# man lvextend

Good luck



Randy Mather
Frequent Advisor

Re: These extents free or not?

If someone is looged in and has cd'd into the directory, fuser will not reply
with pids. Use the
fuser -k to kill processes that are accessing the filesystem. fuser -u will
report these without killing them.
Steve White_8
Frequent Advisor

Re: These extents free or not?

You need to type vgdisplay -v /dev/vg00 |more

Whatever the number of free physical extents that are reported in the first
screen are then available for use with a logical volume. You would type
lvextend -l 209 /dev/vg00/rlvol8 or what number /var is equal to.

If that fails then check the logical volume to review the policy i.e. is it set
to stricy contiguos or something like that.
Alan Riggs_1
Regular Advisor

Re: These extents free or not?

You may also want to check the extent size when looking at your vgdisplay -v.
It is possible that this volume group was created with an extent size smaller
than the default 4 Meg.

Also, regarding fuser. Running fuser against the logical volume rather than
the filesystem will often show you additional processes that are tied to the
resource.
Vassily Gorbounov_1
Occasional Advisor

Re: These extents free or not?

Hi, all.
Thanks for your answers.
I would only like to define it in more details:
1. I 've transfered system to the single-user before doing it.
2. Seems to me that if user is logged on (in multi-user) and CD'd to the
directory, then fuser will show PID if the user's shell.

Thanks,
Vassily
Vassily Gorbounov_1
Occasional Advisor

Re: These extents free or not?

Hi, all.
One more detail:
I've checked allocation policy - it's not contiguous allocation.
But this lvol is mirrored - may be there are some other rules for extending
logical volumes which are mirrored.
Cause I even tried to increase it by 20 MBytes (5 extents - 1 extent-4 MB [I've
checked]) but it's not working - no space.

Thanks .
Vassily
Alan Riggs_1
Regular Advisor

Re: These extents free or not?

Vasilly,
Is the space available in your VG all on one disk? If so, and if your
mirroring policy is strict, then you will not be able to increase the size of
the logical volume. The strict allocation policy (default) prevents mirror
copies from sharing the same physical volume.