Restoring the system configuration
You can restore the configuration data for the system after preliminary tasks are completed.
About this task
This procedure only restores the system configuration and does not restore data on the volumes. Use this procedure if the data is not required, or if you can restore the data from an external source.
Both automated and manual steps are involved. Do not attempt to make any changes to the environment or configuration until all steps are completed.
The user performing the restore must have a Security Administrator role on the system.
If you do not understand the instructions to run the CLI commands, see the Command-line interface reference information.
Preparing the environment
- Network hardware must be online and operational.
- Network configuration, such as fibre-channel zoning and firewall settings, must match prior configuration.
- System hardware, including all nodes and enclosures (as applicable) must be available and powered on.
Preparing the system hardware
- Point your browser to the service IP address of one of the nodes (for example,
https://node_service_ip_address/service/). - Log on to the service assistant.
- From the Home page, put the node canister into service state if it is not already in that state.
- Select Manage System.
- Click Remove System Data.
- Confirm that you want to remove the system data when prompted.
- Exit service state from the Home page. The 550 or 578 errors are removed, and the node appears as a candidate node.
- Remove the system data for the other nodes that display a 550 or a 578 error. All nodes previously in this system must have a node status of Candidate and have no errors listed against them.Note: A node that is powered off might not show up in this list of nodes for the system. Diagnose hardware problems directly on the node by using the service assistant IP address and by physically verifying the LEDs for the hardware components.
- Connect to the service assistant on either of the nodes in the control enclosure.
- Select Configure Enclosure.
- Select the Reset the system ID option. Do not make any other changes on the panel.
- Click Modify.
If the system uses encryption with transparent cloud tiering, at least one USB flash drive that contains the encryption key file for the previous system must be installed in the system. This allows the current encrypted data to be unlocked and re-encrypted with the new keys.
Preparing the cluster configuration
One of the nodes previously in I/O group zero must perform the restoring the system configuration. For example, property name="IO_group_id" value="0" .
On the identified node, connect to the technician port and use the setup wizard to create a system.
- On FlashSystem, only the control enclosure on which the clustered system was created and directly attached expansion enclosures are displayed.
- On SAN Volume Controller systems, only the single node is displayed.
It is recommended to configure an SSH key for the superuser to enable, remaining actions to be performed via the command-line interface. For more information, see Setting up SSH access.
- If a default call home email user was created as part of the setup wizard, delete the call home email user now.
- If you set up email notification in the setup wizard, you must now remove that email user and
server so that the original configuration can be restored.
- Issue the following CLI command to remove the new email
user:
rmemailuser 0 - Issue the following CLI command to remove the new email
server:
rmemailserver 0
Important: Do not attempt to make any other configuration changes at this stage. - Issue the following CLI command to remove the new email
user:
Identifying a configuration backup file
The file can be either a local copy of the configuration backup JSON file that you saved when you backed-up the configuration or an up-to-date file on one of the nodes.
Configuration data is automatically backed up daily at 01:00 system time on the configuration node.
- From the management GUI, click .
- Expand Manual Upload Instructions and select Download Support Package.
- On the Download New Support Package or Log File page, select Download Existing Package.
- For each node (canister) in the system, complete the following steps:
- Select the node to operate on from the selection box at the top of the table.
- Find all the files with names that match the pattern svc.config.*.json*.
- Select the files and click Download to download them to your computer.
The JSON files contain a date and time that can be used to identify the most recent backup. After you identify the backup JSON file that is to be used when you restore the system, rename the file to svc.config.backup.json.
pscp full_path_to_identified_svc.config.file
superuser@cluster_ip:/dumps/svcconfig/svc.config.backup.jsonPreparing the system for the automated restore process
Some features must be configured before the automated restore:
- Replication layer
-
By default, the newly initialized system is created in the replication layer. The layer of the system is not restored automatically from the configuration backup JSON file. If the system you are restoring was previously configured in the storage layer, you must change the layer manually now. For more information about the replication layer and storage layer, see System layers.
- Key server encryption
-
If the system has key server encryption, the new certificate must be exported by using the chsystemcert -export command, and then installed on all key servers in the correct device group. The device group that is used is the one in which the previous system was defined. It might also be necessary to get the new system's certificate signed.
- USB encryption
-
If the system has fewer than 3 USB ports, encryption must be enabled manually now. For more information, see Encryption with USB flash drives.
- Non-default MTU
-
If a system management IP is configured on a port with MTU other than 1500, then follow this procedure:
- Create a system using the other IP address and port than the actual system management IP address and port.
- Change the MTU of the Ethernet port to the intended MTU value on the actual port of the system management IP address.
- Configure the system management IP address on the actual port of the system management IP address.
- Delete the first system management IP address using rmip CLI command.
- iSCSI storage controllers
-
If the system contains any iSCSI storage controllers, these controllers must be detected manually now. The nodes that are connected to these controllers, MTU for the Ethernet ports, the iSCSI port IP addresses, and the iSCSI storage ports must be added to the system before you restore your data.Note: If the system contains only Fibre Channel storage controllers, proceed to the Running the automated restore process section.Note: For a stretched topology, after you run the addnode command, change the sites of all of the nodes added in the system. For example,
chnodecanister -site site_id node_id/node_name-
To restore iSCSI initiator port configuration, use the chportethernet command. All the ethernet ports capable of iSCSI backend i.e. storage flag set to yes needs to be configured. Find out the MTU of ethernet port for which "storage" is set to yes in the node_ethernet_port section from the backup configuration file and restore the port MTU.
- To restore port MTU, determine iogrp_id from the node_id, port_id, and mtu of the port for which
"storage" is set to yes from the configuration backup file, and run the following command:
where mtu is the MTU of the port, iogrp_name_or_id is the name or ID of the I/O group, port_id is the ID of the port.chportethernet -iogrp iogrp_name_or_id -mtu mtu port_idComplete step i for all (earlier configured) Ethernet ports that belong to storage in the node_ethernet_port section from the backup configuration file.
- To restore port MTU, determine iogrp_id from the node_id, port_id, and mtu of the port for which
"storage" is set to yes from the configuration backup file, and run the following command:
-
To restore iSCSI initiator port IP addresses, use the mkip command. All the IP addresses belonging to the storage portset (i.e. portset3) needs to be configured. Find out the IP addresses whose "portset_name" property matches with portset3 in the node_ethernet_ip section from the backup configuration file and restore the IP addresses.
- To restore IP address, determine port_ID, node_name, portset_name, IP
address, prefix, and vlan of the IP address that belongs to portset3 from the configuration backup
file, and run the following command:
mkip -node node_id_or_name -port port_id -portset portset_id_or_name -ip ip_address -prefix prefix -vlan vlanComplete this step for all (earlier configured) IP ports that belong to portset3 in the node_ethernet_ip section from the backup configuration file.
- To restore IP address, determine port_ID, node_name, portset_name, IP
address, prefix, and vlan of the IP address that belongs to portset3 from the configuration backup
file, and run the following command:
-
Next, detect, and add the iSCSI storage port candidates by using the detectiscsistorageportcandidate and addiscsistorageport commands. Make sure that you detect the iSCSI storage ports and add these ports in the same order as you see them in the configuration backup file. If you do not follow the correct order, it might result in a T4 failure. You must repeat these steps for all the iSCSI sessions that are listed in the backup configuration file exactly in the same order.
-
Running the automated restore process
svcconfig restore -prepareThis
CLI command creates a log file in the /dumps/svcconfig
directory of the configuration node. The name of the log file is
svc.config.restore.prepare.log.pscp superuser@cluster_ip:/dumps/svcconfig/svc.config.restore.prepare.log
full_path_for_where_to_copy_log_filesCheck the log file for errors. If you find errors, correct the condition that caused the errors and reissue the command. You must correct all errors before you can proceed.
svcconfig restore -executeThis
CLI command creates a log file in the /dumps/svcconfig
directory of the configuration node. The name of the log file is
svc.config.restore.execute.log.pscp superuser@cluster_ip:/dumps/svcconfig/svc.config.restore.execute.log
full_path_for_where_to_copy_log_filesIBM_MTM:your_cluster_name:superuser>
Manual actions to complete the restore
The following actions may be required, depending on system configuration:
- System Certificates
-
During recovery, the system creates a new internal root CA and system certificates. If the certificate was stored in the truststore on other systems, the new certificate must be exported and the other truststores update.
If you have an SNMP server that is configured with a certificate in the truststore, then the truststore must be manually set up again.
If the system uses Thales key servers to manage encryption keys, the new root certificate must be exported and installed on the key servers before the configuration restore operation prepares successfully. If the system uses IBM key servers, then the new system certificate must be exported and installed on the key servers. If the previous system was using a certificate that is signed by a third-party CA, then it might also be necessary to get the new system's certificate signed.
If the system is using multifactor authentication then the new system certificate must be exported and installed as a signer certificate in IBM Security Verify, by using the system's id_alias as the friendly name. To export the new system certificate, enter the CLI command:chsystemcert -exportTo find the id_alias of the system, enter the CLI command:lssystem | grep id_alias - Multi-factor authentication
-
Follow the steps for exporting the system certificate as described in Configuring multifactor authentication with IBM Security Verify.
If the system is using multifactor authentication with IBM Security Verify, the OpenID Connect and API credentials must be restored manually. For more information, see chauthmultifactorverify.
If the system is using multifactor authentication with Duo Security, the OpenID Connect and API credentials must be restored manually. For more information, see chauthmultifactorduo.
- Single sign-on
-
If the system is using single sign-on, the OpenID Connect credentials must be restored manually. For more information, see chauthsinglesignon.
- IP Quorum
-
If IP Quorum is used, re-enable by downloading a Java application from the tab in the GUI, and then installing the application on the host server.
- Cloud Service Providers
-
After a T4 recovery, cloud accounts are in an offline state. It is necessary to re-enter the authentication information to bring the accounts back online
If you use USB flash drives to manage encryption keys, the T4 recovery causes the connection to a cloud service provider to go offline if the USB flash drive is not inserted into the system. To fix this issue, insert the USB flash drive with the current keys into the system.
If you use key servers to manage encryption keys, the T4 recovery causes the connection to a cloud service provider to go offline if the key server is offline. To fix this issue, ensure that the key server is online and available during T4 recovery.
If you use both key servers and USB flash drives to manage encryption keys, the T4 recovery causes the connection to a cloud service provider to go offline if the key server is offline. To fix this issue, ensure that both the key server is online and a USB flash drive is inserted into the system during T4 recover.
- Other features
-
The following features must be configured manually. See guidance in the linked pages. The configuration backup files may provide further details to assist configuration.
- Fibre Channel port masking
- FlashSystem grid
- Replication
- Two person integrity
- Volumes with cloud snapshots need to have the cloud snapshots manually re enabled.
- Lightweight Directory Access Protocol (LDAP) as the remote authentication service with an administrator password configured. See chldap command.
- SNMP notifications passphrases
- FlashCopy® mappings and host mappings if the ownership groups are inconsistent.
Completing the restore procedure
Verify that the quorum disks are restored to the MDisks that you want by using the lsquorum command. To restore the quorum disks to the correct MDisks, issue the appropriate chquorum CLI commands.
chuser -lock superuserThe system configuration has now been restored and data can be copied back to the system if required.