You want to change the host name of the master name server. You have to do the following:
The process flow for the configuration depends on the type of data storage that you have chosen for your distributed landscape:
Prerequisites
You have stopped TREX on all hosts.
Process Flow for Decentralized Data Storage
For decentralized data storage, you first change the host name of a master name server in the configuration filestopology.ini, sapprofile.ini andTREXWebServer.ini (if the Web server was installed) on the host with the master name server.
Then you change the host name of this master name server in all sapprofile.ini files on each host in your distributed landscape
Finally you change the host name of the master name server in thetopology.ini files of the master index servers.
Example Scenario
Procedure
You have to remove the sign# in front ofSAPLOCALHOST so that the commandSAPLOCALHOST can be executed.
You have to change the fileTREXWebServer.ini only if you have installed the Web server. Navigate to the section[HTTPSERVER] and replace the old TREX host name:URL=http://<new_trex_hostname>.<URL>:....
Change the file<TREX_INSTANCE>\sapprofile.ini on all hosts in your TREX landscape. The host names of all master name servers in a TREX landscape are listed in the filesapprofile.ini on each host of your landscape.
# TREX-NameServer
. . .
TREX/NameServer/Master=pwdf2832:30001 pwdf2833:30101 pwdf2834:30201
Replace the old host name of the master name server in your TREX landscape in this list with the new host name. You have to do this on each host in your landscape.
Change the old TREX host name to<new_trex_hostname> in the file<TREX_INSTANCE>\topology.ini of the master index server.
Overview of TREX Configuration Files to Be Changed
Host | topology.ini | sapprofile.ini | TREXWebServer.ini | |
---|---|---|---|---|
1. |
Master host 2 as master name server |
change old host name to new host name |
change old host name to new host name |
change old host name to new host name |
2. |
Slave host 1 |
--------------- |
# TREX-NameServer change the host name of the master name server |
|
2. |
Slave host 2 |
--------------- |
# TREX-NameServer change the host name of the master name server |
|
3. |
Master host 1 as master name server |
change old host name to new host name |
# TREX-NameServer change the host name of the master name server |
Master host = host with the role of master index server
Slave host = host with the role of slave index server
Backup host = host with the role of backup index server
Process Flow for Centralized Data Storage
For centralized data storage, you first change the host name of a master name server in the configuration filessapprofile.ini andTREXWebServer.ini (if Web server was installed) on the host with the master name server.
Then you change the host name of this master name server in allsapprofile.ini files on each host in your distributed landscape.
Finally you change the host name of the master name server once in thetopology.ini file which is stored centrally on the file server.
Example Scenario
Procedure
You have to remove the sign# in front ofSAPLOCALHOST so that the commandSAPLOCALHOST can be executed.
You have to change the fileTREXWebServer.ini only if you have installed the Web server.
Navigate to the section[HTTPSERVER] and replace the old TREX host name:URL=http://<new_trex_hostname>.<URL>:....
Change<TREX_INSTANCE>\sapprofile.ini on all hosts in your TREX landscape. The host names of all master name servers of a TREX landscape are listed in the filesapprofile.ini on each host in your landscape.
# TREX-NameServer
. . .
TREX/NameServer/Master=pwdf2832:30001 pwdf2833:30101 pwdf2834:30201
Replace the old host name of the master name server of your TREX landscape in this list with the new host name. You have to do this on every host of your landscape.
Change the old TREX host name to<new_trex_hostname> in the file<TREX_INSTANCE>\topology.ini on the central file server.
Overview of TREX Configuration Files to Be Changed
Host | sapprofile.ini | TREXWebServer.ini | topology.ini |
---|---|---|---|
Master host as master name server |
Change the old host name to new host name |
# TREX-Name Server Change the host names of the master name servers |
--------------- |
Slave host 1 |
Change the old host name to the new host name |
--------------- |
--------------- |
Slave host 2 |
Change the old host name to the new host name |
--------------- |
--------------- |
Backup host |
Change the old host name to the new host name |
--------------- |
--------------- |
File server |
--------------- |
--------------- |
Change the old host name to the new host name |
Master host = host with the role of master index server
Slave host = host with the role of slave index server
Backup host = host with the role of backup index server
File server = server for the centrally stored data
Change the profiles settings
After changing the TREX configuration files you change the profile settings as described inChanging the Profile Settings.
Result
You have changed the TREX host name for the master name server. You now can restart TREX.