用于域名服务 (DNS) 的 Sun Cluster 数据服务指南(适用于 Solaris OS)

示例 – 注册故障切换 Sun Cluster HA for DNS

下例说明了如何在双节点群集中注册 Sun Cluster HA for DNS。 请注意,末尾处的 scswitch 命令用于启动 Sun Cluster HA for DNS。


Cluster Information
Node names: phys-schost-1, phys-schost-2
Logical hostname: schost-1
Resource group: resource-group-1 (for all of the resources), 
Resources: schost-1 (logical hostname), dns-1 (DNS application
    resource)

(Register the DNS resource type.)
# scrgadm -a -t SUNW.dns
 
(Add the resource group to contain all of the resources.)
# scrgadm -a -g resource-group-1
 
(Add the logical hostname resource to the resource group.)
# scrgadm -a -L -g resource-group-1 -l schost-1 
 
(Add DNS application resources to the resource group.)
# scrgadm -a -j dns-1 -g resource-group-1 -t SUNW.dns \
-y Network_resources_used=schost-1 -y Port_list=53/udp \
-x DNS_mode=conf -x Confdir_list=/global/dns
 
(Bring the failover resource group online.)
# scswitch -Z -g resource-group-1