Operating System - HP-UX
1752815 Members
5926 Online
108789 Solutions
New Discussion юеВ

Re: Regarding extend of existing filesystem in HP-UX 11i

 
Veda_1
New Member

Regarding extend of existing filesystem in HP-UX 11i

How to extend /opt filesystem in HP-UX 11i.
When I umount /opt.It is giving error message .Device busy.In single user mode also.
7 REPLIES 7
Rita C Workman
Honored Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

If you rebooted and went into single user mode...the only file systems that you would want mounted is / (root) and /usr. /opt doesn't mount in single user mode unless you do it manually.
My guess is you dropped to single user status, but didn't reboot and interupt the boot process to get into single user. So you may want to do this.

Reboot
Interupt boot
Interact with ISL> Yes
boot> hpux -is

Next:
mount /dev/vg00/lvol_ /usr

Extend:
lvextend -l xxx /dev/vg00/lvol_ (in PE)
or
lvextend -L xxx /dev/vg00/lvol_ (in Mb)
extendfs /dev/vg00/rlvol_

Now bring the rest up...
mount -a
init3 (or whatever init level you use)

Rgrds,
Rita
Rajeev  Shukla
Honored Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

If you have gone to single usermode from init 3 then you'll find /opt still being used and you'll have problem unmounting it.

So you need to go to single user from the boot prompt (from ISL) by terminating the boot sequence. And in single user mode all filesystem are unmounted except root.
From then you can unmount, extend and bring back to multiuser mode or reboot again.

And if you have OnlineJFS(a licenced product) you dont need to unmount the filesystem. You can then extend FS on fly.

Steven E. Protter
Exalted Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

You should be able to clear connections to the /opt filesystem without going to single user mode.

fuser -cu /opt

shows processes

fuser /cuk /opt

terminates them.

It would be best to shut down optional applications first, but at that point the umount command will work.

Regards,

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
Fragon
Trusted Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

Hi there,
Since the /opt can be umounted, I think a reboot is admitted. It make more clear to extend a file system.
You should record which LV mount on /usr and which LV mount on /opt. Normally there are lvol7 & lvol5 (in my mechine).
First you should mount /usr:
# /sbin/mount /dev/vg00/lvol7 /usr
Then you can extend the /opt just like the steps posted above!

Good luck!
Stanimir
Trusted Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

I thing you need to use fuser
to find and kill processes,which keeping
device busy.
But you need to use log.device file, related to /opt, not fs:

#fuser /dev/vgoo/lvolXX

Regards.
Camel_1
Valued Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

If you have online JFS you can run lvextend and fsadm to extend /opt online. Otherwise I think you better boot server to single user mode and extend the file system.
Todd McDaniel_1
Honored Contributor

Re: Regarding extend of existing filesystem in HP-UX 11i

If you have JFS Online, you should be able to extend it while mounted...

lvextend -l 500 /dev/vg00/usr
fsadm -F vxfs -b 2048000 /usr

If not then you must reboot to single and use:

lvextend -l 500 /dev/vg00/usr
extendfs -F vxfs ... ...


Make sure you are not in /usr too hehe...Coming up to single user will only have / mounted.
Unix, the other white meat.