Using DNS RecordsThe recommended way of configuring cluster discovery is to use special DNS records. The process of setting up this type of cluster discovery includes two steps:
Announcing the Information About MDS Servers You can use SRV records to announce the information about running MDS servers in the cluster. The service field of an SRV record pointing to an MDS server must have the following format:
_pstorage._tcp.
where
The following example shows a DNS zone file that contains records for three MDS servers listening on the default port 2510 and configured for the
$ORIGIN pcs.test. $TTL 1H @ IN SOA ns rname.invalid. (1995032001 5H 10M 1D 3H) NS @ A 192.168.100.1 s1 A 192.168.100.1 s2 A 192.168.100.2 s3 A 192.168.100.3 ; SERVICE SECTION ; MDS for the 'pcs1' cluster runs on s1.pcs.test and listens on port 2510 _pstorage._tcp.pcs1 SRV 0 1 2510 s1 ; MDS for the 'pcs1' cluster runs on s2.pcs.test and listens on port 2510 _pstorage._tcp.pcs1 SRV 0 1 2510 s2 ; MDS for the 'pcs1' cluster runs on s3.pcs.test and listens on port 2510 _pstorage._tcp.pcs1 SRV 0 1 2510 s3 ; eof
Once you configure DNS SRV records for the
# host -t SRV _pstorage._tcp.pcs1 _pstorage._tcp.pcs1.pcs.test has SRV record 0 1 2510 s1.pcs.test. _pstorage._tcp.pcs1.pcs.test has SRV record 0 1 2510 s2.pcs.test. _pstorage._tcp.pcs1.pcs.test has SRV record 0 1 2510 s3.pcs.test. Discovering Cluster Names
The easiest and most efficient way of discovering the names of clusters in your network is to specify all cluster names in
pstorage_clusters 300 IN TXT "
pstorage_clusters 300 IN TXT "
pstorage_clusters 300 IN TXT "
Another way of discovering cluster names in your network is to use DNS zone transfers. Once DNS zone transfers are enabled, cluster tools will be able to retrieve all DNS SRV records from DNS zone files and extract cluster names from these records.
After you set up cluster discovery via DNS TXT records or DNS zone transfers, you can run the
# pstorage discover 02-10-12 13:16:46.233 Discovering using DNS TXT records: OK 02-10-12 13:16:46.308 Discovering using DNS zone transfer: FAIL pcs1 pcs2 pcs3
The example
|
||||
|