HP-UX Containers (SRP) A.03.01 Administrator's Guide
47
NOTE:
• To export the directories mounted via the fstab
(/var/hpsrp/container_name/etc/fstab) file of the container, you must mount the
directories prior to executing the srp –export command, as follows:
1. Start the container:
#srp –start container_name
2. Export the container:
#srp –export container_name
3. Stop the container:
#srp –stop container_name
• For workload containers: User and group definitions are system properties that are not
container specific and therefore are not exported with the container. The compartment login
permissions for users and groups allowed to login to the container will be exported, but you
must ensure that the required users and groups are configured on the target system, or are
accessible via a common name service, such as LDAP-UX.
For example, to export myContainer and all directories under the myContainer home directory,
enter:
#
srp –export myContainer export_copy_dirs=/var/hpsrp/myContainer
6.9.2 Using the srp –import command
The srp -import command imports the container contained in the specified exchange file,
optionally assigning the imported container a new name. The exchange file contains the previously
exported container’s configuration, and possibly filesystem directories. The srp -import command
validates the ability of the target system to accept the exchange file and configures the new container.
You can only import a container that does not exist on the target system.
NOTE: If the container in the exchange file exists on the system, the import command must specify
a new container name that does not exist on the system.
You can save the exchange file for archival purposes, create a copy of the original container by
importing it with a different container name, or you can import the container on another system
without changing the container name.
For system and workload containers: If the new container's name is different from the source
container's name in the exchange file, then the source container's network configuration will not be
imported. Instead, you will be required to provide new network configuration in the same manner as
the add operation. If the imported container has the ipsec and ipfilter services configured,
these will be updated to use the newly provided IP address for the container.
The srp -import command has the following syntax:
srp –import container_name [-b[atch]] [-preview] [–xfile <exchange_file>]
[variable=<value>...]
Where:
container_name
Specifies the name of the new container.
batch
Runs srp -import in batch mode. The command will not prompt for
arguments or template variable values.