首页 > 数据库 > > 附录-升级Database Manager
用户可以将当前DM服务从低版本(X)升级到高版本(Y),还可以删除现有服务或安装新服务。
安装包中包含dmServer_upgrade.json文件,即待升级、删除或安装的服务列表。
说明:software/Agent/APA_InfraAgent/APA_InfraAgent.tar.gz
升级前,遵循以下条件:
python upgrade.py upgrade
[dminstalluser@blrlabvm_171_29 ~]$ python upgrade.py upgrade
[ 2/2 ] Taking DB schema backup COMPLETED
[ 8/8 ] Pre Check for upgrade - COMPLETED
[ 8/8 ] Stopping for Upgrade - COMPLETED
[ 8/8 ] Verify Stop - COMPLETED
[ 8/8 ] Backup - COMPLETED
[ 8/8 ] Preparing for Upgrade - COMPLETED
[ 8/8 ] Deploying Upgrade - COMPLETED
[ 8/8 ] Configuring Upgrade - COMPLETED
[ 8/8 ] Staring after Upgrade - COMPLETED
[ 8/8 ] Verify Start - COMPLETED
Registering services...
. . .
Database Manager has been upgraded successfully.
python upgrade.py (help | --help | -h)
该工具为DMServer的日常运营提供支持。
[dminstalluser@blrlabvm_171_29 ~]$ python upgrade.py help
Database Manager(DM) Server Upgrade help:
Utility to support upgrade of DM server.
This script should not be run with root permission.
Usage:
upgrade.py upgrade [-a | --apadminpasswd <db-admin-password>] [ --upgrade-log <log file> ]
upgrade.py (version | --version | -v)
upgrade.py [help | --help | -h]
Commands:
upgrade perform the upgrade of the installed services. This process may include
upgrade of existing services, deletion of existing services or installation of new service
help Prints this help text.
version Prints version string.
Options:
--apadminpasswd | -a Password for DB admin user accepted via command line argument. Same as given during installation.
It is Mandatory argument
--upgrade-log Log file to store the logs for the Upgrade process. Recommended to give for ease of debugging
NOTE:
1. The backup during upgrade is created in base installed directory and is deleted after successful upgrade or rollback
[dminstalluser@blrlabvm_171_29 ~]$
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/69959250/viewspace-3136643/ ,如需转载,请注明出处,否则将追究法律责任。