本文尝试在龙蜥Anolis OS8.6QU1上通过cephadm部署ceph17.2.0分布式块存储,实现国产化操作系统上的存储系统构建,本步骤为完成首节点mon节点和图形界面,完成其它节点的基础安装,完成添加其它主机和添加mgr节点后再进行的第四步操作。
一、验证当前系统情况
[root@ceph1 opt]# ceph -s
cluster:
id: 58a31a00-bf04-11ed-a192-000e1e99b662
health: HEALTH_WARN
OSD count 0 < osd_pool_default_size 3
services:
mon: 1 daemons, quorum ceph1 (age 31h)
mgr: ceph1.biobao(active, since 31h), standbys: ceph2.dojvls, ceph3.hlsirv
osd: 0 osds: 0 up, 0 in
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 0 B used, 0 B / 0 B avail
pgs:
[root@ceph1 opt]#
二、向其它节点部署mon服务
-
部署mon服务
[root@ceph1 opt]# ceph orch daemon add mon ceph2:192.168.188.2/24
Deployed mon.ceph2 on host 'ceph2'
[root@ceph1 opt]# ceph orch daemon add mon ceph3:192.168.188.3/24
Deployed mon.ceph3 on host 'ceph3'
[root@ceph1 opt]#
-
验证部署结果
[root@ceph1 opt]# ceph -s
cluster:
id: 58a31a00-bf04-11ed-a192-000e1e99b662
health: HEALTH_WARN
clock skew detected on mon.ceph2, mon.ceph3
OSD count 0 < osd_pool_default_size 3
services:
mon: 3 daemons, quorum ceph1,ceph2,ceph3 (age 46s)
mgr: ceph1.biobao(active, since 32h), standbys: ceph2.dojvls, ceph3.hlsirv
osd: 0 osds: 0 up, 0 in
data:
pools: 0 pools, 0 pgs
objects: 0 objects, 0 B
usage: 0 B used, 0 B / 0 B avail
pgs:
“mon: 3 daemons, quorum ceph1,ceph2,ceph3”显示部署已成功。
-
在其它节点验证容器服务情况
ceph2主机:
[root@ceph2 opt]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
69944ab4affe quay.io/ceph/ceph:v17.2.0 -n mgr.ceph2.dojv... About an hour ago Up About an hour ago ceph-58a31a00-bf04-11ed-a192-000e1e99b662-mgr-ceph2-dojvls
5c2661e85776 quay.io/ceph/ceph:v17.2.0 -n mon.ceph2 -f -... 3 minutes ago Up 3 minutes ago
ceph3主机:
[root@ceph3 opt]# podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
5b6b57c81624 quay.io/ceph/ceph:v17.2.0 -n mgr.ceph3.hlsi... About an hour ago Up About an hour ago ceph-58a31a00-bf04-11ed-a192-000e1e99b662-mgr-ceph3-hlsirv
c12f4620f1b8 quay.io/ceph/ceph:v17.2.0 -n mon.ceph3 -f -... 3 minutes ago Up 3 minutes ago ceph-58a31a00-bf04-11ed-a192-000e1e99b662-mon-ceph3
三、登录web验证结果
到目前,已完成共4台主机,其中前3台部署了1主2备mgr服务,和3个mon服务。