Libro sobre Proxmox maestria
High Availability Storage for High Availability Cluster dns-nameservers 208.67.222.222
# sudo nano /etc/hostname ceph-admin-01
#sudo nano /etc/hosts ceph-admin-01.domain.com
We are now going to change the interface, hostname, and hosts' configuration for all Ceph nodes based on the following table:
192.168.10.12 192.168.10.13 192.168.10.16 ceph-mon-03 ceph-mds-01 ceph-mds-02 192.168.10.17 ceph-osd-01 192.168.10.21 ceph-osd-02
192.168.10.11 ceph-mon-01.domain.com ceph-mon-01 192.168.10.12 ceph-mon-02.domain.com ceph-mon-02 192.168.10.13 ceph-mon-03.domain.com ceph-mon-03 192.168.10.16 ceph-mds-01.domain.com ceph-mds-01 192.168.10.17 ceph-mds-02.domain.com ceph-mds-02 192.168.10.21 ceph-osd-01.domain.com ceph-osd-01 192.168.10.22 ceph-osd-02.domain.com ceph-osd-02
We are going to use Monitor 1 as the admin node for the Ceph cluster. We are going to add all other Ceph hosts into the admin node's host file. Ceph requires a hostname rather than IP addresses to communicate with each other. We could also set up a local DNS server to handle the hostname resolution in a large Ceph cluster. We can sue the admin node or set up another node or virtual machine as a local DNS server. Perform the following steps to set up a local DNS server using Ubuntu server:
1. Install DNS server software in Ubuntu using the following command: #sudo apt-get install bind9
2. Configure the DNS server to cache requests and forward unknown requests to another DNS server using the following command:
3. Uncomment or add forwarder section, followed by the IP address of any public DNS server, such as OpenDNS or Google:
forwarders {