Operating System - HP-UX
1820882 Members
3493 Online
109628 Solutions
New Discussion юеВ

Re: how to extend the file system in /opt partition

 
SOLVED
Go to solution
guru_6
Advisor

how to extend the file system in /opt partition

Hi,
In my HP-UX server /opt is about to full. This is in vg00 group. I also have some free space on the same group.

Can I extend the the /opt partition?
Also how to umount the /opt partition?

11 REPLIES 11
Victor BERRIDGE
Honored Contributor

Re: how to extend the file system in /opt partition

Hi,
If you ar not familiar with LVM then use sam,
If you have onlineJFS you can do it on line otherwise you will have to umount /opt, lvextend to the newsize you and extendfs...

to umount be at /, umount /opt,
If it refuses then you have some open/used files on that filesystem...

All the best
Victor
Victor BERRIDGE
Honored Contributor

Re: how to extend the file system in /opt partition

I may add look at the mans...
man lvextend, extendfs fuser and mount...
to see in /opt is used:
fuser -cu /opt


All the best
Victor
ramkumar
Valued Contributor

Re: how to extend the file system in /opt partition

you can extend the opt filesystem by using lvextend command.if you are using vxfs filesystem you need not to unmount the filesystem for mounting . you can use fsadm command to extend the file system

# lvextend -L

#extendfs -F vxfs

it may through an error such as file system already mounted need not to worry . it will extend the file system.

Try it . have a good day
MarkSyder
Honored Contributor

Re: how to extend the file system in /opt partition

Alternatively, if you do not have online JFS and cannot bring the system down, you could move some of the contents in /opt into their own filesystem in a separate logical volume: e.g. /opt/java.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
Carlo Corthouts
Frequent Advisor

Re: how to extend the file system in /opt partition

Since you will bring down most applications used on that machine because they were started from /opt you better boot into single user mode.
This way you donn't have to bother about checking what processes have files open on this filesystem and you maybe have a little maintenance window to do some patching at the same time or check the filesystem usage of the other filesystems and maybe extend there as well.

guru_6
Advisor

Re: how to extend the file system in /opt partition

Hi Victor;ramkumar;carlo,

When I use the below command I get the o/p like this...
# fuser -cu /opt
/opt: 1461mt(root) 1458mt(root) 2129mt(root)

if I use the command
#fuser -ku /opt
and then try to umount the opt, but it still says /opt busy.
Now there are two questions...
1>how to clear the message device is busy for /opt.
2>how to boot the system in single user mode.Its hp-ux11i.



Anitha_3
Frequent Advisor

Re: how to extend the file system in /opt partition

hi neeraj,

boot the system in Single user mode.

--> just interupt the boot process, and give a boot command and say yes for interact with IPL. u will get a prompt
ISL>

ISL>hpux -is ---> for single user mode from there u can increse the file system,

regards,
Govind.
ramkumar
Valued Contributor
Solution

Re: how to extend the file system in /opt partition

hi
this seems to be you are in problems. if you can able to stop the processes you can try by
giving a command

# fuser -ku -c /opt
adn then
# umount -aF vxfs

try it and reply
Robert-Jan Goossens
Honored Contributor

Re: how to extend the file system in /opt partition

Hi,

Try to locate the processes.

1461mt(root) 1458mt(root) 2129

# ps -ef | grep 1461

same for the other 2.

if these are processes you can "spare" kill them.

Regards,
Robert-Jan
Pete Randall
Outstanding Contributor

Re: how to extend the file system in /opt partition

I would be very surprised if you can successfully unmount /opt in a running system, no matter how many processes you kill. Besides, if you're going to be killing all these processes, then you're not going to have much of a running system. The easy answer is to boot into single user mode, as Govind suggested.


Pete

Pete
guru_6
Advisor

Re: how to extend the file system in /opt partition

Thanks to all.

Ramkumar the way you suggested was very easy to adopt as I need not to reboot the system and it also not required the system to bring it into single user mode.

Thanks again