Restore MAS Core¤
Overview¤
This role supports restoring the MAS Core namespace resources and supporting
resources in other namespace when provided the backup archive generated from
suite_backup role.
Important
Restore can only be made to the an instance with the same MAS instance ID as the backup.
Role Variables¤
mas_instance_id¤
The instance ID of the Maximo Application Suite installation to restore. This should match the instance ID of the backup.
- Required
- Environment Variable:
MAS_INSTANCE_ID - Default Value: None
mas_backup_dir¤
The local directory path where backup files to restore are stored.
- Required
- Environment Variaable:
MAS_BACKUP_DIR - Default: None
- Example:
/tmp/mas_backups
suite_backup_version¤
The version of the backup file located in the MAS_BACKUP_DIR to be used
in the restore.
- Required
- Default: None
- Environment Variable:
SUITE_BACKUP_VERSION - Example:
20260116-130937
mas_domain¤
The domain to use for the MAS Suite instance. If not provided, the domain from the backup will be used.
- Optional
- Environment Variable:
MAS_DOMAIN - Default:
NO_OVERRIDE(uses value from backup) - Example:
mydomain.example.com
include_sls_from_backup¤
Controls whether to restore the Suite SLS (Suite License Service) configuration from the backup archive.
This should be used when the registration key stays the same, either due to also restoring the same
SLS service, or you are using a centralized SLS service that has not changed. If you plan to install
and use a new SLS service then set this value to false and use the sls_cfg_file variable to point
to the new SLS configuration file.
- Optional
- Default:
true - Environment Variable:
INCLUDE_SLS_FROM_BACKUP
sls_url¤
If include_sls_from_backup is true. The URL for the Suite License Service (SLS). If not provided, the URL from the backup will be used.
This is used when the domain has changed for SLS but SLS was restored from a backup and so the regristration key is the same.
- Optional
- Environment Variable:
SLS_URL - Default:
NO_OVERRIDE(uses value from backup) - Example:
https://sls.example.com
sls_cfg_file¤
If include_sls_from_backup is false. Path to the file containing external SLS configuration YAML file to apply.
This is used when you want to use SLS configuration from outside the backup archive (e.g., from a separate SLS role execution).
- Optional
- Environment Variable:
SLS_CFG_FILE - Default: None
- Example:
/tmp/sls_config/sls.yml
include_dro_from_backup¤
Controls whether to restore the Suite DRO configuration from the backup archive.
This should be used when the DRO details stay the same as you are using a centralized DRO service that has not changed.
If you plan to install and use a new DRO service then set this value to false and use the dro_cfg_file variable to point
to the new DRO configuration file.
- Optional
- Default:
true - Environment Variable:
INCLUDE_DRO_FROM_BACKUP
bas_url¤
If include_dro_from_backup is true. The URL for the Behavior Analytics Service (BAS). If not provided, the URL from the backup will be used.
This is used when the domain has changed for DRO but DRO was restored from a backup and so the api key is the same.
- Optional
- Environment Variable:
BAS_URL - Default:
NO_OVERRIDE(uses value from backup) - Example:
https://bas.example.com
dro_cfg_file¤
If include_dro_from_backup is false. Path to the file containing external DRO (BAS) configuration YAML file to apply.
This is used when you want to use DRO configuration from outside the backup archive (e.g., from a separate DRO role execution).
- Optional
- Environment Variable:
DRO_CFG_FILE - Default: None
- Example:
/tmp/dro_config/dro.yml
Restore Operations¤
This section provides comprehensive information about MAS Core restore operations.
Overview¤
The MAS Core restore operation performs a complete restoration of a MAS Core installation from a backup created by the suite_backup role. The restore process recreates all namespace resources and supporting resources in the correct order.
Important: Restore can only be made to an instance with the same MAS instance ID as the backup.
Restore Process¤
The MAS Core restore operation performs the following steps in sequence:
- Validation: Verifies required variables and backup archive existence
- Certificate Manager Check: Ensures cert-manager is installed in the cluster
- Projects Restoration: Restores the MAS Core namespace
- Secrets and ConfigMaps: Restores all secrets and configuration maps
- Operator Resources: Restores OperatorGroups and Subscriptions
- Subscription Wait: Waits for subscriptions to be ready (up to 30 minutes)
- Certificate Manager Resources: Restores ClusterIssuers, Issuers, and Certificates
- MAS Addon Resources: Restores MVIEdge, ReplicaDB, and GenericAddon resources
- MAS Configuration Resources: Restores all config.mas.ibm.com resources with optional overrides:
- BasCfg (if
include_dro_from_backupis true, with optionalbas_urloverride) - SlsCfg (if
include_sls_from_backupis true, with optionalsls_urloverride) - AppCfg, IDPCfg, JdbcCfg, KafkaCfg, MongoCfg, ObjectStorageCfg, etc.
- MAS Internal Resources: Restores CoreIDP resources
- Suite Restoration: Restores the Suite CR with optional
mas_domainoverride - Suite Wait: Waits for Suite to be ready (up to 60 minutes)
- Workspace Restoration: Restores all Workspace CRs
- Workspace Wait: Waits for all Workspaces to be ready (up to 60 minutes)
Configuration Override Options¤
The restore process supports several override options to adapt the backup to a new environment:
Domain Override:
- Use mas_domain to change the domain when restoring to a different cluster
- Default: Uses the domain from the backup
SLS Configuration:
- If include_sls_from_backup=true: Restores SlsCfg from backup
- Use sls_url to override the SLS URL if the domain changed
- If include_sls_from_backup=false: Use sls_cfg_file to provide external SLS configuration
DRO Configuration:
- If include_dro_from_backup=true: Restores BasCfg from backup
- Use bas_url to override the BAS URL if the domain changed
- If include_dro_from_backup=false: Use dro_cfg_file to provide external DRO configuration
When to Use¤
Full Restore Scenarios: - Disaster recovery after cluster failure - Migrating MAS Core to a new cluster - Recreating a deleted MAS Core instance - Setting up a new environment from backup - Testing backup integrity in non-production
Partial Configuration Scenarios:
- Restoring with new SLS service (set include_sls_from_backup=false)
- Restoring with new DRO service (set include_dro_from_backup=false)
- Restoring to cluster with different domain (use mas_domain override)
Important Considerations¤
Prerequisites: - Target cluster must have Certificate Manager installed - Target cluster must have the same MAS instance ID as the backup - Required dependencies (MongoDB, Db2, etc.) must be available and accessible - Sufficient cluster resources (CPU, memory, storage) must be available
Instance ID Requirement: - Restore can only be made to an instance with the same MAS instance ID - The instance ID is embedded in resource names and cannot be changed
Storage Requirements: - Ensure backup directory is accessible from the restore environment - Verify backup archive integrity before starting restore
Security: - Backup files contain sensitive data including credentials and certificates - Ensure secure transfer of backup files to restore environment - Verify backup file permissions and access controls
Configuration Dependencies: - If using external SLS/DRO configuration files, ensure they are valid and accessible - Coordinate with database restore operations to ensure data consistency - Verify network connectivity to external services (SLS, DRO, databases)
Restore Best Practices¤
- Pre-Restore Validation:
- Verify backup archive exists and is complete
- Confirm Certificate Manager is installed
- Ensure target cluster has sufficient resources
-
Verify MAS instance ID matches the backup
-
Dependency Coordination:
- Restore databases (MongoDB, Db2) before MAS Core
- Restore SLS before MAS Core if using separate SLS
- Restore DRO before MAS Core if using separate DRO
-
Ensure all external services are accessible
-
Configuration Planning:
- Determine if domain override is needed
- Decide whether to use backup SLS/DRO or new services
- Prepare external configuration files if needed
-
Document any configuration changes
-
Post-Restore Verification:
- Verify Suite status is Ready
- Verify all Workspaces are Ready
- Test application connectivity
- Verify database connections
-
Test user authentication
-
Disaster Recovery:
- Test restore procedures regularly in non-production
- Document restore procedures and configuration
- Maintain backup version identifiers
- Keep external configuration files secure and accessible