1832857 Members
3267 Online
110048 Solutions
New Discussion

Increasing size of LV

 
SOLVED
Go to solution
Denton Williams
Advisor

Increasing size of LV

Hi All,
I am having problems increasing the size of a logical volume and it is giving me the error:

LV cannot be extended until the file system is able to umount.

Any help in getting this done will be very helpful.

Dee.
Working hard
8 REPLIES 8
Stefan Farrelly
Honored Contributor

Re: Increasing size of LV


Unless you have a purchaseable product from HP called OnlineJFS you cannot extend an Lvol unless you unmount it, eg. /opt or ./var. If its an lvol in VG00 you will need to reboot in single user mode to do this. If its in another VG then you can try to umount it first, then lvextend it, then extendfs it, and remount it and youre done.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Sridhar Bhaskarla
Honored Contributor

Re: Increasing size of LV

Hi Denton,

This is the usual process for extending a logical volume.

1. Unmount the file system.
#umount /filesystem
2. Extend the logical volume
#lvextend -L new_size /dev/vg??/lvol?
3. Extend the file system on the lvol
#extendfs /dev/vg??/lvol?
4. mount the lvol back
#mount /dev/vg??/lvol? /filesystem

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James R. Ferguson
Acclaimed Contributor

Re: Increasing size of LV

Hi Denton:

Unless you have Online JFS, then you *do* need to unmount a filesystem to increase its size.

You can verify that you have Online JFS by doing:

# swlist|grep -i onlinejfs

Regards!

...JRF...
Craig Rants
Honored Contributor
Solution

Re: Increasing size of LV

Denton,
Do you have OnlineJFS, I am assuming not.

Here is the process (this was in the doc I attached to your earlier post)

IV) How to increase the size of a logical volume without online JFS
(advanced JFS).
Note: the following example is using the volume group vg01 and the
logical volume lvhome

Note: Increasing the root filesystem (/) is not feasible

1) lvextend -L 240 /dev/vg01/lvhome
The new total size will be 240M.
2) umount /home
Note: If the filesystem is in use, it is impossible to unmount it.
Therefore stop all the processes (applications) that use the
filesystem then unmount it.
Processes that use /usr and /var cannot be all stopped,
the only solution is to reboot in single user mode.
3) extendfs -F vxfs /dev/vg01/rlvhome
4) mount /dev/vg01/lvhome /home


This is the process with onlineJFS

Extending a logical volume
lvextend ???L 770 /dev/vg00/lvol7
fsadm ???F vxfs ???b 770M /usr


GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jeff Machols
Esteemed Contributor

Re: Increasing size of LV

you will need to unmount the filesystem the LV is mounted to. Then extend the LV, don't forget to extend the filesystem also

extendfd /filesystem

then you can re-mount it
Helen French
Honored Contributor

Re: Increasing size of LV

Denton:

Try this:
1)umount the file system
2)lvextend -L new size (in MB) lvname
3)newfs -F filesystem_type rlvname
4)mount file system

You need to unmount the file system before you extend it.

HTH,
Shiju
Life is a promise, fulfill it!
Uday_S_Ankolekar
Honored Contributor

Re: Increasing size of LV

Hi,

Since you don't have onlineJFS follow these steps to extend LV

1. Verify there is sufficient space in the volume group
vgdisplay -v /dev/vgxx look for Free PE (4Mb physical extents).

If the lvol is not in vg00:

2 umount /dev/vgxx/lvolx
3. lvextend -L size_Mb /dev/vgxx/lvolx

4. extendfs /dev/vgxx/rlvolx

5. mount /dev/vgxx/lvolx

USA...
Good Luck..
Denton Williams
Advisor

Re: Increasing size of LV

Thanks for your help guy's, this is a little too complicated so I will find a way around it for now and address this issue at later date.

Dee.
Working hard