在RedHat Enterprise Linux 7.2上部署和启动dashDB本地时遇到错误。这是IBM官方教程的主要步骤,我一步一步地进行了操作。DashDB local(docker)无法启动,因为数据库服务未启动
1.Deployment第一步 - 下载并运行容器:
docker run -d -it --privileged=true --net=host --name=dashDB -v /mnt/clusterfs:/mnt/bludata0 -v /mnt/clusterfs:/mnt/blumeta0 ibmdashdb/local:latest
2.Observe部署日志:
docker logs -–follow dashDB
部署日志消息 - 所有其他测试通过,仅仅发生此问题:
###############################
[2246008.449894] start_dashDB_local.sh[221]: Creating dashDB directories and dashDB instance
[2246010.566736] start_dashDB_local.sh[221]: dashDB instance creation failed.
[2246010.567268] start_dashDB_local.sh[221]: Retry the operation. If the same failure occurs, contact IBM Service.
3.在Docker中启动dashDB服务:
# docker exec -it dashDB start
消息之后已经变成了:
*************************************************
Starting services. This might take a while ...
*************************************************
Checking if dashDB needs to be upgraded/migrated ...
hostname: Name or service not known
Restart LDAP/LDAP-depended network services AND set OS to use LDAP Authentication ...
getsebool: SELinux is disabled
Re-syncing dashDB global registry ...
Configuring dashDB database environment on node hs21qc01
dashDB failed to start on hs21qc01 because database services didn't start.
Retry the operation. If the same failure occurs, contact IBM Service.
有没有人遇到问题喜欢我吗?我在CentOS 7.2上再次尝试了一下,问题是相同的。
非常感谢, 丹尼尔
你说得对,问题是Docker容器与物理机有不同的主机名。正确设置主机名并重新部署整个映像后,它工作正常。再次感谢你! –