AspenTech Inmation Recovery

This section describes the strategy for restoring AspenTech Inmation Core Configuration in production. Most of the process is identical for both a Central Core and a Local Core. However, for a Local Core where the Central Core is visible, the restore of the local configuration files (img files) will not be necessary as the Central Core will restore the Local Core when communication between the components is restored.

The same principle applies to connected components (Connectors, Interface Servers, Relays), since the configuration of these components can be recovered by the relevant local or central (master) core on service restart. For these components, follow the same steps as recovery of a Local Core connected to the Central Core, but for the relevant component. In this sense, this would be to determine whether a rebuild (using IaC) is required, stop the running service following rebuild, remove the IMG folder contents, restart the service, and allow AspenTech Inmation to restore the component configuration. This can be done from either connection to a Central Core, or for a system isolated from the Central Core providing the Local Core is operational. Since AspenTech Inmation requires a Core for full functionality the requirement for backup and restore of specific component configuration is not necessary since these can be implicitly recovered from the Core directly.

When recovery is necessary for a Local Core that is disconnected from the Central Core, it is highly recommended that no further development be done on that Local Core until communication with the Central Core is restored, and operation returns to normal.

Restore Strategy

There are two different kinds of scenarios that can involve recovery of the AspenTech Inmation Core Machine:

  • Installation Corruption - Failure of installed applications, Windows system or hardware/virtual machine

  • Configuration Corruption - Major misconfiguration or corruption of configuration files.

There are three different strategies to recovery the system depending on which backup contains the latest data and is available:

  1. Full Virtual Machine restore from hypervisor snapshots: this is the recommended strategy if snapshots are available - follow the appropriate client IT procedures to facilitate this recovery type (reference Server Infrastructure Backup)

  2. If snapshots are not available,

    1. If System Corruption, rebuild the system using the IaC process and then proceed to 2b to restore the latest configuration.

    2. If Configuration Corruption, but the system is still stable, execute the AspenTech Inmation Core configuration restore.

Restore s:i Strategy

Restoring System from Image Files

The steps to restore the system from image files will depend on the exact situation and reasons for the restore. These are general guidelines for restoring the system and may require more or fewer steps depending on the situation.

  1. Stop any AspenTech Inmation services (if any are running) in Task Manager or Services.

  1. Locate the AspenTech\inmation.root directory on the hard drive. The folder name might have a different suffix with the instance name.

  2. Copy the image backup files, renaming as necessary, to the img folder (include .inimg, .infp and .inlkg files).

  1. Restart AspenTech Inmation services and verify that they remain running.

  2. Connect to the Core with DataStudio, and check the communication status of Connector, Server, and Relay objects.

  3. Check the log for information or errors,

If the services fail to restart (or fail to keep running after restart), there might be corruption of the image file so the “last known good” (lkg) image file can be used. However, the lkg image may be older than other backups available, so it would be prudent to check file dates on other backups versus the lkg file to determine the most appropriate file to use. To restore with the lkg file, follow these steps:

  1. Stop any AspenTech Inmation services (if any are running) in Task Manager or Services.

  2. Rename the image file (.inimg) that is not working in the img directory

    • This retains the file in case it is still needed later.

    • Delete this file after it is determined that this file is no longer needed.

  3. Locate the “last known good” image file (.inlkg) and change the suffix to .inimg. For example, change core.inlkg to core.inimg.

  4. Restart the applicable services.

  5. Connect to the Core with DataStudio and check the communication status of Connector, Server and Relay objects.

  6. Delete the file that was renamed in Step 2.

If you stop the AspenTech Inmation services and delete the existing image files, upon service restart, new image files will be created, but your system configuration will be lost.
Image files contain the system configuration but does not contain any historical data for the objects. All historical data is stored in the MongoDB repository.

Restoring Persistency Database files

To restore the backup of the persistency database file:

  1. Stop the AspenTech Inmation services (if any are running) in Task Manager or Services.

  1. Locate the AspenTech\inmation.root directory on the hard drive.

  1. Copy the backup of the database persistency file to the db folder in the appropriate component folder of the work directory (e.g. AspenTech\inmation.root\work\core\db\ for the Core).

  2. Rename the file to dynprop.db as necessary.

  1. Restart AspenTech Inmation services.

Restoring from Full Virtual Machine Snapshot

To restore the AspenTech Inmation Core using a VM snapshot backup:

# Procedure Expected Result

1

Optional Step: Execute a backup of AspenTech Inmation Image Files, see AspenTech Inmation Backup Files.

Successsful backup in AspenTech Inmation backup folder; this can be used for post-recovery root cause analysis.

2

Optional Step: Execute a backup of local MongoDB, see MongoDB Backup Files.

