Operating System - HP-UX
1752758 Members
4781 Online
108789 Solutions
New Discussion юеВ

Re: Insufficient Space in /opt

 
SOLVED
Go to solution
Nelson Ros
Occasional Advisor

Insufficient Space in /opt

Trying to install Oracle 10g r2.
Need to install HP ANSI C++ compiler (oracle
requirment). Procurred ANSI C++, however will not let me install because I have insufficient space in /opt directory. (system specifics follow).
My sysadmin allocated all remaining space to /oracle. Question ?
1. Can I de-allocate space from /oracle and then re-use/extend in /opt ? or
2. Is there a switch or command that will allow me to install the compiler in a different directory. ?
My initial guess is that I will have to re-install o/s, and re-apportion the disk space.
Hate to do this as HUPX came pre-installed. Have TAPE LIF image and Golden Image (of existing system)

Thanks

Details of System

HP-UX hpuxsv1 B.11.11 U 9000/785 2005884946 unlimited-user license
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 204800 121552 82688 60% /
/dev/vg00/lvol1 295024 60296 205224 23% /stand
/dev/vg00/lvol8 2609152 385768 2206560 15% /var
/dev/vg00/lvol7 2293760 1227408 1058592 54% /usr
/dev/vg00/lvol4 204800 2592 200824 1% /tmp
/dev/vg00/lvo19 8769536 2351552 6223214 27% /oracle
/dev/vg00/lvol6 1269760 1149696 119192 91% /opt
/dev/vg00/lvol5 20480 2664 17736 13% /home
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: Insufficient Space in /opt

Sure, you can "de-allocate".

lvreduce -L {new size in MB} /dev/vg00/lvo19
newfs /dev/vg00/rlvol9

lvextend /dev/vg00/lvol6
umount /dev/vg00/lvol6
extendfs /dev/vg00/rlvol6

The trick is in getting /opt un-mounted. You will probably have to re-boot in single user mode in order to accomplish this.


Pete

Pete
Nelson Ros
Occasional Advisor

Re: Insufficient Space in /opt

Pete
Thanks

I assume that the newfs command will wipe out all the /oracle directory ???

No problem rebooting in sibgle user mode as long as I do not have to do a "restore" of the o/s I am happy....
Nelson Ros
Occasional Advisor

Re: Insufficient Space in /opt

Here is a description of the filesystem type

/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg00/lvo19 /oracle vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2

Note that /opt is vxfs.
Does this mean that I do not have to reboot in single user mode as /lvol17 is vxfs ?

Pete Randall
Outstanding Contributor

Re: Insufficient Space in /opt

Only if you have OnlineJFS. Do a "swlist |grep -i online" to check.

# swlist |grep -i online
B3929CA B.11.11 HP OnLineJFS
OnlineDiag B.11.11.12.09 HPUX 11.11 Support Tools
Bundle, Sep 2003
OnlineJFS B.11.11.03.03 Online features of the Vx
FS File System


Pete

Pete
Kent Ostby
Honored Contributor

Re: Insufficient Space in /opt

If you have online JFS, you won't need to. However, since you are dealing with the ROOTvg and are doing a reduction as well, you may want to reboot to single user just to ensure that you have all the processes shutdown.

"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Nelson Ros
Occasional Advisor

Re: Insufficient Space in /opt

Thank you..(both of you)

I do not have the required software.
To install it would probably run me into the same problem.

Since my "HP-UX" training happened over 10 years ago,(OLD SCHOOL)I think i'll just do it the old fashioned way via command line and single user mode reboot.

Great response time from both of you. I appreciate the help and will assign points ASAP

thanks Again

Dennis Handly
Acclaimed Contributor

Re: Insufficient Space in /opt

>Need to install HP ANSI C++ compiler (oracle requirement).

You don't need this unless you are installing Oracle Apps.

>2. Is there a switch or command that will allow me to install the compiler in a different directory?

Sure, you can install into an alternate root and then symlink /opt/aCC to that directory.
You won't get /opt/aCC added to /etc/PATH and /etc/MANPATH though.

Of course you can create a symlink from /opt/aCC to another directory and then install normally.

Nelson Ros
Occasional Advisor

Re: Insufficient Space in /opt

Thank you all