Rencana Upgrade

Dari:

  • Ubuntu 18.04 (Bionic)
  • Ceph 15.2.X (Octopus)

Ke:

  • Ubuntu 20.04 (Focal)
  • Ceph 16.2.X (Pacific)

Prasyarat

  • Klaster dalam keadaan HEALTH_OK

Panduan

  1. Pasang flag pada klaster dan set default
sudo ceph osd set noout
sudo ceph osd set nobackfill
sudo ceph osd set norecover
sudo ceph osd set norebalance
  1. Update dan upgrade package
sudo apt update -y; sudo apt upgrade -y
  1. Upgrade ke Ubuntu Focal
sudo apt full-upgrade
sudo do-release-upgrade -f DistUpgradeViewNonInteractive
  1. Reboot mesin
sudo reboot
  1. Upgrade package ceph
#1: semua package ceph
sudo apt install -y ceph

#2: spesifik package ceph
sudo apt install -y ceph-mon
sudo apt install -y ceph-mgr
sudo apt install -y ceph-osd
  1. Restart servis ceph-mon dan ceph-mgr
sudo systemctl restart ceph-mon.target ceph-mgr.target
  1. Periksa versi ceph pada klaster
sudo ceph versions
  • keluaran
{
    "mon": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 3
    },
    "mgr": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 3
    },
    "osd": {
        "ceph version 15.2.14 (cd3bb7e87a2f62c1b862ff3fd8b1eec13391a5be) octopus (stable)": 9
    },
    "mds": {},
    "overall": {
        "ceph version 15.2.14 (cd3bb7e87a2f62c1b862ff3fd8b1eec13391a5be) octopus (stable)": 9,
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 6
    }
}
  1. Restart servis ceph-osd
sudo systemctl restart ceph-osd.target
  1. Periksa versi ceph pada klaster
sudo ceph versions
  • keluaran
{
    "mon": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 3
    },
    "mgr": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 3
    },
    "osd": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 9
    },
    "mds": {},
    "overall": {
        "ceph version 16.2.6 (ee28fb57e47e9f88813e24bbf4c14496ca299d31) pacific (stable)": 15
    }
}
  1. Lepas flag pada klaster
sudo ceph osd unset noout
sudo ceph osd unset nobackfill
sudo ceph osd unset norecover
sudo ceph osd unset norebalance
  1. Hasil

Referensi