You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »



Supponiamo che il nodo da reinstallare sia ceph-mon-03


Spengo i servizi mon e mgr:


[root@ceph-mon-03 ~]# systemctl stop ceph-mgr.target
[root@ceph-mon-03 ~]# systemctl stop ceph-mon.target
[root@ceph-mon-03 ~]# systemctl stop ceph-mon@ceph-mon-03


Elimino il mon:


[root@ceph-mon-03 ~]# ceph mon remove ceph-mon-03


In foreman metto il server nell'HostGroup hosts_all e reinstallo la macchina con AlmaLinux9


Configurazione rete dati:


nmcli con mod eno3 ipv4.method manual ipv4.addr "192.168.61.208/24"
nmcli con mod eno3 802-3-ethernet.mtu 9000
nmcli con up eno3
nmcmkdir /var/lib/ceph/mon/ceph-ceph-mon-03
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03
mkdir /tmp/ceph-ceph-mon-03
ceph auth get mon. -o /tmp/ceph-ceph-mon-03/monkeyring
ceph mon getmap -o /tmp/ceph-ceph-mon-03/monmap
ceph-mon -i ceph-mon-03 --mkfs --monmap /tmp/ceph-ceph-mon-03/monmap --keyring /tmp/ceph-ceph-mon-03/monkeyring 
touch /var/lib/ceph/mon/ceph-ceph-mon-03/systemd
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03/*
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03/store.db/*
systemctl start ceph-mon@ceph-mon-03
systemctl enable ceph-mon@ceph-mon-03
li con mod eno3 connection.autoconnect yes


Cancello l'utente ceph-mon-03:


[root@ceph-mon-01 ~]# ceph auth del mgr.ceph-mon-03
[root@ceph-mon-01 ~]#


Installo ceph:

 rpm -e epel-release # e' gia' installato ma disabilitato
 yum install epel-release
 rpm -Uvh https://download.ceph.com/rpm-quincy/el9/noarch/ceph-release-1-1.el9.noarch.rpm
 yum clean all
 yum update
 yum install ceph



In foreman metto il server nell'HosGroup ceph_prod


puppet agent -t


Copio da un altro nodo /etc/ceph/ceph.client.admin.keyring


Configuro parte MON:


mkdir /var/lib/ceph/mon/ceph-ceph-mon-03
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03
mkdir /tmp/ceph-ceph-mon-03
ceph auth get mon. -o /tmp/ceph-ceph-mon-03/monkeyring
ceph mon getmap -o /tmp/ceph-ceph-mon-03/monmap
ceph-mon -i ceph-mon-03 --mkfs --monmap /tmp/ceph-ceph-mon-03/monmap --keyring /tmp/ceph-ceph-mon-03/monkeyring 
touch /var/lib/ceph/mon/ceph-ceph-mon-03/systemd
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03/*
chown ceph.ceph /var/lib/ceph/mon/ceph-ceph-mon-03/store.db/*
systemctl start ceph-mon@ceph-mon-03
systemctl enable ceph-mon@ceph-mon-03



  • No labels