Operating System - HP-UX
1832921 Members
3208 Online
110048 Solutions
New Discussion

Re: problem when installing on alternate root using swinstall

 
Raisaab
Advisor

problem when installing on alternate root using swinstall

Hello Guru's,
I am having swinstall problems when i am trying to install my self made package at alternate location other than root.
The details of the error as it comes in swagent.log file is given below. The package get's installed properly if i use the default root directory as target.
Basically,
If you see the swagent.log file which i had sent to you, there you can see that the analyasis phase succeeds. Than it carries out the initial install step, where it estimates the disk space, goes to my control script to and set's the SET_ROOT_DIRECTORY to /temp. Than it also loads the entire software to 100%. The problem occurs when it executes install clean, which uses /usr/lbin/install_clean. This script
exits when the SW_ROOT_DIRECTORY is not equal to shared or private root ( the old days of NFS Diskless machines ) by giving the warnings in transitional links. The main problem is later it does not go ahead with configure step
I AM WONDERING IT SHOULD ALLOW me to do because i am using GUE method of swinstall.
Also let me know if we want to do installation at alternate target say /temp do we need to generate response file for alternate target ( /temp )
swask -s /var/tmp.depot Product @ /temp
or will it do if swask is created for /.
Any thoughts ...
Details of swagent.log file
-----------------------------------------------
* Reading source for file information.
NOTE: SW_ROOT_DIRECTORY is set to /temp
NOTE: Location of alternate root /temp
* Executing preDSA command.
NOTE: The used disk space on filesystem "/temp" is estimated to
increase by 165708 Kbytes.
This will leave 21724587 Kbytes of available user disk space
after the installation.

* Summary of Analysis Phase:
* 1 of 1 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.


* Beginning the Install Execution Phase.
* Filesets: 1
* Files: 3048
* Kbytes: 157186
* Installing fileset "PatrolAgent.Patrol-RUN,r=1.0_A0" (1 of 1).
* Running install clean command /usr/lbin/sw/install_clean.
WARNING: Transition links are not created for the filesets installed
at the target. After booting up from the system using
the alternate root at the target, run tlinstall command to
create transition links.
WARNING: The command "/usr/lbin/sw/install_clean" had warnings. The
installation will continue. Check the above output for
details about the warnings.
* Building the software file "/temp/var/adm/sw/needs_config" to
be used for post-reboot "swconfig" execution. The information
in this file will be used as input to "swconfig" after the
system reboots.

* Summary of Execution Phase:
* 1 of 1 filesets had no Errors or Warnings.
WARNING: The Execution Phase had warnings. See the above output for
details.
20 REPLIES 20
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

You can try to change root (/) directory as,

# swinstall -s @ /changedroot/

Example:

Install an incompatible version of HP Omniback into the directory
/exports:

swinstall -x allow_incompatible=true -s/products Omniback,a=arch \
@ /exports

Refer: man 5 sd for "Alternate Root Directory and Depot Directory"

hth.
Easy to suggest when don't know about the problem!
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

Muthu,
I am giving the same command when installing from the command line.
And it fails with the errors.
Also it fails when i exclusively use swintall GUE. It leaves me wondering because through GUE it should be able to take care of SW_ROOT_DIRECTORY stuff automatically ...
My software package is not incomaptible because it gets installed properly when target installation directory is /.
With warm regards,
Vijay
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

Use swinstall as,

# swinstall -x enforce_locatable=false -s @ /location.

See man 5 sd

enforce_locatable=true
When set to the default value of true, this option
generates an error if a command tries to relocate a
non-relocatable fileset. (Relocatable filesets are
packaged with the is_relocatable attribute set to
true). When set to false, the usual error handling
process is overridden, and SD permits the command to
relocate the fileset.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

Hopefully, this doc will shed some lights

http://docs.hp.com/en/B2355-90789/ch11s04.html

[Software Distributor Administration Guide for HP-UX 11i v2 > Chapter 11. Using Control Scripts -->Using Environment Variables ]

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

Muthu,
I tried the option, but unfortunately it gives the same error.
With regards,
Vijay
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

Have you gone through the doc link ? If not, pls do so http://docs.hp.com/en/B2355-90789/ch11s04.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

Don't go with interactive mode,

Just paste your try.

# swinstall -x enforce_locatable=false -s @ /location

what you are getting with this.

hth.
Easy to suggest when don't know about the problem!
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

May be a problem with problem. Try to remote /etc/mnttab as,

# mv /etc/mnttab /etc/mnttab.old
# sleep 5
# bdf

It will be generated or reboot machine.

Refer this:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=190662

hth.
Easy to suggest when don't know about the problem!
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

Muthu, see the command and output below :-
--------------------------------------------
# swinstall -x enforce_locatable=false -s /var/PA.depot Product @ /temp

