How to deal with the problem that the data service cannot be started due to directory change
This article will explain in detail how to deal with the problem that the data service cannot be started due to directory changes. The content of the article is of high quality, so the editor will share it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
The problem that the data service cannot be started due to directory changes is shown below.
Phenomenon one:
[dmdba@localhost data] $/ etc/rc.d/init.d/DmServiceDM2 startStarting DmServiceDM2: [FAILED] Read ini error, name:CTL_PATH, value:/dmdbs/data/DAMENG/dm.ctldmserver startup failed, code =-803 [Invalid ini config value]
Phenomenon two:
[dmdba@localhost DAMENG] $/ etc/rc.d/init.d/DmServiceDM2 startStarting DmServiceDM2: [FAILED] dmserver startup failed, code =-104 [Invalid INI file]
Phenomenon 3:
[dmdba@localhost data] $/ etc/rc.d/init.d/DmServiceDM2 startStarting DmServiceDM2: [FAILED] version info: enterprise/dmdbs/data/DAMENG/SYSTEM.DBF not exist
The data files and configuration files of the library are copied by the main library scp when building the Dameng read-write separation cluster. Due to the change in the data directory environment of the standby database, the above three errors occurred in turn when starting the service. The solution is to gradually change the file path in the configuration file (which is also a very painful process) to the path that is always with the standby file path. Therefore, it is recommended that when building a Dameng read-write separation cluster, the directory of the master and standby environment had better be planned in accordance with each other, which can avoid a lot of unnecessary trouble.
[dmdba@localhost data] $/ etc/rc.d/init.d/DmServiceWatcher startStarting DmServiceWatcher: [OK] this is how to deal with the problem that the data service cannot be started due to directory change. I hope the above content can be helpful to you and learn more. If you think the article is good, you can share it for more people to see.