Operating System - HP-UX
1753922 Members
7607 Online
108810 Solutions
New Discussion юеВ

Increasing file system without unmount it

 
SOLVED
Go to solution
dictum9
Super Advisor

Increasing file system without unmount it


I have to increase a non-vg00 filesystem without unmount it.

After lvextend, do I have to run fsadm, or must I unmount, run lvextend then and remount it?

TEN_POINTS
7 REPLIES 7
Dave Hutton
Honored Contributor
Solution

Re: Increasing file system without unmount it

If you have online jfs you can extend any filesystem on the file

fsadm -F vxfs -b (sizemegs*1024) /mountpoint

I know theres a better flag for the -b option but I'm just used to doing size in megs *1024

If you don't have OnlineJFS you do have to unmount it and extendfs -F vxfs /dev/vgXX/lvolXX

A. Clay Stephenson
Acclaimed Contributor

Re: Increasing file system without unmount it

If you have OnlineJFS (and if this is a vxfs filesystem) then all you have to do is run fsadm -- and the filesystem can remain mountedand in use. If you do not have the optional OnlineJFS product then the filesystem must first be umounted.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Increasing file system without unmount it

If you have OnlineJFS (and if this is a vxfs filesystem) then all you have to do is run fsadm -- and the filesystem can remain mounted and in use. If you do not have the optional OnlineJFS product then the filesystem must first be umounted.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Increasing file system without unmount it

Hi:

You *must* have OnlineJFS in order to obviate the need to unmount a filesystem and use 'extendfs' to enlarge it.

If you have OnlineJFS, you can 'lvextend' the logical volume and resize the filesystem within it with 'fsadm' --- all without unmounting the filesystem.

Regards!

...JRF...
dictum9
Super Advisor

Re: Increasing file system without unmount it

OK, I have OnlineJFS and it worked.
Pattabhi
Frequent Advisor

Re: Increasing file system without unmount it

Hi All,

i have online jfs installed on my box
swlist -l product |grep -i jfs
JFS B.11.23 The Base VxFS File System
OnlineJFS01 4.1.004 Online features of the VxFS File System


but trying to expand the /opt FS to 8GB from 5GB gives me the following error

fsadm -F vxfs -b 8000000 /opt
UX:vxfs fsadm: ERROR: V-3-25811: cannot expand /dev/vg00/rlvol6 more than size of the underlying device - 5537792 sectors

Am i missing something here?


Regards,
Pattabhi Raman
Peter Nikitka
Honored Contributor

Re: Increasing file system without unmount it

Hi Pattabhi,

please open a seperate thread!

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"