Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster
Ceph FS requires MDS to function. We have already put together two physical nodes to set up MDS. We are now going to set up an MDS daemon on them to set up Ceph FS. Note that we do not recommend Ceph FS in a production environment yet to store mission-critical virtual machines or other data.
The following steps can be performed from the admin mode to install Ceph on MDS nodes and set up MDS daemons:
1. Install Ceph on the MDS node using the following commands:
# ceph-deploy install ceph-mds-01
# ceph-deploy install ceph-mds-02
2. Set up the MDS daemon on an MDS nodes using the following commands:
# ceph-deploy mds create <ceph_mds_01>
# ceph-deploy mds create <ceph_mds_02>
3. Now let's check the status of the cluster with the MDS nodes:
cephadmin@ceph-admin-01: /pmxceph# sudo ceph-s
We should have the following output on our screen:
cluster 472cefbe-11a6-40f7-a352-5d245ae89fb3 health HEALTH_OK monmap e2: 3 mons at {ceph-mon-01-192.168.10.11:6789/0, ceph-mon- 02-192.168.10.12:6789/0, ceph-mon-03-192.168.10.13:6789/0}, election epoch 6, quorum 0,1,2 ceph-mon-01, ceph-mon-02, ceph- mon-03 mdsmap e5: 1/1/1 up (0-ceph-mds-01-up:active}, 1 up: standby osdmap e17: 4 osds: 4 up, 4 in pgmap v37: 192 pgs, 3 pools, 9470 bytes data, 21 objects
138 MB used, 299 GB / 299 GB avail
192 active+clean client io 0 B/s rd, 10837 B/s wr, 13 op/s
From the previous status, we can see a new line has been added for the mdsmap and it shows one MDS node is active while the other one is standing by. Whenever one of the MDS nodes fails, the other one will pick up automatically and almost instantly.