Libro sobre Proxmox maestria
Chapter 7
As of this writing, the codename of Ceph's latest release is Firefly. Before installing ceph-deploy, be sure to check Ceph's latest codename. Change the name in the echo command accordingly:
# echo deb http://ceph.com/debian-<ceph_codename>/ $ (1sb_release -sc) main sudo tee /etc/apt/sources.list.d/ceph.list
We are now going to create a cluster configuration file using the ceph-deploy command. It is best to store all of the Ceph cluster configuration in one folder for easy management and backup. We will create a new folder in the ceph-admin-01 node under /home/cephadmin and call it pmxceph. The command format to create a new cluster is as follows:
By default, Ceph creates a cluster with the name ceph. If you want a different name for your cluster, then the command format will be the following:
The option to name a cluster is useful when setting up multiple Ceph clusters on the same hardware. For example, separate clusters can coexist on the same hardware for SSD and HDD pools to create a multi-tiered storage. The commands to do so are as follows:
cephadmin@ceph-admin-01: # cd /home/cephadmin cephadmin@ceph-admin-01: # mkdir pmxceph cephadmin@ceph-admin-01: # cd pmxceph cephadmin@ceph-admin-01: /pmxceph# ceph-deploy new ceph-mon-01 ceph- mon-02 ceph-mon-03
At this point, Ceph will create the following three files inside the pmxceph folder:
The following is the content of each file created during the Ceph cluster setup:
Ceph cluster configuration file ceph.conf:
467cefbe-19a6-40y7-a322-5d217ae89fb3 mon_initial_members ceph-mon-01, ceph-mon-02, ceph-mon-03