DashDB local (docker) 启动失败,因为数据库服务没有启动
DashDB local (docker) failed to start because database services didn't start
我在 RedHat Enterprise Linux 7.2 上部署和启动本地 dashDB 时遇到错误。下面是IBM官方教程的主要步骤,我是一步步跟着做的。
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.Start dashDB 服务 Docker:
# 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 主机服务器上的以下内容吗:
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 )
也是来自 Docker 主机服务器的 /etc/hosts 的输出。
SELinux 的最终状态(运行 'sestatus' 在 Docker 主机上)。
请随意更改实际值
dashDB Local 产品无法在 Docker 1.13 的 RHEL 7 上部署。
安装 Docker 后,在尝试部署 dashDB Local 之前执行以下步骤:
发出 systemctl stop docker 命令。
发出 dockerd --storage-driver=devicemapper & 命令。
发出 docker 信息 命令。确保 "Storage Driver"
输出中的字段指定 "devicemapper".
我在 RedHat Enterprise Linux 7.2 上部署和启动本地 dashDB 时遇到错误。下面是IBM官方教程的主要步骤,我是一步步跟着做的。
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.Start dashDB 服务 Docker:
# 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 主机服务器上的以下内容吗:
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 )
也是来自 Docker 主机服务器的 /etc/hosts 的输出。
SELinux 的最终状态(运行 'sestatus' 在 Docker 主机上)。
请随意更改实际值
dashDB Local 产品无法在 Docker 1.13 的 RHEL 7 上部署。
安装 Docker 后,在尝试部署 dashDB Local 之前执行以下步骤:
发出 systemctl stop docker 命令。
发出 dockerd --storage-driver=devicemapper & 命令。
发出 docker 信息 命令。确保 "Storage Driver" 输出中的字段指定 "devicemapper".