古人已用三冬足,年少今开万卷余。这篇文章主要讲述CentOS7使用ansible部署Ceph(Nautilus)相关的知识,希望能为你提供帮助。
环境角色
计算机名 |
角色 |
Publie-IP |
Cluster-IP |
inf-c7-n1 |
mon,osd,mgr,prom/node-exporter |
10.199.13.119 |
192.168.31.119 |
inf-c7-n2 |
mon,osd,mgr,prom/node-exporter |
10.199.13.122 |
192.168.31.122 |
inf-c7-n3 |
mon,osd,mgr,prom/node-exporter |
10.199.13.123 |
192.168.31.123 |
inf-c7-n4 |
ansible, |
10.199.13.128 |
|
inf-c7-n5 |
prom/prometheus,prom/alertmanager,grafana/grafana,prom/node-exporter |
10.199.13.107 |
|
inf-c7-n6 |
prom/prometheus,prom/alertmanager,grafana/grafana,prom/node-exporter |
10.199.13.108 |
|
inf-c7-n7 |
prom/prometheus,prom/alertmanager,grafana/grafana,prom/node-exporter |
10.199.13.109 |
[root@inf-c7-n1 ~]# uname -a
Linux inf-c7-n1 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
[root@inf-c7-n1 ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
安装ansible
[root@inf-c7-n4 yum.repos.d]# yum install centos-release-ansible-29.noarch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
-->
Running transaction check
--->
Package centos-release-ansible-29.noarch 0:1-1.el7 will be installed
-->
Processing Dependency: centos-release-configmanagement for package: centos-release-ansible-29-1-1.el7.noarch
-->
Running transaction check
--->
Package centos-release-configmanagement.noarch 0:1-1.el7.centos will be installed
-->
Finished Dependency ResolutionDependencies Resolved==================================================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================================================
Installing:
centos-release-ansible-29noarch1-1.el7extras3.9 k
Installing for dependencies:
centos-release-configmanagementnoarch1-1.el7.centosextras4.3 kTransaction Summary
==================================================================================================================================================
Install1 Package (+1 Dependent package)Total download size: 8.2 k
Installed size: 2.2 k
Is this ok [y/d/N]: y
Downloading packages:
......
[root@inf-c7-n4 yum.repos.d]# yum install ansible
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-ansible-29: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.comcentos-ansible-29| 3.0 kB00:00:00centos-ansible-29/7/x86_64/primary_db|29 kB00:00:00
Resolving Dependencies
-->
Running transaction check
--->
Package ansible.noarch 0:2.9.23-1.el7 will be installed
-->
Processing Dependency: PyYAML for package: ansible-2.9.23-1.el7.noarch
-->
Processing Dependency: python-jinja2 for package: ansible-2.9.23-1.el7.noarch
-->
Processing Dependency: python-paramiko for package: ansible-2.9.23-1.el7.noarch
-->
Processing Dependency: python-six for package: ansible-2.9.23-1.el7.noarch
-->
Processing Dependency: python2-cryptography for package: ansible-2.9.23-1.el7.noarch
-->
Processing Dependency: sshpass for package: ansible-2.9.23-1.el7.noarch
-->
Running transaction check
--->
Package PyYAML.x86_64 0:3.10-11.el7 will be installed
-->
Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64
--->
Package python-jinja2.noarch 0:2.7.2-4.el7 will be installed
-->
Processing Dependency: python-babel >
= 0.8 for package: python-jinja2-2.7.2-4.el7.noarch
-->
Processing Dependency: python-markupsafe for package: python-jinja2-2.7.2-4.el7.noarch
--->
Package python-paramiko.noarch 0:2.1.1-9.el7 will be installed
-->
Processing Dependency: python2-pyasn1 for package: python-paramiko-2.1.1-9.el7.noarch
--->
Package python-six.noarch 0:1.9.0-2.el7 will be installed
--->
Package python2-cryptography.x86_64 0:1.7.2-2.el7 will be installed
-->
Processing Dependency: python-idna >
= 2.0 for package: python2-cryptography-1.7.2-2.el7.x86_64
-->
Processing Dependency: python-cffi >
= 1.4.1 for package: python2-cryptography-1.7.2-2.el7.x86_64
-->
Processing Dependency: python-setuptools for package: python2-cryptography-1.7.2-2.el7.x86_64
-->
Processing Dependency: python-ipaddress for package: python2-cryptography-1.7.2-2.el7.x86_64
-->
Processing Dependency: python-enum34 for package: python2-cryptography-1.7.2-2.el7.x86_64
--->
Package sshpass.x86_64 0:1.06-2.el7 will be installed
-->
Running transaction check
--->
Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed
--->
Package python-babel.noarch 0:0.9.6-8.el7 will be installed
--->
Package python-cffi.x86_64 0:1.6.0-5.el7 will be installed
-->
Processing Dependency: python-pycparser for package: python-cffi-1.6.0-5.el7.x86_64
--->
Package python-enum34.noarch 0:1.0.4-1.el7 will be installed
--->
Package python-idna.noarch 0:2.4-1.el7 will be installed
--->
Package python-ipaddress.noarch 0:1.0.16-2.el7 will be installed
--->
Package python-markupsafe.x86_64 0:0.11-10.el7 will be installed
--->
Package python-setuptools.noarch 0:0.9.8-7.el7 will be installed
-->
Processing Dependency: python-backports-ssl_match_hostname for package: python-setuptools-0.9.8-7.el7.noarch
--->
Package python2-pyasn1.noarch 0:0.1.9-7.el7 will be installed
-->
Running transaction check
--->
Package python-backports-ssl_match_hostname.noarch 0:3.5.0.1-1.el7 will be installed
-->
Processing Dependency: python-backports for package: python-backports-ssl_match_hostname-3.5.0.1-1.el7.noarch
--->
Package python-pycparser.noarch 0:2.14-1.el7 will be installed
-->
Processing Dependency: python-ply for package: python-pycparser-2.14-1.el7.noarch
-->
Running transaction check
--->
Package python-backports.x86_64 0:1.0-8.el7 will be installed
--->
Package python-ply.noarch 0:3.4-11.el7 will be installed
-->
Finished Dependency ResolutionDependencies Resolved==================================================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================================================
Installing:
ansiblenoarch2.9.23-1.el7centos-ansible-2917 M
Installing for dependencies:
PyYAMLx86_643.10-11.el7base153 k
libyamlx86_640.1.4-11.el7_0base55 k
python-babelnoarch0.9.6-8.el7base1.4 M
python-backportsx86_641.0-8.el7base5.8 k
python-backports-ssl_match_hostnamenoarch3.5.0.1-1.el7base13 k
python-cffix86_641.6.0-5.el7base218 k
python-enum34noarch1.0.4-1.el7base52 k
python-idnanoarch2.4-1.el7base94 k
python-ipaddressnoarch1.0.16-2.el7base34 k
python-jinja2noarch2.7.2-4.el7base519 k
python-markupsafex86_640.11-10.el7base25 k
python-paramikonoarch2.1.1-9.el7base269 k
python-plynoarch3.4-11.el7base123 k
python-pycparsernoarch2.14-1.el7base104 k
python-setuptoolsnoarch0.9.8-7.el7base397 k
python-sixnoarch1.9.0-2.el7base29 k
python2-cryptographyx86_641.7.2-2.el7base502 k
python2-pyasn1noarch0.1.9-7.el7base100 k
sshpassx86_641.06-2.el7extras21 kTransaction Summary
==================================================================================================================================================
Install1 Package (+19 Dependent packages)Total download size: 21 M
Installed size: 122 M
Is this ok [y/d/N]: y
Downloading packages:
......
安装nautilus源
[root@inf-c7-n4 yum.repos.d]# yum install centos-release-ceph-nautilus.noarch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-ansible-29: mirrors.aliyun.com
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
-->
Running transaction check
--->
Package centos-release-ceph-nautilus.noarch 0:1.2-2.el7.centos will be installed
-->
Processing Dependency: centos-release-storage-common for package: centos-release-ceph-nautilus-1.2-2.el7.centos.noarch
-->
Processing Dependency: centos-release-nfs-ganesha28 for package: centos-release-ceph-nautilus-1.2-2.el7.centos.noarch
-->
Running transaction check
--->
Package centos-release-nfs-ganesha28.noarch 0:1.0-3.el7.centos will be installed
--->
Package centos-release-storage-common.noarch 0:2-2.el7.centos will be installed
-->
Finished Dependency ResolutionDependencies Resolved==================================================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================================================
Installing:
centos-release-ceph-nautilusnoarch1.2-2.el7.centosextras5.1 k
Installing for dependencies:
centos-release-nfs-ganesha28noarch1.0-3.el7.centosextras4.3 k
centos-release-storage-commonnoarch2-2.el7.centosextras5.1 kTransaction Summary
==================================================================================================================================================
Install1 Package (+2 Dependent packages)Total download size: 15 k
Installed size: 3.0 k
Is this ok [y/d/N]: y
Downloading packages:
......
安装ceph-ansible
[root@inf-c7-n4 yum.repos.d]# yum install ceph-ansible
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* centos-ansible-29: mirrors.aliyun.com
* centos-ceph-nautilus: mirrors.aliyun.com
* centos-nfs-ganesha28: ftp.sjtu.edu.cn
* extras: mirrors.aliyun.com
* updates: mirrors.aliyun.com
Resolving Dependencies
-->
Running transaction check
--->
Package ceph-ansible.noarch 0:4.0.62-1.el7 will be installed
-->
Processing Dependency: python2-netaddr for package: ceph-ansible-4.0.62-1.el7.noarch
-->
Running transaction check
--->
Package python2-netaddr.noarch 0:0.7.19-5.el7 will be installed
-->
Finished Dependency ResolutionDependencies Resolved==================================================================================================================================================
PackageArchVersionRepositorySize
==================================================================================================================================================
Installing:
ceph-ansiblenoarch4.0.62-1.el7centos-ceph-nautilus237 k
Installing for dependencies:
python2-netaddrnoarch0.7.19-5.el7centos-ceph-nautilus1.5 MTransaction Summary
==================================================================================================================================================
Install1 Package (+1 Dependent package)Total download size: 1.8 M
Installed size: 9.6 M
Is this ok [y/d/N]: y
Downloading packages:
......
配置/etc/hosts文件
[root@inf-c7-n1 ~]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@inf-c7-n1 ~]# cat /etc/hosts
127.0.0.1localhost localhost.localdomain localhost4 localhost4.localdomain4
::1localhost localhost.localdomain localhost6 localhost6.localdomain6
10.199.13.119inf-c7-n1
10.199.13.122inf-c7-n2
10.199.13.123inf-c7-n3
10.199.13.128inf-c7-n410.199.13.107inf-c7-n5
10.199.13.108inf-c7-n6
10.199.13.109inf-c7-n7
生成密钥文件
[root@inf-c7-n4 ~]# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Created directory \'/root/.ssh\'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:cPja6om+NUsW2gpxeR/7Vqwc3iFxbdKX64Dgz+WjzGc root@inf-c7-n4
The key\'s randomart image is:
+---[RSA 2048]----+
||
|.|
|o .o.|
|. + .. o +..|
|. o o S .+.o ..|
|o + = +o.+o . |
|. . B +oo*o.o|
|. * = .Bo.E . |
|.=o=..++ .|
+----[SHA256]-----+
配置免密登录
[root@inf-c7-n4 ~]# ssh-copy-id -i .ssh/id_rsa.pub inf-c7-n1
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
The authenticity of host \'inf-c7-n1 (10.199.13.119)\' can\'t be established.
ECDSA key fingerprint is SHA256:Nzy5jCpTBlcNdJmceW7RjxcDzmaiXVvdPdJt/Avct1g.
ECDSA key fingerprint is MD5:7c:c1:54:03:13:d7:1c:f7:22:31:6f:8b:c9:be:90:e1.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@inf-c7-n1\'s password: Number of key(s) added: 1Now try logging into the machine, with:"ssh \'inf-c7-n1\'"
and check to make sure that only the key(s) you wanted were added.[root@inf-c7-n4 ~]# ssh-copy-id -i .ssh/id_rsa.pub inf-c7-n2
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
The authenticity of host \'inf-c7-n2 (10.199.13.122)\' can\'t be established.
ECDSA key fingerprint is SHA256:dbXDcapX6D4jnzXODW75ZLWyQxJb59WtHb4gXxmsnww.
ECDSA key fingerprint is MD5:54:3b:fb:be:68:ec:a7:48:bb:b5:06:0a:1b:52:33:63.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@inf-c7-n2\'s password: Number of key(s) added: 1Now try logging into the machine, with:"ssh \'inf-c7-n2\'"
and check to make sure that only the key(s) you wanted were added.[root@inf-c7-n4 ~]# ssh-copy-id -i .ssh/id_rsa.pub inf-c7-n3
/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: ".ssh/id_rsa.pub"
The authenticity of host \'inf-c7-n3 (10.199.13.123)\' can\'t be established.
ECDSA key fingerprint is SHA256:NLEMW+tRUS1K9rA4XgMFuO+dM6A3wpIuJgydp9/WkJo.
ECDSA key fingerprint is MD5:b1:9e:2d:9c:0f:82:b5:d3:af:8b:c8:47:4b:ec:dc:b3.
Are you sure you want to continue connecting (yes/no)? yes
/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
root@inf-c7-n3\'s password: Number of key(s) added: 1Now try logging into the machine, with:"ssh \'inf-c7-n3\'"
and check to make sure that only the key(s) you wanted were added.
......
定义ansible hosts
[root@inf-c7-n4 ceph-ansible]# cat /etc/ansible/hosts |grep -v \'^#\'|grep -v \'^$\'
[mons]
inf-c7-n1
inf-c7-n2
inf-c7-n3
[osds]
inf-c7-n1
inf-c7-n2
inf-c7-n3
[grafana-server]
inf-c7-n5
inf-c7-n6
inf-c7-n7
定义ansible-playbook变量
[root@inf-c7-n4 ceph-ansible]# cp site.yml.sample site.yml[root@inf-c7-n4 group_vars]# cp all.yml.sample all.yml[root@inf-c7-n4 group_vars]# cat all.yml|grep -v \'^#\'|grep -v \'^$\'
---
dummy:
ceph_origin: repository
ceph_repository: community
ceph_stable_release: nautilus
monitor_interface: eth0
public_network: "10.199.13.0/24"
cluster_network: "192.168.31.0/24"
dashboard_admin_password: p@ssw0rd
grafana_admin_password: admin[root@inf-c7-n4 group_vars]# cp osds.yml.sample osds.yml
[root@inf-c7-n4 group_vars]# cat osds.yml |grep -v \'^#\'|grep -v \'^$\'
---
dummy:
devices:
- /dev/vdb
- /dev/vdc
- /dev/vdd
安装部署
[root@inf-c7-n4 ceph-ansible]# ansible-playbook site.yml -vvv
ansible-playbook 2.9.23
config file = /usr/share/ceph-ansible/ansible.cfg
configured module search path = [u\'/usr/share/ceph-ansible/library\']
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.5 (default, Oct 14 2020, 14:45:30) [GCC 4.8.5 20150623 (Red Hat 4.8.5-44)]
Using /usr/share/ceph-ansible/ansible.cfg as config file
host_list declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
script declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
auto declined parsing /etc/ansible/hosts as it did not pass its verify_file() method
Parsed /etc/ansible/hosts inventory source with ini plugin
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/raw_install_python.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-nfs/tasks/create_rgw_nfs_user.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-nfs/tasks/start_nfs.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
statically imported: /usr/share/ceph-ansible/roles/ceph-handler/tasks/check_running_cluster.yml
Skipping callback \'actionable\', as we already have a stdout callback.
Skipping callback \'counter_enabled\', as we already have a stdout callback.
Skipping callback \'debug\', as we already have a stdout callback.
Skipping callback \'dense\', as we already have a stdout callback.
Skipping callback \'dense\', as we already have a stdout callback.
Skipping callback \'full_skip\', as we already have a stdout callback.
Skipping callback \'json\', as we already have a stdout callback.
Skipping callback \'minimal\', as we already have a stdout callback.
Skipping callback \'null\', as we already have a stdout callback.
Skipping callback \'oneline\', as we already have a stdout callback.
Skipping callback \'selective\', as we already have a stdout callback.
Skipping callback \'skippy\', as we already have a stdout callback.
Skipping callback \'stderr\', as we already have a stdout callback.
Skipping callback \'unixy\', as we already have a stdout callback.
Skipping callback \'yaml\', as we already have a stdout callback.PLAYBOOK: site.yml *******************************************************************************************************************************
16 plays in site.yml
[WARNING]: Could not match supplied host pattern, ignoring: mdss
[WARNING]: Could not match supplied host pattern, ignoring: rgws
[WARNING]: Could not match supplied host pattern, ignoring: nfss
[WARNING]: Could not match supplied host pattern, ignoring: rbdmirrors
[WARNING]: Could not match supplied host pattern, ignoring: clients
[WARNING]: Could not match supplied host pattern, ignoring: mgrs
[WARNING]: Could not match supplied host pattern, ignoring: iscsigws
[WARNING]: Could not match supplied host pattern, ignoring: iscsi-gws
[WARNING]: Could not match supplied host pattern, ignoring: rgwloadbalancersPLAY [mons,osds,mdss,rgws,nfss,rbdmirrors,clients,mgrs,iscsigws,iscsi-gws,grafana-server,rgwloadbalancers] ***************************************TASK [check for python] **************************************************************************************************************************
task path: /usr/share/ceph-ansible/raw_install_python.yml:2
Friday 17 September 202114:43:11 +0800 (0:00:00.112)0:00:00.112 ******
<
inf-c7-n1>
Attempting python interpreter discovery
<
inf-c7-n2>
Attempting python interpreter discovery
<
inf-c7-n3>
Attempting python interpreter discovery
<
inf-c7-n1>
ESTABLISH SSH CONNECTION FOR USER: None
<
inf-c7-n2>
ESTABLISH SSH CONNECTION FOR USER: None
<
inf-c7-n5>
Attempting python interpreter discovery
<
inf-c7-n3>
ESTABLISH SSH CONNECTION FOR USER: None
<
inf-c7-n7>
Attempting python interpreter discovery
......
......TASK [show ceph status for cluster ceph] *********************************************************************************************************
task path: /usr/share/ceph-ansible/site.yml:508
Friday 17 September 202115:15:17 +0800 (0:00:01.902)0:32:05.977 ******
ok: [inf-c7-n1 ->
inf-c7-n1] =>
msg:
- \'cluster:\'
- \'id:62fcf0e4-4491-45fd-934f-2ff184be6ff0\'
- \'health: HEALTH_WARN\'
- \'mons are allowing insecure global_id reclaim\'
- \' \'
- \'services:\'
- \'mon: 3 daemons, quorum inf-c7-n1,inf-c7-n2,inf-c7-n3 (age 12m)\'
- \'mgr: inf-c7-n2(active, since 20s), standbys: inf-c7-n3, inf-c7-n1\'
- \'osd: 9 osds: 9 up (since 7m), 9 in (since 7m)\'
- \' \'
- \'data:\'
- \'pools:0 pools, 0 pgs\'
- \'objects: 0 objects, 0 B\'
- \'usage:9.0 GiB used, 81 GiB / 90 GiB avail\'
- \'pgs:\'
- \' \'
META: ran handlers
META: ran handlersPLAY RECAP ***************************************************************************************************************************************
inf-c7-n1: ok=368changed=53unreachable=0failed=0skipped=586rescued=0ignored=0
inf-c7-n2: ok=285changed=44unreachable=0failed=0skipped=531rescued=0ignored=0
inf-c7-n3: ok=296changed=47unreachable=0failed=0skipped=518rescued=0ignored=0
inf-c7-n5: ok=145changed=42unreachable=0failed=0skipped=292rescued=0ignored=0
inf-c7-n6: ok=135changed=41unreachable=0failed=0skipped=286rescued=0ignored=0
inf-c7-n7: ok=135changed=42unreachable=0failed=0skipped=286rescued=0ignored=0INSTALLER STATUS *********************************************************************************************************************************
Install Ceph Monitor: Complete (0:04:08)
Install Ceph OSD: Complete (0:01:35)
Install Ceph Dashboard: Complete (0:02:28)
Install Ceph Grafana: Complete (0:02:31)
Install Ceph Node Exporter: Complete (0:02:03)
Install Ceph Crash: Complete (0:00:24)Friday 17 September 202115:15:17 +0800 (0:00:00.128)0:32:06.106 ******
===============================================================================
ceph-common : install redhat ceph packages ---------------------------------------------------------------------------------------------- 934.58s
/usr/share/ceph-ansible/roles/ceph-common/tasks/installs/install_redhat_packages.yml:18 ---------------------------------------------------------
install ceph-mgr packages on RedHat or SUSE --------------------------------------------------------------------------------------------- 145.92s
/usr/share/ceph-ansible/roles/ceph-mgr/tasks/pre_requisite.yml:9 --------------------------------------------------------------------------------
ceph-container-engine : install container packages --------------------------------------------------------------------------------------- 63.66s
/usr/share/ceph-ansible/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml:26 ---------------------------------------------------
ceph-dashboard : check if dashboard admin user exists ------------------------------------------------------------------------------------ 44.98s
/usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml:154 ------------------------------------------------------------------
ceph-grafana : wait for grafana to start ------------------------------------------------------------------------------------------------- 44.79s
/usr/share/ceph-ansible/roles/ceph-grafana/tasks/configure_grafana.yml:110 ----------------------------------------------------------------------
ceph-common : install centos dependencies ------------------------------------------------------------------------------------------------ 31.31s
/usr/share/ceph-ansible/roles/ceph-common/tasks/installs/install_redhat_packages.yml:10 ---------------------------------------------------------
install ceph-grafana-dashboards package on RedHat or SUSE -------------------------------------------------------------------------------- 25.94s
/usr/share/ceph-ansible/roles/ceph-grafana/tasks/configure_grafana.yml:2 ------------------------------------------------------------------------
ceph-osd : use ceph-volume lvm batch to create bluestore osds ---------------------------------------------------------------------------- 22.51s
/usr/share/ceph-ansible/roles/ceph-osd/tasks/scenarios/lvm-batch.yml:3 --------------------------------------------------------------------------
ceph-infra : install firewalld python binding -------------------------------------------------------------------------------------------- 14.26s
/usr/share/ceph-ansible/roles/ceph-infra/tasks/configure_firewall.yml:16 ------------------------------------------------------------------------
ceph-grafana : make sure grafana is down ------------------------------------------------------------------------------------------------- 11.37s
/usr/share/ceph-ansible/roles/ceph-grafana/tasks/configure_grafana.yml:13 -----------------------------------------------------------------------
ceph-dashboard : copy self-signed generated certificate on mons --------------------------------------------------------------------------- 9.01s
/usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml:84 -------------------------------------------------------------------
gather and delegate facts ----------------------------------------------------------------------------------------------------------------- 8.65s
/usr/share/ceph-ansible/site.yml:42 -------------------------------------------------------------------------------------------------------------
ceph-mgr : wait for all mgr to be up ------------------------------------------------------------------------------------------------------ 8.61s
/usr/share/ceph-ansible/roles/ceph-mgr/tasks/mgr_modules.yml:11 ---------------------------------------------------------------------------------
ceph-mon : fetch ceph initial keys -------------------------------------------------------------------------------------------------------- 8.12s
/usr/share/ceph-ansible/roles/ceph-mon/tasks/ceph_keys.yml:20 -----------------------------------------------------------------------------------
ceph-mon : waiting for the monitor(s) to form the quorum... ------------------------------------------------------------------------------- 7.70s
/usr/share/ceph-ansible/roles/ceph-mon/tasks/ceph_keys.yml:2 ------------------------------------------------------------------------------------
add modules to ceph-mgr ------------------------------------------------------------------------------------------------------------------- 7.38s
/usr/share/ceph-ansible/roles/ceph-mgr/tasks/mgr_modules.yml:44 ---------------------------------------------------------------------------------
ceph-container-engine : start container service ------------------------------------------------------------------------------------------- 6.50s
/usr/share/ceph-ansible/roles/ceph-container-engine/tasks/pre_requisites/prerequisites.yml:81 ---------------------------------------------------
ceph-dashboard : config the current dashboard backend ------------------------------------------------------------------------------------- 6.28s
/usr/share/ceph-ansible/roles/ceph-dashboard/tasks/configure_dashboard.yml:122 ------------------------------------------------------------------
ceph-infra : install chrony --------------------------------------------------------------------------------------------------------------- 6.06s
/usr/share/ceph-ansible/roles/ceph-infra/tasks/setup_ntp.yml:15 ---------------------------------------------------------------------------------
ceph-common : configure red hat ceph community repository stable key ---------------------------------------------------------------------- 5.70s
/usr/share/ceph-ansible/roles/ceph-common/tasks/installs/redhat_community_repository.yml:10 -----------------------------------------------------
完成
[root@inf-c7-n1 ~]# ceph -s
cluster:
id:62fcf0e4-4491-45fd-934f-2ff184be6ff0
health: HEALTH_OKservices:
mon: 3 daemons, quorum inf-c7-n1,inf-c7-n2,inf-c7-n3 (age 2h)
mgr: inf-c7-n2(active, since 111m), standbys: inf-c7-n3, inf-c7-n1
osd: 9 osds: 9 up (since 118m), 9 in (since 118m)data:
pools:1 pools, 32 pgs
objects: 0 objects, 0 B
usage:9.5 GiB used, 80 GiB / 90 GiB avail
pgs:32 active+clean

文章图片

文章图片
推荐阅读
- Kubernetes应用Pod固定IP之kruise
- 网络--链路聚合,vtp
- 如何在wordpress org主题目录下批准wordpress主题()
- 如何修改WordPress网站的URL()
- 如何使用Ajax在WordPress中添加分页(我有需要调试的代码)()
- 如何使用WordPress Customizer API在自定义WordPress主题中添加图像滑块
- 如何将自定义帖子类型存档添加到菜单
- 如何向WordPress主题添加评论
- 如何在WordPress自定义主题中为帖子添加评论( [关闭])