This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
tsm:tsm_hadr [2022/07/22 14:26] manu |
tsm:tsm_hadr [2022/07/22 14:28] (current) manu |
||
|---|---|---|---|
| Line 84: | Line 84: | ||
| 9. Run the following command to set up automatic client reroute: | 9. Run the following command to set up automatic client reroute: | ||
| - | db2 update alternate server for database database using hostname standby_IP | + | db2 update alternate server for database database using hostname standby_IP port port |
| - | port port | + | |
| For example: | For example: | ||
| - | + | <cli> | |
| - | db2 update alternate server for database xmeta using hostname 192.0.2.7 | + | db2 update alternate server for database xmeta using hostname 192.0.2.7 port 60000 |
| - | port 60000 | + | </cli> |
| 10. Run the following command to verify your configuration values: | 10. Run the following command to verify your configuration values: | ||
| Line 252: | Line 251: | ||
| For example: | For example: | ||
| + | <cli> | ||
| db2 start hadr db xmeta as primary | db2 start hadr db xmeta as primary | ||
| Line 282: | Line 281: | ||
| State = Peer | State = Peer | ||
| + | </cli> | ||
| === Validating the HADR configuration === | === Validating the HADR configuration === | ||
| Line 351: | Line 351: | ||
| For example: | For example: | ||
| + | <cli> | ||
| db2 get snapshot for db on xmeta | grep Role | db2 get snapshot for db on xmeta | grep Role | ||
| Line 357: | Line 357: | ||
| Role = Primary | Role = Primary | ||
| + | </cli> | ||
| On each server, run the following command to verify that the databases are synchronized: | On each server, run the following command to verify that the databases are synchronized: | ||
| Line 363: | Line 364: | ||
| For example: | For example: | ||
| + | <cli> | ||
| db2 get snapshot for database on xmeta | grep State | db2 get snapshot for database on xmeta | grep State | ||
| Line 369: | Line 370: | ||
| State = Peer | State = Peer | ||
| + | </cli> | ||