Update OS with clean install
Hi all I'm working on a way to automate the OS upgrade of our hosts. This happens with a complete reinstall of the OS. What is the correct way to do this? At the moment I'm using the following: * Store host labels (we use labels to deploy the services) * Fail-over MDS and MGR services if running on the host * Set host in maintenance mode * Reinstall host with newer OS * Remove host from cluster * Configure host with correct settings (for example cephadm user SSH key etc.) * Add host to cluster again with correct labels * For OSD hosts run ceph cephadm osd activate If somebody has some advice I would gladly hear about it! KIND regards, Sake
Hi, On 6/4/24 14:35, Sake Ceph wrote:
* Store host labels (we use labels to deploy the services) * Fail-over MDS and MGR services if running on the host * Remove host from cluster * Add host to cluster again with correct labels
AFAIK the steps above are not necessary. It should be sufficient to do these: * Set host in maintenance mode * Reinstall host with newer OS * Configure host with correct settings (for example cephadm user SSH key etc.) * Unset maintenance mode for the host * For OSD hosts run ceph cephadm osd activate Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin https://www.heinlein-support.de Tel: 030 / 405051-43 Fax: 030 / 405051-19 Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin
Hi Robert, I tried, but that doesn't work :( Using exit maintenance mode results in the error: "missing 2 required positional arguments: 'hostname' and 'addr'" But running the command a second time, it looks like it works, but then I get errors with starting the containers. The start up fails because it can't pull the container image because authentication is required (our instance is offline and we're using a local image registry with authentication). Kind regards, Sake
Op 04-06-2024 14:40 CEST schreef Robert Sander <r.sander@heinlein-support.de>:
Hi,
On 6/4/24 14:35, Sake Ceph wrote:
* Store host labels (we use labels to deploy the services) * Fail-over MDS and MGR services if running on the host * Remove host from cluster * Add host to cluster again with correct labels
AFAIK the steps above are not necessary. It should be sufficient to do these:
* Set host in maintenance mode * Reinstall host with newer OS * Configure host with correct settings (for example cephadm user SSH key etc.) * Unset maintenance mode for the host * For OSD hosts run ceph cephadm osd activate
Regards -- Robert Sander Heinlein Consulting GmbH Schwedter Str. 8/9b, 10119 Berlin
https://www.heinlein-support.de
Tel: 030 / 405051-43 Fax: 030 / 405051-19
Amtsgericht Berlin-Charlottenburg - HRB 220009 B Geschäftsführer: Peer Heinlein - Sitz: Berlin _______________________________________________ ceph-users mailing list -- ceph-users@ceph.io To unsubscribe send an email to ceph-users-leave@ceph.io
participants (2)
-
Robert Sander
-
Sake Ceph