HP-UX Secure Resource Partitions (SRP) A.02.01 Administrator's Guide

82
15 Exporting and Importing SRPs
You can export and import an SRP across systems by using the srp export and srp -import
commands. These commands allow you to accomplish the following:
Create a clone of an SRP on a secondary system for high availability or load balancing
purposes.
Migrate an SRP across systems: export and import an SRP, then delete the original SRP.
Create a copy of an SRP for archival purposes. Similarly, an SRP can be taken offline by
exporting and deleting the original SRP.
This chapter discusses the following:
15.1 Using the srp export Command
15.2 Using the srp -import Command
15.3 Best practices for Exporting and Importing an SRP
15.1 Using the srp export Command
The srp -export command exports the configuration data and optionally, specified directories, for
the specified SRP compartment. To export the SRP, the srp -export command copies the
SRP’sdata and stores it in the specified exchange file. The exchange file is used by the srp -
import command. You can only export an SRP that is in a stopped state.
The srp -export command has the following syntax:
srp export [<compartment_name>] [xfile <exchange_file>]
[-b[atch]] [variable=<value>...]
The options are as follows:
compartment_name
Specifies the name of an existing SRP compartment.
exchange_file
Specifies the exchange file name. The file is created if it does not already
exist.
The default is
srp.exchange
.
batch
Run srp-export in batch mode. The command will not prompt for
arguments or template variable values.
variable=value
The most commonly used variables for the export
operation are as follows:
ok_export_dirs Yes or no value indicating whether the
directories identified by the variable $export_copy_dirs should
be exported to the exchange file.
export_copy_dirs The comma separated list of directory
names to be copied to the exchange file if the variable
$ok_export_dirs has the value yes
You can use the following notation to assign a value to a variable:
name=value, name='value', or name="value"