Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster
Before any sort of CRUSH map manipulation, the map has to be extracted from the Ceph cluster. Simply run the following command to extract the CRUSH map:
Once the extraction is complete, we highly recommend that you keep the first CRUSH map in a safe place as backup. This way, we can always put the original CRUSH map back into the cluster if something goes wrong when editing later. For our cluster, we are going to run the following command from the admin node:
We are going to put away this Crush map, crushmap1, in a folder in /home/ cephadmin/pmxceph/backup/crushmap.
After successful extraction, we will see something like the following information: got crush map from osdmap epoch 17
To make the extracted CRUSH map humanly readable, we need to decompile it with the following command format:
We will now use the following command format to decompile our crushmap1 file extracted earlier:
# crushtool -d crushmapl -o crushmapl.txt
We now have the CRUSH map in an easily readable text format. We can use any editor to open the CRUSH map for editing. For our cluster, we are going to use the nano editor. The following code is how our CRUSH map will look like:
#begin crush map
# devices device 0 osd.0 device 1 osd.1 device 2 osd.2 device 3 osd.3
# types