Re: Insufficient Space in /opt (282 Views)
Reply
Occasional Advisor
Posts: 12
Registered: ‎08-22-2007
Message 1 of 9 (282 Views)
Accepted Solution

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
Outstanding Contributor
Posts: 16,207
Registered: ‎11-03-1996
Message 2 of 9 (282 Views)

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
Occasional Advisor
Posts: 12
Registered: ‎08-22-2007
Message 3 of 9 (282 Views)

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....
Occasional Advisor
Posts: 12
Registered: ‎08-22-2007
Message 4 of 9 (282 Views)

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 ?

Outstanding Contributor
Posts: 16,207
Registered: ‎11-03-1996
Message 5 of 9 (282 Views)

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
Highlighted
Honored Contributor
Posts: 1,836
Registered: ‎09-26-2000
Message 6 of 9 (282 Views)

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"
Occasional Advisor
Posts: 12
Registered: ‎08-22-2007
Message 7 of 9 (282 Views)

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

Acclaimed Contributor
Posts: 26,109
Registered: ‎03-06-2006
Message 8 of 9 (282 Views)

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.

Occasional Advisor
Posts: 12
Registered: ‎08-22-2007
Message 9 of 9 (282 Views)

Re: Insufficient Space in /opt

Thank you all
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.