1833187 Members
3112 Online
110051 Solutions
New Discussion

Extend filesystem by 5gb

 
SOLVED
Go to solution
Hkandati
Occasional Advisor

Extend filesystem by 5gb

Hi all

I am working on HP box(ver b.11.11).I want to extend /u01 filesystem by 5gb,so please kindly assist me in steps involved in extending the filesystem.

Thanks in advance.

-
Hari
14 REPLIES 14
A. Clay Stephenson
Acclaimed Contributor

Re: Extend filesystem by 5gb

The process varies upon whether or not you have OnlineJFS installed.

1) lvextend -L larger_size /dev/vg02/lvol3
2) If you have OnlineJFS, execute fsadm -F vxfs -b newsize /myfilesystem
If you do not have OnlineFS:
a) umount /myfilesystem
b) extendfs -F vxfs -s newsize /dev/vg02/rlvol3
c) mount /myfilesystem

Man lvextend, fsadm_vxfs, extendfs_vxfs for details. I assume this is a vxfs filesystem if not look for the corresponding hfs commands.

If it ain't broke, I can fix that.
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: Extend filesystem by 5gb

Hi Hari,

Depends a bit on if you do don't have OnlineJFS installed.

Without OnlineJFS.

# umount /filesystem
# lvextend -L new_size_mb /dev/vgxx/lvoly
# extendfs -F vxfs /dev/vgxx/rlovy
# mount /filesystem

With OnlineJFS

# lvextend -L new_size_mb /dev/vgxx/lvoly
# fsadm -F vxfs -b "new_size"M /dev/vgXX/lvolXX

Regards,
Robert-Jan
Steven E. Protter
Exalted Contributor

Re: Extend filesystem by 5gb

Shalom,

Well you need to have the current size of the file system, because both lvextend and fsadm require you to submit not how much you wish to increase the file system size by, but what new total you desire.

Even if you don't have Online JFS, you can replace the fsadm step with extendfs if you umount the file system first.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Hi Stephenson and Robert,

Thanks a lot for reply.

-
Hari
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Hi

May I know how to check my box has online jfs.

Hari
Robert-Jan Goossens_1
Honored Contributor

Re: Extend filesystem by 5gb

Hi,

# swlist |grep -i online

search for the OnlineJFS depot in your output.

Regards,
Robert-Jan
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Jan

Getting the following error

$ swlist | grep -i onlin
sh: swlist: not found.
$

do the the needfull

Hari
Robert-Jan Goossens_1
Honored Contributor

Re: Extend filesystem by 5gb

Hari,

# /usr/sbin/swlist |grep -i online

Robert-Jan
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Thanks Jan
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Jan

Verified the it is online JFS by the below o/p
_________________________________
$ swlist |grep -i online
B3929CA B.11.11 HP OnLineJFS
OnlineDiag B.11.11.10.11 HPUX 11.11 Support Tools
Bundle, Mar 2003
$
_________________________________

Now I want to extend the below mentioned filesystem.
_________________________________

$ df -k /u01/app/oracle
/u01/app/oracle (/dev/vgtivoli/lvol2 ) : 15352112 total allocated Kb
2048056 free allocated Kb
13304056 used allocated Kb
86 % allocation used
$
_________________________________

So I am executing the below commands to extend the filesystem by 5gb, please confirm wheither it is right.

$ lvextend -L 5gb /dev/vgtivoli/lvol2

and then

$ fsadm -F vxfs -b 5gb M /dev/vgtivoli/lvol2

_________________________________

Please verify and comfirm me ASAP

Thanks
Hari
Sandman!
Honored Contributor

Re: Extend filesystem by 5gb

# lvextend -L 5120M /dev/vgtivoli/lvol2
and
# fsadm -F vxfs -b 5120M /u01/app/oracle
Patrick Wallek
Honored Contributor

Re: Extend filesystem by 5gb

NO NO NO.

You must put the NEW SIZE of the file system on your lvextend command line.

Doing:

# lvextend -L 5120
will just make the filesystem 5GB if it is SMALLER than that.

It appears as if you file system is currently approx. 15 GB in size. You said you want to extend by 5GB, so that would make it 20GB.

What you need to do is:

# lvextend -L 20480 /dev/vgtivoli/lvol2
and
# fsadm -F vxfs -b 20480M /u01/app/oracle

Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Thanks a lot to all!!!
Hkandati
Occasional Advisor

Re: Extend filesystem by 5gb

Thanks a lot to all for spending there valuable time in helping me