HP 9000 Containers A.03.01 on HP Integrity Server Administrator Guide HP-UX 11i v3 (5900-3112, June 2013)

4 Creating and configuring HP 9000 system container
This chapter explains how to create and configure an HP 9000 system container.
4.1 Setting up user environment for HP 9000 image recovery
If a third-party tool is used to create the HP 9000 server image, and the tool gives preference to
user name and group name over UID and GID respectively, the following settings must be completed
on the host system before recovering the image:
(These steps imply that only the root user can log in to the system during image recovery.)
To backup host user-related files, run the following commands:
$ cp p /etc/passwd /etc/passwd.backup
$ cp p /etc/group /etc/group.backup
$ cp p /etc/nsswitch.conf /etc/nsswitch.conf.backup
Edit the /etc/nsswitch.conf entry for passwd to include only files.
passwd files
Delete all the entries except root, other, bin, sys, adm, and daemon from the /etc/
group file.
Delete all the entries except root, daemon, bin, sys, and adm from the /etc/passwd
file.
4.2 Creating container root directory
Create root directory for HP 9000 system container:
$ mkdir /var/hpsrp/<srp_name>
Mount the VxFS file system for the container root (if applicable):
$ mount F vxfs <from where> /var/hpsrp/<srp_name>
Set ownership and permissions to the root directory:
$ chown root:sys /var/hpsrp/<srp_name>
$ chmod 0755 /var/hpsrp/<srp_name>
In the following sections of the document, the container root directory is referred as
<hp9000_root>.
4.3 Recovering HP 9000 image
This section explains the steps for recovering an HP 9000 file system image.
4.3.1 Configuring mount points
Create the mount points on the HP-UX 11i v3 host to recover container subdirectories (if applicable).
For example:
$ mkdir <hp9000_root>/var
$ chown bin:bin <hp9000_root>/var
$ mount F vxfs <from where> <hp9000_root>/var
HP 9000 Containers does not support the /dev and /sbin directories as mount points inside a
container file system.
4.1 Setting up user environment for HP 9000 image recovery 21