Operating System - HP-UX
1828977 Members
2183 Online
109986 Solutions
New Discussion

How to extend /opt filesystem

 
SOLVED
Go to solution
Daniel Ubeda
Frequent Advisor

How to extend /opt filesystem

I need to extend /opt, and I'm not sure which are the steps.
Daniel
7 REPLIES 7
Christopher McCray_1
Honored Contributor
Solution

Re: How to extend /opt filesystem

Hello,

Boot into single user mode:

Interrupt the boot process

say yes to interact with the ISL and type hpux -is

from there you can do your lvextend and extendfs

Hope this helps

Chris
It wasn't me!!!!
Pete Randall
Outstanding Contributor

Re: How to extend /opt filesystem

If you have the room, create a new /opt (/opt2), load everything from the existing /opt into it, switch the mount points in /etc/fstab, and reboot.

Pete

Pete
Daniel Ubeda
Frequent Advisor

Re: How to extend /opt filesystem

good idea Pete, but I have not free space to do this.
Daniel
Pete Randall
Outstanding Contributor

Re: How to extend /opt filesystem

I understand. It's a rare luxury.

Pete

Pete
Deshpande Prashant
Honored Contributor

Re: How to extend /opt filesystem

Hi
If you have online JFS, you can do this on fly.
#lvextend -L /dev/vg/lvol1

#fsadm -F vxfs -b m /mount_point

Thanks.
Prashant Deshpande.
Take it as it comes.
Martin Johnson
Honored Contributor

Re: How to extend /opt filesystem

Another option is to put one of the subdirectories under /opt into its own file system. To find the best candidate, do "cd /opt; du -kx | sort -rn | more". Use tar or fbackup to backup the data, remove the data, create a new logical volume and file system, mount it to the subdirectory and restore the files.

If you do a subdirectory that is not being actively used, you don't even have to bring down the system.

HTH
Marty
fg_1
Trusted Contributor

Re: How to extend /opt filesystem

Hi

you can do this on the fly with Online JFS installed.

1)lvextend -L /dev/vg/lvol1

2)fsadm -F vxfs -b m /mount_point

Otherwise if you do not have the product then you will need to go into single user mode to
perform the extension.

Gl 2u.