Re: Trouble creating HP 9000 Container (686 Views)
Reply
HP Pro
James Reed_3
Posts: 6
Registered: ‎09-06-2003
Message 1 of 6 (716 Views)
Accepted Solution

Trouble creating HP 9000 Container

[ Edited ]

I am trying to build a HP 9000 container for a proof-of-concept.  I have a vm guest (VSE-OE, 11.31-1209).  I have installed HP-UX-SRP and HP9KContainers.  When I execute the command to create the container, there seems to be a missing file:

/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup.

 

Here is the output from the srp -add command:

 

root@vm01         [/root]
#srp -add packard -t hp9000sys

Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.

Services to add: [cmpt,admin,init,prm,network,provision]
Autostart container at system boot? [yes]
Root user password :
Reenter root user password:
Configure DNS Resolver? [yes]
Domain name: [hp.local]
DNS Server IP Address: [192.168.0.80, 192.168.0.1, 205.171.2.25, 205.171.3.25]
Use rules to restrict unsupported commands? [no]
List of Unix user names for container administrator: [root]
PRM group name to associate with this container: [packard]
PRM group type (FSS, PSET): [FSS]
PRM FSS group CPU shares: [10]
PRM FSS group CPU cap (press return for no cap): []
PRM group memory shares: [10]
PRM group memory cap (press return for no cap): []
PRM group shared memory (press return for no dedicated memory): []
IP address: 192.168.0.202
Add IP address to netconf file? [yes]
IP subnet mask (press return to accept default): []
Network interface name: lan0
Gateway server IP address for default route (0 to skip) [192.168.0.202]

The following template variables have been set to the values shown:

        iface           =  lan0
        ip_address      =  192.168.0.202
        root_password   =  ******


Press return or enter "yes" to make the selected modifications with these
values.  Do you wish to continue? [yes]
add compartment rules succeeded
add RBAC admin role for compartment succeeded
add prm rules succeeded
Mounting loopback (LOFS) filesystems ...
Generating swlist ...
Changing root user password ...
Configuring srp user and group ids ...
Configuring sshd ...
Configuring software distributor ...
Configuring DNS Resolver ...
Warning: more than three nameservers configured in /var/hpsrp/packard/etc/resolv.conf
A maximum of three nameservers will be used by the DNS resolver.
Configuring device files ...
Copying products from INIT ...
Deleting unsupported services ...
command "cp -p /opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup /var/hpsrp/packard/sbin/init.d/srp_cleanup 2>&1" failed: cp: cannot access /opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup: No such file or directory

 

 

Anyone have any idea what I am missing, stepwise?

 

Regards,

  Jim Reed

Honored Contributor
Patrick Wallek
Posts: 13,787
Registered: ‎06-21-2000
Message 2 of 6 (708 Views)

Re: Trouble creating HP 9000 Container

The first question is -- Does the file "/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d/srp_cleanup" actually exist?

HP Pro
James Reed_3
Posts: 6
Registered: ‎09-06-2003
Message 3 of 6 (705 Views)

Re: Trouble creating HP 9000 Container

No it does not.

 

root@vm01         [/opt/hpsrp/newconfig/var/hpsrp/sbin/init.d]
#ls
srp_bootup    srp_mount     srp_sd_setup
srp_killall   srp_net       xinetd

 

Jim Reed

Acclaimed Contributor
Dennis Handly
Posts: 25,290
Registered: ‎03-06-2006
Message 4 of 6 (687 Views)

Re: Trouble creating HP 9000 Container

>No it does not.

 

Can you do a find to search other places:

find /opt/hpsrp -name "srp_cleanup*"

HP Pro
James Reed_3
Posts: 6
Registered: ‎09-06-2003
Message 5 of 6 (686 Views)

Re: Trouble creating HP 9000 Container


Dennis Handly wrote:

>No it does not.

 

>Can you do a find to search other places:

>find /opt/hpsrp -name "srp_cleanup*"

 

No, find /opt/hpsrp -name "srp_cleanup*" shows nothing.  Likewise,

find /opt/hpsrp | grep cleanup.

Do you have "golden" (known working installation) where you can check for that file?

 

Jim Reed


 

HP Pro
James Reed_3
Posts: 6
Registered: ‎09-06-2003
Message 6 of 6 (673 Views)

Re: Trouble creating HP 9000 Container

[ Edited ]

This is a recently discovered incompatibility with HP-UX-SRP A.03.01.004 released in September. We are updating HP 9000 Containers product to take care of this. The update HP 9000 Containers A.03.01.04 will be available via web release on Oct 17 (also adding some new features). 

 

 

I applied this version of HP9KContainers (A.03.01.04) and am now able to create my container:

 

root@vm01         [/opt/hpsrp]
#srp -add packard -t hp9000sys

Enter the requested values when prompted, then press return.
Enter "?" for help at prompt. Press control-c to exit.

Services to add: [cmpt,admin,init,prm,network,provision]
Autostart container at system boot? [yes]
Root user password :
Reenter root user password:
Configure DNS Resolver? [yes]
Domain name: [hp.local]
DNS Server IP Address: [192.168.0.80, 192.168.0.1, 205.171.2.25]
Use rules to restrict unsupported commands? [no]
List of Unix user names for container administrator: [root]
PRM group name to associate with this container: [packard]
PRM group type (FSS, PSET): [FSS]
PRM FSS group CPU shares: [10]
PRM FSS group CPU cap (press return for no cap): []
PRM group memory shares: [10]
PRM group memory cap (press return for no cap): []
PRM group shared memory (press return for no dedicated memory): []
IP address: 192.168.0.202
Add IP address to netconf file? [yes]
IP subnet mask (press return to accept default): []
Network interface name: lan0
Gateway server IP address for default route (0 to skip) [192.168.0.202] 192.168.0.1

The following template variables have been set to the values shown:

        gw_ip_address   =  192.168.0.1
        iface           =  lan0
        ip_address      =  192.168.0.202
        root_password   =  ******


Press return or enter "yes" to make the selected modifications with these
values.  Do you wish to continue? [yes]
add compartment rules succeeded
add RBAC admin role for compartment succeeded
add prm rules succeeded
Mounting loopback (LOFS) filesystems ...
Generating swlist ...
Changing root user password ...
Configuring srp user and group ids ...
Configuring sshd ...
Configuring software distributor ...
Configuring DNS Resolver ...
Configuring device files ...
Copying products from INIT ...
Deleting unsupported services ...
Creating ARIES configuration ...
Moving root cron jobs ...
Copying files from INIT ...
Creating symbolic links ...
Replacing unsupported commands,,,
add compartment network service rules succeeded
add provision service succeeded

root@vm01         [/opt/hpsrp]
#srp -status
NAME         TYPE      STATE       SUBTYPE    ROOTPATH
packard      hp9000sys stopped     none       /var/hpsrp/packard

 

 

root@vm01         [/opt/hpsrp]
#

 

 

The problem is solved.

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.