AIX operating systems

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.sys file 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 /opt      

    Use 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.opt file 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 sample dsm.sys file with three server stanzas: one for wpar1, one for wpar2, and one for global partition shimla:
    
    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
    
Table 1. Sample WPAR restore commands with dsm.opt file
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/*