lvextend

 
SOLVED
Go to solution
Sridhar R
Regular Advisor

lvextend

Hi,

I am in process of extending an LV. I did,


#umount /applbsc
#lvextend -L 81920 /dev/vg00/lvol9
#mount /dev/vg00/lvol9 /applbsc

I was able to successfully extend it and got the message.

But, the bdf was still showing it is 50 GB.

When i checked with SAM, it was showing 80 GB, i tried rebooting the server. Still the bdf output was same.


Now i have a huge tar file of 31 GB which i want to restore in this directory.

What is the exact size of this lvol right now??

Thanks in Advance!
Sridhar
13 REPLIES 13
Mridul Shrivastava
Honored Contributor

Re: lvextend

Lvol is of 80 GB but the filesystem is of 50GB since you never extended the filesystem.

You have to extend the filesystem after extending the lvol using extendfs after unmounting the filesystem.

If you have online jfs then it could be done online using fsadm command.

Once filesystem is extended then after mount you will see full 80GB space.
Time has a wonderful way of weeding out the trivial
Jeeshan
Honored Contributor

Re: lvextend

now you need to extened your file system using the command if you have online JFS installed

# fsadm -F vxfs -b M /applbsc
a warrior never quits
Sridhar R
Regular Advisor

Re: lvextend

Thanks for the reply!

I hope i don't have online JFS. How to determine an online JFS is exixting or not??

In case if i dont have it, how to extend??

Jeeshan
Honored Contributor

Re: lvextend

if u have online JFS installed in your machine, you can verify it with

#swlist -l product|grep JFS

and license in 11iv1 is

#vxlicense -p

and 11iv2 is

#vxlicrep
a warrior never quits
Heiner E. Lennackers
Respected Contributor

Re: lvextend

You can use "extendfs" to extend the filesystem offline.
if this makes any sense to you, you have a BIG problem
Mridul Shrivastava
Honored Contributor

Re: lvextend

use /usr/sbin/swlist -l product |grep -i JFS to check online jfs.

Else unmount the filesystem as suggested above and use extendfs.
Time has a wonderful way of weeding out the trivial
Shrikant Lavhate
Esteemed Contributor
Solution

Re: lvextend

Hi Sidhar,

As you are not having online JFS Complete process should be:

#umount /applbsc
#lvextend -L 81920 /dev/vg00/lvol9
#extendfs -F vxfs /dev/vg00/rlvol9
#mount /dev/vg00/lvol9 /applbsc

Assuming your lvol9 FS is vxfs.

-=ShRi=-
Will it remain a personal, if I broadcast it here!
Sajjad Sahir
Honored Contributor

Re: lvextend



Dear Sridhar

first u have to clear online jfs is installed or not
swlist -l product | grep -i jfs

once it is installed u can extend the file systm by usning fsadm without unmount
if u are extending logical volume u extending logical volume only not file system
if u want to extend file system u have to use fsadm command.

for example if u are extending
a logical volume 5 gb from 2 gb
u logical volume is extende upto 5 gb
but u file system is still 2 gb
this is concept behind it
piyush mathiya
Trusted Contributor

Re: lvextend

Dear Sudhir,
I have exect steps, just follow it, if you don't have Online JFS.

Regards,
Piyush Mathiya

# umount /applbsc
# lvextend -L 81920 /dev/vg00/lvol9
# extendfs -F vxfs /dev/vg00/rlvol9
# mount /dev/vg00/lvol9 /applbsc