Operating System - HP-UX
1753765 Members
6110 Online
108799 Solutions
New Discussion юеВ

problem with extending a file system size

 
SOLVED
Go to solution
praveen..
Super Advisor

problem with extending a file system size

Hi,
i have online JFS but version is B.11.11

root@server:[/root]# swlist -l product | grep JFS
JFS B.11.11 The Base VxFS File System
OnlineJFS B.11.11 Online features of the VxFS File System
PHKL_24026 1.0 JFS Filesystem swap corruption
PHKL_28512 1.0 Fix for POSIX_AIO in JFS3.3
PHKL_29115 1.0 JFS Direct I/O cumulative patch
PHKL_30366 1.0 JFS3.3;ACL patch
root@server:[/root]# uname -a
HP-UX server B.11.11 U 9000/800 4290461787 unlimited-user license


i need to extend a file system size,
can i do it without unmounting that file system?

should i use only these two commands:
#lvextend -L 20480 /dev/vg00/lvol9
#fsadm -F vxfs -b 20480M /opt/oracle

please suggest
9 REPLIES 9
Victor BERRIDGE
Honored Contributor

Re: problem with extending a file system size

Hi,

You could of couse use SAM for this...

Now in command line, yes you use the two commands:
#lvextend -L 20480 /dev/vg00/lvol9
#fsadm -F vxfs -b 20480000 /opt/oracle

But enlighten me, why so big for /opt/oracle in vg00?

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: problem with extending a file system size

Hi,

You could of couse use SAM for this...

Now in command line, yes you use the two commands:
#lvextend -L 20480 /dev/vg00/lvol9
#fsadm -b 20480000 /opt/oracle

But enlighten me, why so big for /opt/oracle in vg00?

All the best
Victor
A. Clay Stephenson
Acclaimed Contributor

Re: problem with extending a file system size

You are close,

lvextend -L 20480
would correspond to a -b argument for fsadm of 20971520.

This can be done while the filesystem is mounted and applications are running as long as this is actually a vxfs filesystem. That's the one point that you did not make certain. You need to execute "fstyp /dev/vg00/lvol9".

Finally, I would not install Oracle in vg00. vg00 should be used for the OS and HP supplied executables and very little else.
If it ain't broke, I can fix that.
Josiah Henline
Valued Contributor

Re: problem with extending a file system size

I believe you need to know the number of bytes / sector. You can get this from a disk info. It should be 512.

1MB = 1024bytes * 1024bytes = 1048576
1048576bytes * 20480Mbytes = 21474836480bytes
21474836480bytes / 512bytes per sector = 41943040 sectors.

fsadm -F vxfs -b 41943040 /dev/vg00/lvol9
If at first you don't succeed, read the man page.
Josiah Henline
Valued Contributor

Re: problem with extending a file system size

From the man page:
-b newsize Resize the file system to newsize sectors.


Online JFS will allow you to extend the file system while it is mounted.
If at first you don't succeed, read the man page.
Patrick Wallek
Honored Contributor

Re: problem with extending a file system size

Actually the '-b' option to fsadm will accept the size in MB as long as you add a 'm' or 'M' to the end of the size.

# fsadm -b 20480m /opt/oracle

is perfectly valid, but undocumented in the man page, syntax.
praveen..
Super Advisor

Re: problem with extending a file system size

i checked with fstyp command and found that this is vxfs file systems.

so can i run these two commands for extending the size without unmounting the file systems.

#lvextend -L 20480 /dev/vg00/lvol9
#fsadm -F vxfs -b 20480M /opt/oracle
Darrel Louis
Honored Contributor
Solution

Re: problem with extending a file system size

Praveen,

Yes it's oke to perform as you suggested

Darrel
praveen..
Super Advisor

Re: problem with extending a file system size

#lvextend -L 20480 /dev/vg00/lvol9
#fsadm -F vxfs -b 20480M /opt/oracle

it works