Upgrading your Ceph cluster

Upgrading your Ceph cluster software version is relatively simple. You just need to update the Ceph package followed by a service restart and you are done. The upgradation process is sequential and usually does not require any downtime for your storage services if you have configured your cluster in high availability, that is, with multiple OSDs, monitors, MDS, and RADOSGW. As a general practice, you should plan your cluster upgradation during nonpeak hours. The upgradation process upgrades each Ceph daemon one by one. The recommended upgradation sequence for a Ceph cluster is as follows:

  1. Monitor
  2. OSD
  3. Metadata Server (MDS)
  4. RADOS gateway

You should upgrade all daemons of a specific type and then proceed for upgradation of the next type. For example, if your cluster contains three monitor nodes, 100 OSDS, 2 MDS, and a RADOSGW. You should first upgrade all your monitor nodes one by one, followed by upgrading all OSD nodes one by one, then MDS, and then RADOSGW. This is to keep all specific types of daemons on the same release level.

Tip

Before proceeding with upgradation of Ceph daemons, please read the release notes and any other upgradation-related information on Ceph official documentation. Once you upgrade a daemon, you cannot downgrade it.

Note

Warning

Before upgradation, you should always check the Ceph client requirements such as the kernel version or any other relevant components.

Upgrading a monitor

Proceed with the following steps to upgrade a monitor:

  1. Check the current version of your Ceph daemons:
    Upgrading a monitor

    Since our test cluster setup has MON and OSD daemons running on the same machine, upgrading Ceph software binaries to the Firefly release (0.80) will result in upgrading MON and OSD daemons in one step. However, in the production deployment of Ceph, upgradation should take place one by one. Otherwise, you might face problems.

  2. Upgrade your Ceph repositories to the targeted Firefly repositories. Usually, you just need to update your new Ceph release name in the /etc/yum.repos.d/ceph.repo file that is already present:
    Upgrading a monitor
  3. Update your Ceph software:
    # yum update ceph
    
  4. Once the Ceph software binaries are updated, you should restart the Ceph monitor daemons to have the changes take effect:
    # service ceph restart mon
    
  5. Check the monitor daemon version; it should be updated:
    # service ceph status mon
    
    Upgrading a monitor
  6. Check the monitor stats:
    # ceph mon stat
    
  7. Repeat these steps for other monitor nodes in your cluster. Make sure all the monitor nodes are on the same Ceph release before proceeding to OSD, MDS, or RGW upgradation.

Upgrading OSDs

Proceed with the following steps to upgrade OSDs:

  1. Similar to the monitor upgradation process, upgrade your Ceph repositories to the targeted Firefly repositories.
  2. Perform the Ceph software upgradation:
    # yum update ceph
    
  3. Once the Ceph software is successfully updated, restart the OSD daemons:
    # service ceph restart osd
    
  4. Check the OSD status; you should discover the updated OSD version:
    # service ceph status osd
    
    Upgrading OSDs
  5. Repeat these steps for other OSD nodes in your cluster. Make sure all OSDs of your cluster are on the same Ceph release.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.128.226.255