======= 10/21/05 19:03:59 SST BEGIN swinstall SESSION
(non-interactive) (jobid=hptest01-0241)

* Session started for user "root@hptest01".

* Beginning Selection
* "hptest01:/temp": This target does not exist and will be
created.
* Source connection succeeded for "hptest01:/var/PA.depot".
* Source: /var/PA.depot
* Targets: hptest01:/temp
* Software selections:
PatrolAgent.Patrol-RUN,r=1.0_A0,a=HP-UX_B.1X.XX_32/64
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "hptest01:/temp".
WARNING: "hptest01:/temp": 1 postinstall or postremove scripts had
warnings.
* Analysis and Execution succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log hptest01-0241 @ hptest01:/temp".

======= 10/21/05 19:04:14 SST END swinstall SESSION (non-interactive)
(jobid=hptest01-0241)


# swjob -a log hptest01-0241 @ hptest01:/temp
======= 10/21/05 19:03:59 SST BEGIN install AGENT SESSION (pid=28857)
(jobid=hptest01-0241)

* Agent session started for user "root@hptest01". (pid=28857)

* Beginning Analysis Phase.
* Source: hptest01:/var/PA.depot
* Target: hptest01:/temp
* Target logfile: hptest01:/temp/var/adm/sw/swagent.log
* Reading source for product information.
* Reading source for file information.
NOTE: SW_ROOT_DIRECTORY is set to /temp
NOTE: Location of alternate root /temp
* Executing preDSA command.
NOTE: The used disk space on filesystem "/temp" is estimated to
increase by 165704 Kbytes.
This will leave 21737963 Kbytes of available user disk space
after the installation.

* Summary of Analysis Phase:
* 1 of 1 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.


* Beginning the Install Execution Phase.
* Filesets: 1
* Files: 3048
* Kbytes: 157186
* Installing fileset "PatrolAgent.Patrol-RUN,r=1.0_A0" (1 of 1).
* Running install clean command /usr/lbin/sw/install_clean.
WARNING: Transition links are not created for the filesets installed
at the target. After booting up from the system using
the alternate root at the target, run tlinstall command to
create transition links.
WARNING: The command "/usr/lbin/sw/install_clean" had warnings. The
installation will continue. Check the above output for
details about the warnings.
* Building the software file "/temp/var/adm/sw/needs_config" to
be used for post-reboot "swconfig" execution. The information
in this file will be used as input to "swconfig" after the
system reboots.

* Summary of Execution Phase:
* 1 of 1 filesets had no Errors or Warnings.
WARNING: The Execution Phase had warnings. See the above output for
details.


======= 10/21/05 19:04:14 SST END install AGENT SESSION (pid=28857)
(jobid=hptest01-0241)

I have included in my .psf file is_locatable value to be true, but i have not done at fileset level, but with this option it should work i suppose
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

Are you doing any special functions with your control scripts ? Please double check your control scripts (preinstall, configure, post install, unconfigure...etc..)

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

Are you using this operation with 10.x machine??

# tlinstall -r /temp

may resolve your problem.

see man tlinstall page fully.

hth.
Easy to suggest when don't know about the problem!
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

If my control script's would have been a problem i think the product should not get install at target root directory i.e / and that is why i am not touching them.

Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

No it is HP-UX 11.11
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

Nope, your assumption is wrong as far as i know. Control scripts do effect if you install in alternate root dirctory and try to create links.. Anyways, i may be wrong. Just check and let us know.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

# tlinstall -l

what it is saying?

hth.

Easy to suggest when don't know about the problem!
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

Arun,
you may be right, if everything fails than i will rewrite the entire application package.

Muthu,
# tlinstall -l
NOTE: tlinstall is searching filesystem - please be patient
NOTE: Successfully completed
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

For transition link, you can try this also

To list all transition links on the system that have been accessed
within the last 5 minutes:

# tllist -t 5

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: problem when installing on alternate root using swinstall

:(( I am getting strange here. Plz do one thing that post your package (psf) file and scripts here. I am sure you will get response and solution.

hv a good week-end. Assign 0 points.

hth.

Easy to suggest when don't know about the problem!
Raisaab
Advisor

Re: problem when installing on alternate root using swinstall

And if i compare the swagent.log file for installation with target directory as / and target directory as /temp, the difference i see is after install clean, in / one it gives these message " searching for filesystem be patient" and here it does not, and than ends ... with tranisition link errors ...
Arunvijai_4
Honored Contributor

Re: problem when installing on alternate root using swinstall

I never know that in 11.11, SD calls "tlinstall". Its new to me as well. Possibly, going through http://docs.hp.com/en/B2355-90789/index.html
this may help. I dont have time right now to look this document..

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"