progetti:cloud-areapd:ceph:update_from_jewel_to_luminous
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| progetti:cloud-areapd:ceph:update_from_jewel_to_luminous [2017/12/12 08:23] – sgaravat@infn.it | progetti:cloud-areapd:ceph:update_from_jewel_to_luminous [2017/12/12 08:23] (current) – sgaravat@infn.it | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Update from Jewel to Luminous ===== | ||
| + | |||
| + | Accertarsi che tutti i MON e tutti gli OSD siano up. Accertarsi, con "ceph status', | ||
| + | |||
| + | Poi da ceph-mon-01: | ||
| + | |||
| + | <code bash> | ||
| + | ceph osd set sortbitwise | ||
| + | </ | ||
| + | |||
| + | |||
| + | Poi sempre da ceph-mon-01: | ||
| + | |||
| + | <code bash> | ||
| + | ceph osd set noout | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Update MON ==== | ||
| + | |||
| + | Su ceph-mon-01, | ||
| + | |||
| + | <code bash> | ||
| + | rpm -e ceph-release | ||
| + | rpm -Uvh https:// | ||
| + | yum clean all | ||
| + | yum update | ||
| + | |||
| + | shutdown -r now | ||
| + | </ | ||
| + | |||
| + | Terminato l' | ||
| + | |||
| + | <code bash> | ||
| + | ceph versions | ||
| + | ceph features | ||
| + | </ | ||
| + | |||
| + | |||
| + | Da un mon: | ||
| + | |||
| + | <code bash> | ||
| + | ceph mon feature ls | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Configurazione manager ==== | ||
| + | |||
| + | Da uno dei 3 mon, creare le chiavi per i manager: | ||
| + | |||
| + | <code bash> | ||
| + | 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: | ||
| + | |||
| + | <code bash> | ||
| + | mkdir / | ||
| + | chown ceph.ceph / | ||
| + | </ | ||
| + | |||
| + | Creare il file / | ||
| + | |||
| + | che deve avere questo ownership/ | ||
| + | |||
| + | < | ||
| + | -rw------- 1 ceph ceph | ||
| + | </ | ||
| + | |||
| + | e un contenuto di questo tipo: | ||
| + | |||
| + | <code bash> | ||
| + | # cat / | ||
| + | [mgr.ceph-mon-01] | ||
| + | key = AQBkuC5aQMCyHhAASi2BbZghbzG7f6vcHXPS8Q== | ||
| + | </ | ||
| + | |||
| + | con il valore della chiave che deve matchare quanto ritornato da "ceph auth get": | ||
| + | |||
| + | <code bash> | ||
| + | |||
| + | # 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: | ||
| + | |||
| + | <code bash> | ||
| + | systemctl restart ceph-mgr@ceph-mon-01.service | ||
| + | systemctl enable ceph-mgr@ceph-mon-01.service | ||
| + | </ | ||
| + | |||
| + | |||
| + | Verificare con "ceph status" | ||
| + | |||
| + | Fare le stesse operazioni sugli altri 2 monitor node. | ||
| + | |||
| + | |||
| + | ==== Update OSD ==== | ||
| + | |||
| + | Su ceph-osd-01, | ||
| + | |||
| + | <code bash> | ||
| + | rpm -e ceph-release | ||
| + | rpm -Uvh https:// | ||
| + | yum clean all | ||
| + | yum update | ||
| + | |||
| + | shutdown -r now | ||
| + | </ | ||
| + | |||
| + | Terminato l' | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | ceph versions | ||
| + | ceph features | ||
| + | ceph osd versions | ||
| + | </ | ||
| + | |||
| + | ==== Operazioni da fare prima di updatare i client ==== | ||
| + | |||
| + | Da un minitor: | ||
| + | |||
| + | <code bash> | ||
| + | ceph osd require-osd-release luminous | ||
| + | ceph osd unset noout | ||
| + | </ | ||
| + | |||
| + | In caso di warning (con ceph health) del tipo " | ||
| + | |||
| + | <code bash> | ||
| + | ceph osd pool application enable pool1 test-pool | ||
| + | </ | ||
| + | |||
| + | ==== Attivazione della dashboard ==== | ||
| + | |||
| + | Da un monitor: | ||
| + | |||
| + | <code bash> | ||
| + | ceph mgr module ls | ||
| + | ceph mgr module enable dashboard | ||
| + | </ | ||
| + | |||
| + | Verificare che la dashboard sia stata abilitata e trovare la relativa URL: | ||
| + | |||
| + | <code bash> | ||
| + | ceph mgr module ls | ||
| + | ceph mgr services | ||
| + | </ | ||
| + | |||
| + | ==== Update dei client ==== | ||
| + | |||
| + | Su ogni client: | ||
| + | |||
| + | <code bash> | ||
| + | rpm -e ceph-release | ||
| + | rpm -Uvh https:// | ||
| + | yum clean all | ||
| + | yum update | ||
| + | |||
| + | shutdown -r now | ||
| + | </ | ||
| + | |||
| + | Terminato l' | ||
| + | |||
| + | |||
| + | <code bash> | ||
| + | ceph features | ||
| + | </ | ||
| + | |||
