1752380 Members
5964 Online
108788 Solutions
New Discussion юеВ

Extend filesystem by 5gb

 
SOLVED
Go to solution
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