You can set up the SAP HANA Recovery Kit through the use of the LKCLI (Command Line Interface).
Creating/Extending/Configuring the SAP HANA resource from the Command Line
create hana
EXAMPLE: #lkcli resource create hana --tag <tag> --sid <SAP HANA SID> --instance <SAP HANA instance> --switchback <switchback type> --ip <IP tag> --set_local_recovery_policy <enable | disable>
Option | Default | Description |
---|---|---|
--sid <str> | SID for the SAP HANA installation. | |
--instance <str> | SAP HANA instance (e.g., HDB00). | |
[--ip <str>] | LifeKeeper IP resource tag protecting the virtual IP for the SAP HANA database. The IP resource must be in-service on the server where the SAP HANA resource is being created. | |
[--set_local_recovery_policy <enable|disable>] | enable | This parameter may be used to enable or disable local recovery for the SAP HANA resource on the server where it is being created. |
extend hana
EXAMPLE: #lkcli resource extend hana --tag <tag> --dest <backup node> --switchback <switchback type> --template_prioity <priority> --target_priority <prority> --set_local_recovery_policy <enable | disable>
Option | Default | Description |
---|---|---|
[--set_local_recovery_policy <enable|disable>] | enable | This parameter may be used to enable or disable local recovery for the SAP HANA resource on the server where it is being extended. |
config hana
EXAMPLE: #lkcli resource config hana --tag <tag> --stop_all_dbs --takover_with_handshake <target server> --set_local_recovery_policy <enable | disable>
Option | Default | Description |
---|---|---|
[--stop_all_dbs] | Stop the SAP HANA database on all cluster nodes (e.g., for maintenance). This command must be run on the cluster node where the HANA resource is currently in-service. | |
[--takeover_with_handshake <target server>] | Local server | Perform a “takeover with handshake” of the SAP HANA database on the given target server. This is a feature of SAP HANA 2.0 SPS04 and later which reduces downtime of the primary database during switchover by suspending (rather than completely stopping) the primary database before performing a takeover of SAP HANA System Replication on the new database host. |
[--set_local_recovery_policy <enable|disable>] | This parameter may be used to enable or disable local recovery for the SAP HANA resource on the local server. |
Post your comment on this topic.