Restore AIX® workload partition file systems
All the files that are created by the local workload partition (WPAR), and backed up by the backup-archive client that is installed at the global WPAR, can be restored by the client installed at the global WPAR.
Here are some global partition and WPAR configuration examples:
Global partition:
system name: shimla
file system: /home /opt
WPAR #1 configuration:
name: wpar1
file system: /home; name in global WPAR: /wpars/wpar1/home
WPAR #2 configuration:
name: wpar2
file system: /data; name in global WPAR: /wpars/wpar2/data
There are two ways to restore WPAR data, depending on the method used to back up the WPAR data files:
- Restore all WPAR file systems as the file spaces within the global partition. The file space
name must be used to identify the WPAR to which it belongs. All of the data is managed on one node
using one schedule. Using the example configuration mentioned previously, here is a sample
dsm.sysfile with one server stanza for all file systems, both global and local:SErvername shimla TCPPort 1500 TCPServeraddress server.example.com nodename shimla PasswordAccess generate Domain /wpars/wpar1/home /wpars/wpar2/data /home /optUse the following command to restore each file space:
dsmc restore /wpars/wpar1/home/* dsmc restore /wpars/wpar2/data/* dsmc restore /home/* dsmc restore /opt/ - Restore each WPAR file system from a different node name, if it is backed up under a different
node name. Each WPAR must have a separate node name and a scheduler running within the global
partition. Also, three scheduler services must be set up, each using a different
dsm.optfile corresponding to the server stanza name. This method allows each WPAR restore operation to be managed independent of the others. Using the example configuration mentioned previously, here is a sampledsm.sysfile with three server stanzas: one forwpar1, one forwpar2, and one for global partitionshimla:SErvername shimla_wpar1 TCPPort 1500 TCPServeraddress server.example.com nodename wpar1 PasswordAccess generate Domain /wpars/wpar1/home SErvername shimla_wpar2 TCPPort 1500 TCPServeraddress server.example.com nodename wpar2 PasswordAccess generate Domain /wpars/wpar2/data SErvername shimla TCPPort 1500 TCPServeraddress server.example.com nodename shimla PasswordAccess generate Domain /home /opt
| In dsm.opt file | Sample restore command |
|---|---|
| servername shimla_wpar1 | dsmc restore /wpars/wpar1/home/* |
| servername shimla_wpar2 | dsmc restore /wpars/wpar2/data/* |
| servername shimla | dsmc restore /home/*
dsmc restore /opt/* |