このコンテンツは選択した言語では利用できません。
Chapter 18. Storage Cluster Upgrade
Upgrading Ceph daemons involves installing the upgraded packages, and restarting each Ceph daemon. We recommend upgrading in this order:
- Ceph Monitors
- Ceph OSD Daemons
Ceph Object Gateways
To upgrade monitors, first remove existing
Ceph
repos.From monitor node, execute:
cd /etc/yum.repos.d/ sudo rm -rf calamari-minion.repo ceph.repo
cd /etc/yum.repos.d/ sudo rm -rf calamari-minion.repo ceph.repo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then, execute the following from your admin node:
ceph-deploy install --repo <ceph-node>[<ceph-node> ...] ceph-deploy install <ceph-node>[<ceph-node> ...]
ceph-deploy install --repo <ceph-node>[<ceph-node> ...] ceph-deploy install <ceph-node>[<ceph-node> ...]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ceph-deploy
will install the latest version of Ceph.Although your monitor node is already connected with Calamari node from the previous installation, you need to reconnect your monitor node to the Calamari to get the latest
salt-minion
package.Execute from your admin node:
ceph-deploy calamari connect <ceph-node>
ceph-deploy calamari connect <ceph-node>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow From the monitor node, restart the Ceph Monitor daemon:
sudo /etc/init.d/ceph [options] restart mon.[id]
sudo /etc/init.d/ceph [options] restart mon.[id]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Upgrade each monitor one at a time, and allow the monitor to come up and in, rejoining the monitor quorum, before proceeding to upgrade the next monitor.
To upgrade OSDs, first remove existing
Ceph
repos.From OSD node, execute:
cd /etc/yum.repos.d/ sudo rm -rf calamari-minion.repo ceph.repo
cd /etc/yum.repos.d/ sudo rm -rf calamari-minion.repo ceph.repo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then, execute the following from your admin node:
ceph-deploy install --repo <ceph-node>[<ceph-node> ...] ceph-deploy install <ceph-node>[<ceph-node> ...]
ceph-deploy install --repo <ceph-node>[<ceph-node> ...] ceph-deploy install <ceph-node>[<ceph-node> ...]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow ceph-deploy
will install the latest version of Ceph.Although your OSD node is already connected with Calamari node from the previous installation, you need to reconnect your OSD node to the Calamari node to get the latest
salt-minion
package.Execute from your admin node:
ceph-deploy calamari connect <ceph-node>
ceph-deploy calamari connect <ceph-node>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow We recommend upgrading OSDs by CRUSH hierarchy—i.e., by failure domain or performance domain. Give each daemon time to come
up
andin
with the cluster reaching aHEALTH_OK
state before proceeding to the next CRUSH hierarchy. To restart an OSD, executeceph
with therestart
command. Use the following syntax:sudo /etc/init.d/ceph [options] restart osd.[id]
sudo /etc/init.d/ceph [options] restart osd.[id]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To upgrade a Ceph Object Gateway daemon, first remove existing
Ceph
repos (if any).From gateway node, execute:
cd /etc/yum.repos.d/ sudo rm -rf ceph.repo
cd /etc/yum.repos.d/ sudo rm -rf ceph.repo
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then, execute the following from your admin node:
ceph-deploy install --repo <gateway-node>
ceph-deploy install --repo <gateway-node>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Then upgrade the
ceph-radosgw
package. Execute from your gateway node:sudo yum install ceph-radosgw
sudo yum install ceph-radosgw
Copy to Clipboard Copied! Toggle word wrap Toggle overflow To upgrade the Ceph Object Gateway synchronization agent, execute from your gateway node:
sudo yum install radosgw-agent
sudo yum install radosgw-agent
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Restart each Ceph Object gateway daemon. To do so, execute the following on each gateway node:
sudo service ceph-radosgw restart
sudo service ceph-radosgw restart
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you are running a federated architecture, restart your sync agent(s). For data replication agents, go to the terminal and execute
ctrl + c
; then, execute:radosgw-agent -c [config-file]
radosgw-agent -c [config-file]
Copy to Clipboard Copied! Toggle word wrap Toggle overflow For metadata replication agents, go to the terminal and execute
ctrl + c
; then, execute:radosgw-agent -c [config-file] --metadata-only
radosgw-agent -c [config-file] --metadata-only
Copy to Clipboard Copied! Toggle word wrap Toggle overflow