Operating System - HP-UX
1835243 Members
2155 Online
110078 Solutions
New Discussion

Re: extending filestystems in single user mode

 
SOLVED
Go to solution
lawrenzo_1
Super Advisor

extending filestystems in single user mode

Hi all,

Please can someone advise how I can extend filesystems in single user mode?

The situation is that I cannot extend when in multiuser mode, fsadm hangs because oracle is mounted on these FS's.

I boot into single user mode and the lvextend command has already been done so I just need to fsadm it but i cannot mount:

mount /dev/vg04/lvol8 /opt/oracle/u14 from 50gb to 130gb.

So this fails, I was under the impression I should be able to fsadm in multiuser mode.

Please help .............

Ty Lawrenzo
hello
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: extending filestystems in single user mode

Hi Lawrenzo:

Since 'fsadm' is '/usr/sbin/fsadm' you need to mount '/usr' to use the command. The filesystem doesn't need to be mounted to use this command. When done, a clean startup method is to reboot again.

Regards!

...JRF...
A. Clay Stephenson
Acclaimed Contributor

Re: extending filestystems in single user mode

You can fsadm -F vxfs while mounted but ONLY if you have the optional OnlineJFS product installed and ONLY if this is a vxfs filesystem. Otherwise, you execute extendfs on an unmounted filesystem. You should be able to shutdown the database and then umount the filesystems.
If it ain't broke, I can fix that.
Jeff_Traigle
Honored Contributor

Re: extending filestystems in single user mode

If you have OnlineJFS, you should be able to extend the file system regardless what has files open on it.

If you're in single user mode, however, you can simply "extendfs -F vxfs /dev/vg04/rlvol8"
--
Jeff Traigle
AshishJain_USA
Frequent Advisor

Re: extending filestystems in single user mode

Hi

In the single user mode, do

vgchange -a y /dev/vg00
mount /usr

NOw, u shud be able to perform fsadm and extend the filesystem.

rgds...Ashish
Jan de Haas_3
Frequent Advisor

Re: extending filestystems in single user mode

So if you do an lvdisplay of the logical volume, you already see that the current size is 150GB?!

Did you stop Oracle and did you unmount the filesystem before you tried to enlarge the filesystem?

If you can't unmount a filesystem, check with 'fuser' which process is still using the filesystem. Then kill the process to be able to unmount the filesystem.

After doing an lvextend, just use the 'extendfs' command to increase the size of the filesystem as well. After that the filesystem should be able to mount.

If this still doesn't resolve your problem, please provide a bit more information. Any errors you're getting, etc...

Good luck,
Jan.

lawrenzo_1
Super Advisor

Re: extending filestystems in single user mode

sorry should have displayed these:

# fsadm -F vxfs -b 13614880 /opt/oracle/u14
fsadm: You don't have a license to run this program


# mount /dev/vg04/lvol8 /opt/oracle/u14
mount: /opt/oracle/u14: No such file or directory

# extendfs -F vxfs /dev/vg04/lvol8
vxfs extendfs: Cannot open /dev/vg04/lvol8: No such device or address
cannot open device /dev/vg04/lvol8
hello
Jeff_Traigle
Honored Contributor
Solution

Re: extending filestystems in single user mode

You must use the character (raw) device file with extendfs as I indicated in my previous post.

And your mount command is telling you that the directory you're trying to use as your mount point, /opt/oracle/u14, does not exist. If you're in single use mode and didn't mount /opt, then you need to do that if you had a u14 directory under /opt/oracle in multi-user mode. When booting to single-user mode, only / file system is mounted.

It's also usually necessary to use the "-F vxfs" on the mount command to be sure it knows what type of file system it's supposed to be mounting. By default, it assumes hfs if not specified, I think.
--
Jeff Traigle
lawrenzo_1
Super Advisor

Re: extending filestystems in single user mode

the disk for vg04 is attached via the san and using emc storage - will this affect mounting the relevant FS?
hello
lawrenzo_1
Super Advisor

Re: extending filestystems in single user mode

I have now reboot into multiuser mode and figured out I have to stop the database's then carryout the task

Thanks for all your help.
hello