User Tools

Site Tools


progetti:cloud-areapd:ceph:update_from_jewel_to_luminous

Update from Jewel to Luminous

Accertarsi che tutti i MON e tutti gli OSD siano up. Accertarsi, con "ceph status', chelo stato sia HEALTH_OK.

Poi da ceph-mon-01:

ceph osd set sortbitwise

Poi sempre da ceph-mon-01:

ceph osd set noout

Update MON

Su ceph-mon-01, poi ceph-mon-02 e infine ceph-mon-03:

rpm -e ceph-release
rpm -Uvh https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm
yum clean all
yum update
 
shutdown -r now

Terminato l'update dei monitor verificare da un mon le versioni con:

ceph versions
ceph features

Da un mon:

ceph mon feature ls

Configurazione manager

Da uno dei 3 mon, creare le chiavi per i manager:

ceph auth get-or-create mgr.ceph-mon-01 mon 'allow profile mgr' osd 'allow *' mds 'allow *'
ceph auth get-or-create mgr.ceph-mon-02 mon 'allow profile mgr' osd 'allow *' mds 'allow *'
ceph auth get-or-create mgr.ceph-mon-02 mon 'allow profile mgr' osd 'allow *' mds 'allow *'

Su ceph-mon-01:

mkdir /var/lib/ceph/mgr/ceph-ceph-mon-01
chown ceph.ceph /var/lib/ceph/mgr/ceph-ceph-mon-01

Creare il file /var/lib/ceph/mgr/ceph-ceph-mon-01/keyring

che deve avere questo ownership/mode:

-rw------- 1 ceph ceph

e un contenuto di questo tipo:

# cat /var/lib/ceph/mgr/ceph-ceph-mon-01/keyring
[mgr.ceph-mon-01]
	key = AQBkuC5aQMCyHhAASi2BbZghbzG7f6vcHXPS8Q==

con il valore della chiave che deve matchare quanto ritornato da "ceph auth get":

# ceph auth get mgr.ceph-mon-01
exported keyring for mgr.c-mon-1
[mgr.c-mon-1]
	key = AQBkuC5aQMCyHhAASi2BbZghbzG7f6vcHXPS8Q==
	caps mds = "allow *"
	caps mon = "allow profile mgr"
	caps osd = "allow *"

Abiltare e far partire mgr:

systemctl restart ceph-mgr@ceph-mon-01.service
systemctl enable ceph-mgr@ceph-mon-01.service

Verificare con "ceph status" che il monitor sia attivo

Fare le stesse operazioni sugli altri 2 monitor node.

Update OSD

Su ceph-osd-01, poi ceph-osd-02 e infine ceph-osd-03:

rpm -e ceph-release
rpm -Uvh https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm
yum clean all
yum update
 
shutdown -r now

Terminato l'update degli OSD verificare da un mon le versioni con:

ceph versions
ceph features
ceph osd versions

Operazioni da fare prima di updatare i client

Da un minitor:

ceph osd require-osd-release luminous
ceph osd unset noout

In caso di warning (con ceph health) del tipo "HEALTH_WARN application not enabled on 3 pool(s)" taggare i pool in questione, e.g.:

ceph osd pool application enable pool1 test-pool

Attivazione della dashboard

Da un monitor:

ceph mgr module ls
ceph mgr module enable dashboard

Verificare che la dashboard sia stata abilitata e trovare la relativa URL:

ceph mgr module ls
ceph mgr services

Update dei client

Su ogni client:

rpm -e ceph-release
rpm -Uvh https://download.ceph.com/rpm-luminous/el7/noarch/ceph-release-1-1.el7.noarch.rpm
yum clean all
yum update
 
shutdown -r now

Terminato l'update, verificare da un mon le versioni con:

ceph features
progetti/cloud-areapd/ceph/update_from_jewel_to_luminous.txt · Last modified: 2017/12/12 08:23 by sgaravat@infn.it

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki