2016-08-22 45 views
0

在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上再次尝试了一下,问题是相同的。

非常感谢, 丹尼尔

回答

0

貌似容器内的问题解决主机名。您可以运行多克尔主机服务器上执行以下操作:

hostname # Does this show the shortname (same as hostname -s) ? 
hostname -l # Does this show FQDN or same output as hostname -s ? 
hostname -i # Is this IP address associated with your public network interface ? (you can run 'ip a s' to confirm) 

而且在/ etc输出/从泊坞主机服务器主机。

SELinux的最终状态(在Docker主机上运行'sestatus')。
请随时更改实际值

+0

你说得对,问题是Docker容器与物理机有不同的主机名。正确设置主机名并重新部署整个映像后,它工作正常。再次感谢你! –

0

在使用Docker 1.13的RHEL 7上不能部署dashDB Local产品。

安装泊坞后,尝试部署dashDB地方之前执行以下步骤:

  1. 问题的systemctl停止泊坞窗命令。

  2. 发行dockerd --storage-driver = devicemapper &命令。

  3. 发出泊坞窗信息命令。确保输出中的“存储驱动程序” 字段指定“devicemapper”。