1833012 Members
3070 Online
110048 Solutions
New Discussion

swinstall command

 
SOLVED
Go to solution
Sunny Chen
Occasional Advisor

swinstall command

Hi, there:
I just want to install a bundle of hp application from cdrom, I use "swinstall", but my problem is the /opt will be full, so I create a new /opt2 and try to install them to /opt2, I don't want to extend the size of /opt. Any good ideas? thanks a lot!
Life is 10 percent what you make it and 90 percent how you take it.
12 REPLIES 12
John Palmer
Honored Contributor

Re: swinstall command

swinstall will insist on installing in /opt.

Among other things, you could:-

1. move one (or more) subdirectories into /opt2 and install a soft link in /opt.
2. Mount your /opt filesystem at /opt/ and amend /etc/fstab accordingly

Neither are as clean and tidy as having everything in /opt.
Steve Sauve
Frequent Advisor

Re: swinstall command

You could mount another lvol under /opt to take the place of a large directory there. Another option would be to link a directory to another mountpoint (don't know if linking directories to /opt is a great idea though). Not sure why you don't want to extend /opt, but that may be the best choice.

Hope this helps,
Steve
Andy Monks
Honored Contributor
Solution

Re: swinstall command

If you know the directories involved it's possible. I had the same problem with omniback recently.

So, I created a /disk2 filesystem and then did a 'mkdir /disk2/omni'. Then a 'ln -s /disk2/omni/ /opt/omni'

Then the swinstall worked.

But you'll need to know the names of the directories under /opt for this to work.
Rick Garland
Honored Contributor

Re: swinstall command

swinstall will be looking at /opt. Even though you don't want to, to be clean you will need to increase /opt
Stefan Farrelly
Honored Contributor

Re: swinstall command


No, I dont think it is a good idea to create a new /opt2 and try to install there - im note sure you could anyway, swinstall will still try to install to /opt. The preferred option is to increase /opt. If you really cant do this then you could move some directories to a new filesystem and create a symbolic link from /opt/ to //. This would free up some space on /opt and hopefully enough to install your product.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Antoanetta Naghiu
Esteemed Contributor

Re: swinstall command

You can do:
ln -s /opt2 /opt/opt2
or create a link directly to the application.
If you need space under /opt for patches, I'm afraid you need to free up a bit of space.
You can move, for ex. hpnp stuff under your opt2 if you made the link.
James R. Ferguson
Acclaimed Contributor

Re: swinstall command

Hi:

I would see if anything is in /opt that shouldn't be -- perhaps a stray core file. I would simply lvextend /opt. If you have online JFS you can do this "on-the-fly", otherwise you will need to unmount /opt which generally forces you to do the extension in single-user-mode.

...JRF...
CHRIS_ANORUO
Honored Contributor

Re: swinstall command

SUNNY, THE BEST WAY IS TO DO IT ANDY'S WAY.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
RikTytgat
Honored Contributor

Re: swinstall command

Hi,

I agree, but swinstall will still check the free space on /opt unless you use the option

-x enforce_dsa=true

Bye,
Rik
Andy Monks
Honored Contributor

Re: swinstall command

Thanks Chris. It worked for me, however, I only needed omniback and I knew it's directory name.
Sunny Chen
Occasional Advisor

Re: swinstall command

Thanks All, the reason I don't want to extend /opt just because I don't want shutdown the server, and the file system is HFS, I got your ideas, thanks a lot.
Life is 10 percent what you make it and 90 percent how you take it.
Anthony Goonetilleke
Esteemed Contributor

Re: swinstall command

Sorry guys I tend to disagree...
You can install software where ever you want...
When you are in swinstall mark the sofware for installation click on it, then go to the Actions menu, and select "Change Product Location" now you can install it where ever you want even /opt2
Minimum effort maximum output!