Sunteți pe pagina 1din 3

Configuring HANA replication

Edit the global.ini on each node. Add the section [system_replication_hostname_resolution]


with the replication IP address for each host. This will cause replication traffic to be routed
over the Replication subnet (VLAN XXXX)

:/usr/sap/DS4/SYS/global/hdb/custom/config> cat global.ini


[persistence]
basepath_logbackup = /BACKUPS/DS4/log
basepath_databackup = /BACKUPS/DS4/data
enable_auto_log_backup = yes
log_backup_timeout_s = 900
log_mode = normal
basepath_datavolumes = /hana/data/DS4
basepath_logvolumes = /hana/log/DS4

[system_information]
usage = development

[system_replication_hostname_resolution]

X.X.X.X = hostname

X.X.X.X = hostname

[table_placement]
prefix = /
method = 2
bw_schema = SAPDEC,SAPDECSHD

:/usr/sap/DS4/SYS/global/hdb/custom/config> cat global.ini


[persistence]
basepath_logbackup = /BACKUPS/DS4/log
basepath_databackup = /BACKUPS/DS4/data
enable_auto_log_backup = yes
log_backup_timeout_s = 900
log_mode = normal
basepath_datavolumes = /hana/data/DS4
basepath_logvolumes = /hana/log/DS4

[system_information]
usage = development

ds4adm@XXXXXX:/usr/sap/DS4/SYS/global/hdb/custom/config> cat global.ini


[persistence]
basepath_logbackup = /BACKUPS/DS4/log
basepath_databackup = /BACKUPS/DS4/data
enable_auto_log_backup = yes
log_backup_timeout_s = 900
log_mode = normal
basepath_datavolumes = /hana/data/DS4
basepath_logvolumes = /hana/log/DS4

[system_information]
usage = development

[system_replication_hostname_resolution]
X.X.X.X = hostname
X.X.X.X = hostname

[table_placement]
prefix = /
method = 2
bw_schema = SAPDEC,SAPDECSHD

Configure replication on the primary node (ohxlds4z):


# hdbnsutil -sr_enable --name=siteA
# hdbnsutil -sr_state

ds4adm@XXXXXX:/usr/sap/DS4/HDB00> hdbnsutil -sr_enable --name=siteA


checking for active nameserver ...
nameserver is active, proceeding ...
successfully enabled system as system replication source site
done.

ds4adm@XXXXXXusr/sap/DS4/SYS/global/hdb/custom/config> hdbnsutil -sr_state


checking for active or inactive nameserver ...

System Replication State


~~~~~~~~~~~~~~~~~~~~~~~~
online: true

mode: primary
site id: 1
site name: siteA

Host Mappings:
~~~~~~~~~~~~~~

XXXXXXXX -> [siteA] XXXXXXXXX


XXXXXXXX -> [siteB] XXXXXXX

done.
Configure replication on the secondary node (hostname):
# HDB stop
# hdbnsutil -sr_register --name=siteB --remoteHost=hostname --remoteInstance=00 --
replicationMode=sync --operationMode=delta_datashipping
# HDB start
# hdbnsutil -sr_state

S-ar putea să vă placă și