This time we know that the symbolic link is the reason that cause the failures. So we deleted the symbolic link and retry to rename the SID again, from HDB to DBH
hdbadm@HANADB:/hana/shared> rm DBH
Then we start the rename procedure again, this time it was able to rename the system to DBH successfully, meanwhile create a whole bunch of directories, create the user dbhadm, and so on
[root@HANADB hdblcm]# ./hdblcm
SAP HANA Lifecycle Management - SAP HANA 1.00.112.02.1459851171
***************************************************************
Choose an action to perform
Index | Action to be performed | Description
1 | add_hosts | Add Additional Hosts to the SAP HANA System
2 | configure_internal_network | Configure Inter-Service Communication
3 | configure_sld | Configure System Landscape Directory Registration
4 | extract_components | Extract Components
5 | print_component_list | Print Component List
6 | rename_system | Rename the SAP HANA System
7 | uninstall | Uninstall SAP HANA Components
8 | unregister_system | Unregister the SAP HANA System
9 | update_component_list | Update Component List
10 | update_components | Install or Update Additional Components
11 | update_host | Update the SAP HANA Instance Host integration
12 | exit | Exit (do nothing)
Enter selected action index [12]: 6
Local Host Name: hanadb
System Properties:
HDB /hana/shared/HDB HDB_ALONE
HDB00
version: 1.00.112.02.1459851171
host: hanadb (Database Worker (worker))
Enter Target Host Name for Source Host 'hanadb' [hanadb]:
Index | System Usage | Description
1 | production | System is used in a production environment
2 | test | System is used for testing, not production
3 | development | System is used for development, not production
4 | custom | System usage is neither production, test nor development
Select System Usage / Enter Index [3]:
Enter Certificate Host Name For Host 'hanadb' [hanadb, OU=Dezhi_Systems, C=DE]:
Enter Source System Administrator (hdbadm) Password:
Enter Target System ID [HDB]: DBH
Enter Target Instance Number [00]:
Enter Location of Data Volumes [/hana/shared/DBH/global/hdb/data]:
Enter Location of Log Volumes [/hana/shared/DBH/global/hdb/log]:
Enter Location of Data Backups [/hana/shared/DBH/HDB00/backup/data]:
Enter Location of Log Backups [/hana/shared/DBH/HDB00/backup/log]:
Enter Target System Administrator (dbhadm) Password:
Confirm Target System Administrator (dbhadm) Password:
Enter System Administrator (dbhadm) Home Directory [/usr/sap/DBH/home]:
Enter System Administrator (dbhadm) Login Shell [/bin/sh]:
Enter System Administrator (dbhadm) User ID [1002]:
Keep Source System Administrator User (hdbadm) [n]:
Keep Home Directory of Source System Administrator (hdbadm) [n]:
Change the password of the Database user [n]:
Restart system after machine reboot? [n]:
Summary before execution:
=========================
SAP HANA System Rename
Rename Parameters
Installation Path: /hana/shared
Source System ID: HDB
Target System ID: DBH
Target Instance Number: 00
Remote Execution: ssh
Host Name: hanadb
System Usage: development
Certificate Host Names: hanadb -> hanadb, OU=Dezhi_Systems, C=DE
Location of Data Volumes: the path will be set automatically
Location of Log Volumes: the path will be set automatically
System Administrator (dbhadm) Home Directory: /usr/sap/DBH/home
System Administrator (dbhadm) Login Shell: /bin/sh
System Administrator (dbhadm) User ID: 1002
Keep Source System Administrator User (hdbadm): No
Keep Home Directory of Source System Administrator (hdbadm): No
Note: SAP HANA System will be restarted
Do you want to continue? (y/n): y
Executing SAP HANA System rename
Renaming system...
Renaming instance...
Stopping system...
Stopping 7 processes on host 'hanadb' (worker):
Stopping on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbnameserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
All server processes stopped on host 'hanadb' (worker).
Stopping sapstartsrv service...
Creating system administrator user 'dbhadm'...
Updating system configuration files...
Renaming instance...
Creating sapservices entry...
Starting service (sapstartsrv)...
Starting instance DBH (HDB00) on host 'hanadb'...
Starting 7 processes on host 'hanadb' (worker):
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbnameserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbwebdispatcher
All server processes started on host 'hanadb' (worker).
Registering Instance Service...
Updating component list...
Updating SAP HANA Instance Integration on Local Host...
Deploying SAP Host Agent configurations...
SAP HANA system renamed.
Log file written to '/var/tmp/hdb_HDB_hdblcm_rename_system_2016-04-30_15.59.03/hdblcm.log' on host 'HANADB'.
**This time we know that the symbolic link is the reason that cause the failures. So we deleted the symbolic link and retry to rename the SID again, from HDB to DBH**
````
hdbadm@HANADB:/hana/shared> rm DBH
````
**Then we start the rename procedure again, this time it was able to rename the system to DBH successfully, meanwhile create a whole bunch of directories, create the user dbhadm, and so on**
````
[root@HANADB hdblcm]# ./hdblcm
SAP HANA Lifecycle Management - SAP HANA 1.00.112.02.1459851171
***************************************************************
Choose an action to perform
Index | Action to be performed | Description
--------------------------------------------------------------------------------------
1 | add_hosts | Add Additional Hosts to the SAP HANA System
2 | configure_internal_network | Configure Inter-Service Communication
3 | configure_sld | Configure System Landscape Directory Registration
4 | extract_components | Extract Components
5 | print_component_list | Print Component List
6 | rename_system | Rename the SAP HANA System
7 | uninstall | Uninstall SAP HANA Components
8 | unregister_system | Unregister the SAP HANA System
9 | update_component_list | Update Component List
10 | update_components | Install or Update Additional Components
11 | update_host | Update the SAP HANA Instance Host integration
12 | exit | Exit (do nothing)
Enter selected action index [12]: 6
Local Host Name: hanadb
System Properties:
HDB /hana/shared/HDB HDB_ALONE
HDB00
version: 1.00.112.02.1459851171
host: hanadb (Database Worker (worker))
Enter Target Host Name for Source Host 'hanadb' [hanadb]:
Index | System Usage | Description
-------------------------------------------------------------------------------
1 | production | System is used in a production environment
2 | test | System is used for testing, not production
3 | development | System is used for development, not production
4 | custom | System usage is neither production, test nor development
Select System Usage / Enter Index [3]:
Enter Certificate Host Name For Host 'hanadb' [hanadb, OU=Dezhi_Systems, C=DE]:
Enter Source System Administrator (hdbadm) Password:
Enter Target System ID [HDB]: DBH
Enter Target Instance Number [00]:
Enter Location of Data Volumes [/hana/shared/DBH/global/hdb/data]:
Enter Location of Log Volumes [/hana/shared/DBH/global/hdb/log]:
Enter Location of Data Backups [/hana/shared/DBH/HDB00/backup/data]:
Enter Location of Log Backups [/hana/shared/DBH/HDB00/backup/log]:
Enter Target System Administrator (dbhadm) Password:
Confirm Target System Administrator (dbhadm) Password:
Enter System Administrator (dbhadm) Home Directory [/usr/sap/DBH/home]:
Enter System Administrator (dbhadm) Login Shell [/bin/sh]:
Enter System Administrator (dbhadm) User ID [1002]:
Keep Source System Administrator User (hdbadm) [n]:
Keep Home Directory of Source System Administrator (hdbadm) [n]:
Change the password of the Database user [n]:
Restart system after machine reboot? [n]:
Summary before execution:
=========================
SAP HANA System Rename
Rename Parameters
Installation Path: /hana/shared
Source System ID: HDB
Target System ID: DBH
Target Instance Number: 00
Remote Execution: ssh
Host Name: hanadb
System Usage: development
Certificate Host Names: hanadb -> hanadb, OU=Dezhi_Systems, C=DE
Location of Data Volumes: the path will be set automatically
Location of Log Volumes: the path will be set automatically
System Administrator (dbhadm) Home Directory: /usr/sap/DBH/home
System Administrator (dbhadm) Login Shell: /bin/sh
System Administrator (dbhadm) User ID: 1002
Keep Source System Administrator User (hdbadm): No
Keep Home Directory of Source System Administrator (hdbadm): No
Note: SAP HANA System will be restarted
Do you want to continue? (y/n): y
Executing SAP HANA System rename
Renaming system...
Renaming instance...
Stopping system...
Stopping 7 processes on host 'hanadb' (worker):
Stopping on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbnameserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
All server processes stopped on host 'hanadb' (worker).
Stopping sapstartsrv service...
Creating system administrator user 'dbhadm'...
Updating system configuration files...
Renaming instance...
Creating sapservices entry...
Starting service (sapstartsrv)...
Starting instance DBH (HDB00) on host 'hanadb'...
Starting 7 processes on host 'hanadb' (worker):
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbnameserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbpreprocessor, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbcompileserver, hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbindexserver, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbwebdispatcher, hdbxsengine
Starting on 'HANADB': hdbdaemon, hdbwebdispatcher
All server processes started on host 'hanadb' (worker).
Registering Instance Service...
Updating component list...
Updating SAP HANA Instance Integration on Local Host...
Deploying SAP Host Agent configurations...
SAP HANA system renamed.
Log file written to '/var/tmp/hdb_HDB_hdblcm_rename_system_2016-04-30_15.59.03/hdblcm.log' on host 'HANADB'.
````