container_hp9000.5 (2012 03)
c
CONTAINER_HP9000(5) CONTAINER_HP9000(5)
(HP Integrity Systems only)
$ srp -replace <srp_name> -s init
HP 9000 classic container:
User management needs to be performed in the global compartment using login groups. To add a new
user:
$ groupmod -a -l <username> <srp_name-log>
Adding all users of a group:
$ roleadm assign <group-name> SRPlogin-<srp_name>
Modifying IP Address
Stop the container before applying configuration changes.
$ srp -replace <srp_name> -s network
Change ListenAddress
, if configured, to new address in:
/var/hpsrp/<srp_name> /opt/ssh/sshd_config
.
Update hosts databases and files with the new mapping.
Adding a new IP Address for the HP 9000 Container
Find the number of IP addresses configured for the container and next available slot id:
$ srp -list <srp_name> -s network -v
Assign new IP address:
$ srp -add <srp_name> -s network -id <new-id>
Monitoring Applications from Global Compartment
To list only processes running inside an HP 9000 container use:
$ srp_ps <srp_name> <ps options>
To invoke a command in the context of an HP 9000 system container:
$ srp_su <srp_name> <user> -c <command string>
To invoke a command in the context of an HP 9000 classic container:
$ srp_su <srp_name> root -c chroot <hp9000_root> <command string>
HP 9000 Containers Patching
Using Software Distributor (SD) tools is not supported in an HP 9000 classic container.
Software Distributor (SD) tools are supported inside HP 9000 system containers only. However, there is a
set of files that are copied from host into the container. Patching is not supported for these files. Also
there are commands inside the container for which read and execute permissions are disabled.
swin-
stall and swverify will fail for such commands.
HP 9000 Containers Backup and Migration
Backing up and restoring an HP 9000 system container:
To backup container configuration only:
$ srp -export <srp_name> -b
To backup container configuration and the file system:
$ srp -export <srp_name> ok_export_dirs=yes -b
To delete the container configuration and restore from a backup:
$ srp -delete <srp_name> -b
$ srp -import -xfile <name of configuration export file>
To delete the container completely (including file system) and then import from an older backup:
$ srp -delete <srp_name> delete_changes_ok=yes
$ mv /var/hpsrp/<srp_name> <backup location>
$ srp -import -xfile <name of configuration export file>
To copy (clone) a container:
$ srp -export <srp_name> ok_export_dirs=yes -b
$ srp -import <new_srp_name> -xfile <path of export file>
6 Hewlett-Packard Company − 6 − HP-UX 11i Version 3: March 2012