Successsful backup of MongoDB; this can be used for post-recovery root cause analysis.

3

Request a hypervisor restore from the required snapshot following client IT procedures, see System Infrastructure

System should successfully restart into Windows, with MongoDB and AspenTech Inmation Core services successfully running (as at the time of the snapshot).

4

Review the Core and associated Connectors and Server Models via DataStudio.

Objects successfully started and show green light icons.

5

Check the log files for errors.

Log files show no errors. (Log file operation implicitly confirms the local MongoDB operation.)

6

Perform the Post-Restore Checks.

Post-Restore checks are passed.

Restore Virtual Machine from IaC

This process will involve rebuilding the virtual machine and using file backup to restore the configuration of the core machine.

# Procedure Expected Result

1

Optional Step: Execute a backup of AspenTech Inmation image files, see AspenTech Inmation Backup Files.

Successsful backup in AspenTech Inmation backup folder; this can be used for post-recovery root cause analysis.

2

Optional Step: Execute a backup of local MongoDB See MongoDB Backup Files.

Successsful backup of MongoDB; this can be used for post-recovery root cause analysis.

3

Initialize virtual machine with identical specifications as original server.

System is successfully restored into Windows.

4

Configure and install virtual machine following IaC process. For a local core, the pre-install.lua execution is not required. See Infrastructure-as-Code Templates for detailed instructions.

IaC process is successfully completed.

5

Perform the Post-Restore Checks.

Post-Restore checks passed. Configuration is successfully recovered.

Restore system:inmation Core Configuration

To restore the AspenTech Inmation Core configuration, using a file level backup, following these steps:

Central Core & Local Core Recovery

This process recovers the central Core server or a local Core server.

A local core that can communicate with the central Core can skip Step 7, as the latest configuration will be restored by the central Core.
The same process can be used to restore a AspenTech Inmation component service (e.g. Connector or Interface Server). Skip Step 7, since the component service would be rebuilt automatically by the connected Core.
# Procedure Expected Result

1

Optional Step: If not already completed, execute a backup of AspenTech Inmation image files. See AspenTech Inmation Backup Files.

Successsful backup in AspenTech Inmation backup folder; this can be used for post-recovery root cause analysis.

2

Optional Step: If not already completed, execute a backup of local MongoDB See MongoDB Backup Files.

Successsful backup of MongoDB; this can be used for post-recovery root cause analysis.

3

Mount D: drive backup or recover backup configuration from AspenTech Inmation backup folder. (eg D:\AspenTech\inmation.root\backup)

Backup files and folders are available to virtual machine for recovery.

4

Confirm that backup contains Core img Files, persistancy DB files and local MongoDB files.

Backup contains required backup files.

5

Stop running AspenTech Inmation and MongoDB services.

Services have been successfully stopped.

6

Move or rename current Image files (core.inimg, core.infp and core.inlkg) found in D:\AspenTech\inmation.root\img\ folder.

Files have been successfully moved or renamed.

7

Copy the backup from Step 3 of the Image files to the img folder.

Skip this step if restoring a local Core with the ability to communicate with the central Core.

Files have been successfully copied into folder.

8

Move or rename current persistency database file, dynprop.db For the Core, found in D:\AspenTech\inmation.root\work\core\db\ folder

File has been successfully moved or renamed.

9

Copy the backup of the database persistency file to the db folder in the appropriate component folder of the work directory.

Files have been successfully copied into folder.

10

Rename local MongoDB D:\AspenTech\inmation.root\MongoDB\data folder to data_.

Folder has been successfully renamed.

11

Copy the backup of the local MongoDB files to the D:\AspenTech\inmation.root\MongoDB\data folder.

Backup folder has been successfully copied.

12

Start Inmation and Local MongoDB services.

Services have been successfully started.

13

Perform Post-Restore Checks.

Checks are completed successfully.

14

Remove transient backups in Steps 6, 8, and 10.

Files and folders have been successfully deleted.

Post-Restore Checks

# Procedure Expected Result

1

Check AspenTech Inmation Core and MongoDB services are running.

Both AspenTech Inmation Core and MongoDB services are running.

The Core Service
MongoDB Service

2

Connect and log in to restored Core with DataStudio.

DataStudio should successfully connect to Core server.

3

With DataStudio, connect to a Core and check to make sure Core and associated components are showing OK.

Look for the following:

  • Relevant DataStudio objects (the Core and associated connectors below the Core) appear green and do not show any issues.

Core Restore DataStudio
  • The health monitoring tags (such as /System/Core/Health Monitoring/CORE/SITE-Relax/SITE/Health Checker) are showing green status and OK.

4

For associated MongoDB and MongoDB replica sets, perform their Post-Restore Checks.

Post restore checks completed successfully.