1847170 Members
5868 Online
110263 Solutions
New Discussion

extendfs !!!!

 
Deepu Chakravarty
Regular Advisor

extendfs !!!!

I need to extend one of my logical vol (lvol12). Together with lvextend should I use 'extendfs' also. Or 'lvextend' is sufficient. Is 'extendfs' post-requirement of 'lvextend' ?
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: extendfs !!!!

After doing lvextend (which expands the size of the LV) you must do either extendfs (if you don't have Online JFS) or fsadm (if you DO have Online JFS) to expand the filesystem size.

If you do not have Online JFS you will have to umount the filesystem, run extendfs, and remount the filesystem.

If you do have Online JFS you can just run 'fsadm -b new_size_in_blocks' to resize the filesystem. No unmount required.

man extendfs

man fsadm

for more details.
Con O'Kelly
Honored Contributor

Re: extendfs !!!!

Hi
If you want to extend your Logical volume, you need to use both lvextend and extendfs as follows:

# lvextend -L /dev/vgxx/lvolxx

Then extend the filesystem using
# extendfs /dev/vgxx/lvolxx

OR if you have online JFS use
# fsadm -F vxfs -b M


Cheers
Con
bhavin asokan
Honored Contributor

Re: extendfs !!!!

hi,

first ensure that lvol12 is a filesystem.if it a raw volume you don't have to use extendfs

(assuming lvol12 is in vg00)

#fstyp /dev/vg00/lvol12

a small change to Con O'Kelly's answer
you should use rlvol instead of lvol when using extendfs.

# lvextend -L /dev/vg00/lvol12

# extendfs -F vxfs /dev/vg00/rlvol12
(if your filesystem is vxfs)


regds,

Deepu Chakravarty
Regular Advisor

Re: extendfs !!!!

Hi,
Thanks for the responses.

I intend to extend sixe upto another 10GB (current allocated size is 35GB) to one lvol.

when I give command 'lvextend -L 10240 /dev/vg00/lvolx, it is giving following message :

lvextend: "LogicalExtentsNumber" is not bigger than current setting.

Should I add 10GB to 35GB and then give this extended value ?

Ravi_8
Honored Contributor

Re: extendfs !!!!

Hi,

Yes, you need to add 10GB to existing 35GB to make it 45GB file system

#lvextend -L 46080 /dev/vgxx/lvolx
would make the file syetm of size 45GB
never give up
Deepu Chakravarty
Regular Advisor

Re: extendfs !!!!

I got the desired replies.