Operating System - HP-UX
1753524 Members
5061 Online
108795 Solutions
New Discussion юеВ

Re: How to entend a file system using onlinejfs

 
SOLVED
Go to solution
Jonathan Grymes
Frequent Advisor

How to entend a file system using onlinejfs

HPUX 11.23
Need to extend a file system from 81gb to new size of 160gb. I have not used the online jfs but I think it is preferred to using SAM and I dont have to unmount the filesystem.
Current Stats:
lvol= gexdata01
volume group= vg01
Type=LVM
USE: VxFS
Total Mbytes=80000
Mount Dir=/h/data
Mbytes available: 206056 of 286056

What do I need to extend /h/data to 160GB
6 REPLIES 6
Vijaykumar_1
Valued Contributor
Solution

Re: How to entend a file system using onlinejfs

Make sure you have enough free space on the VG.

Then do..

lvextend -L 160M /dev/vg01/gexdata01

fsadm -b 160 /h/data

check the resultant size using,

bdf /h/data
VVS
Regular Advisor

Re: How to entend a file system using onlinejfs

Do as below,

lvextend -L 163840M /dev/vg01/gexdata01

fsadm -b 163840M /h/data

check it by using,

bdf /h/data
Work is life, you know, and without it, there's nothing but fear and insecurity.
VVS
Regular Advisor

Re: How to entend a file system using onlinejfs

One small change in fsadm command.
fsadm -F vxfs -b 163840M /h/data
Work is life, you know, and without it, there's nothing but fear and insecurity.
Patrick Wallek
Honored Contributor

Re: How to entend a file system using onlinejfs

Vijaykumar was kind of close.

You need to fist extend the logical volume.

If you use '-L' you specify the size of the LV in MB. For 160GB, you can use:

lvextend -L 160000 /dev/vb01/gexdata01

To extend the file system using fsadm you can use:

fsadm -F vxfs -b 160000m /h/data

Note that fsadm can use the 'm' after the size so you can specify in MB rather than blocks.
Vijaykumar_1
Valued Contributor

Re: How to entend a file system using onlinejfs

Yeah,before i could review i have posted it..and before i could correct that with my next post..you guys replied..

Thanks..
Steven E. Protter
Exalted Contributor

Re: How to entend a file system using onlinejfs

Shalom,

After I lvextend the logical volume I do this, to avoid block calculations which I NEVER get right.

lvdisplay

There is a display of size in megabytes.

If the figure is 18254

fsadm -F vxfs -b 18254m /filesystem_name

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