Hi guys for some reason, i only want to add an new host to a exist ceph-pve-cluster. Only add it to ceph but not pve-cluster.
I already get a ceph-pve-cluster and it work perfectly with three nodes(pve1, pve2, pve3), and pve4 is new to be add.

So I follow the step:
①install ceph using pve-gui version is as same as others'
②scp the `/etc/ceph/ceph.client.admin.keyring` and `/etc/ceph/ceph.conf`
Then I got following files in pve4
③restart the mon and ceph service and using
I try to use chmod to give 600 to keyring file and 644 to the ceph.conf, but still not work.
Also I try to add the pve4 information to the ceph.conf by editor
Is that I using the wrong way to join the ceph-cluster? Need you guys to give some advice on it! Appreciate a lot!
I already get a ceph-pve-cluster and it work perfectly with three nodes(pve1, pve2, pve3), and pve4 is new to be add.

So I follow the step:
①install ceph using pve-gui version is as same as others'
②scp the `/etc/ceph/ceph.client.admin.keyring` and `/etc/ceph/ceph.conf`
Then I got following files in pve4
root@pve4:~# ls -l /etc/ceph/
total 12
-rw------- 1 ceph ceph 151 Feb 12 11:21 ceph.client.admin.keyring
-rw-r--r-- 1 ceph ceph 635 Feb 12 11:39 ceph.conf
-rw-r--r-- 1 root root 92 Oct 21 2021 rbdmap
total 12
-rw------- 1 ceph ceph 151 Feb 12 11:21 ceph.client.admin.keyring
-rw-r--r-- 1 ceph ceph 635 Feb 12 11:39 ceph.conf
-rw-r--r-- 1 root root 92 Oct 21 2021 rbdmap
ceph -s
to check but I got some error:
Code:
root@pve4:~# ceph -s
[errno 13] RADOS permission denied (error connecting to the cluster)
root@pve4:~# ceph -s
2024-02-12T11:54:36.593+0800 7fb6a7fff700 -1 monclient(hunting): handle_auth_bad_method server allowed_methods [2] but i only support [2]
[errno 13] RADOS permission denied (error connecting to the cluster)
root@pve4:~# ceph -s
cluster:
id: ab52a496-d3b5-4881-a0d6-c9431f69c305
health: HEALTH_WARN
OSD count 0 < osd_pool_default_size 3
services:
mon: 1 daemons, quorum pve4 (age 13m)
mgr: no daemons active (since 25m)
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:
I try to use chmod to give 600 to keyring file and 644 to the ceph.conf, but still not work.
Also I try to add the pve4 information to the ceph.conf by editor
[global]
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = 192.168.2.1/24
fsid = 699290a7-4a8e-4b7a-9760-8dad9bb64e1e
mon_allow_pool_delete = true
mon_host = 192.168.2.1 192.168.2.2 192.168.2.3 192.168.2.4
ms_bind_ipv4 = true
ms_bind_ipv6 = false
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = 192.168.2.1/24
[client]
keyring = /etc/pve/priv/$cluster.$name.keyring
[mon.pve1]
public_addr = 192.168.2.1
[mon.pve2]
public_addr = 192.168.2.2
[mon.pve3]
public_addr = 192.168.2.3
[mon.pve4]
public_addr = 192.168.2.4
auth_client_required = cephx
auth_cluster_required = cephx
auth_service_required = cephx
cluster_network = 192.168.2.1/24
fsid = 699290a7-4a8e-4b7a-9760-8dad9bb64e1e
mon_allow_pool_delete = true
mon_host = 192.168.2.1 192.168.2.2 192.168.2.3 192.168.2.4
ms_bind_ipv4 = true
ms_bind_ipv6 = false
osd_pool_default_min_size = 2
osd_pool_default_size = 3
public_network = 192.168.2.1/24
[client]
keyring = /etc/pve/priv/$cluster.$name.keyring
[mon.pve1]
public_addr = 192.168.2.1
[mon.pve2]
public_addr = 192.168.2.2
[mon.pve3]
public_addr = 192.168.2.3
[mon.pve4]
public_addr = 192.168.2.4
Is that I using the wrong way to join the ceph-cluster? Need you guys to give some advice on it! Appreciate a lot!
Last edited: