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
- 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
- Update dan upgrade package
sudo apt update -y; sudo apt upgrade -y
- Upgrade ke Ubuntu Focal
sudo apt full-upgrade
sudo do-release-upgrade -f DistUpgradeViewNonInteractive
- Reboot mesin
sudo reboot
- 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
- Restart servis ceph-mon dan ceph-mgr
sudo systemctl restart ceph-mon.target ceph-mgr.target
- 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
}
}
- Restart servis ceph-osd
sudo systemctl restart ceph-osd.target
- 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
}
}
- Lepas flag pada klaster
sudo ceph osd unset noout
sudo ceph osd unset nobackfill
sudo ceph osd unset norecover
sudo ceph osd unset norebalance
- Hasil