Oracle® Solaris Cluster 参考手册

退出打印视图

更新时间: 2014 年 7 月,E51743-01
 
 

clusters (4)

名称

clusters - 群集名称数据库

用法概要

/etc/clusters 

描述

clusters 文件包含有关本地命名域中已知群集的信息。对于每个群集,单行应包含以下信息:

clustername		whitespace-delimited list of hosts

如果右侧的名称已使用以下扩展标记进行标记,则扩展是递归过程:``*''。

项目由任意数量的空格和/或 TAB 字符隔开。# 表示注释开头。用于搜索文件的例程并未对整行字符进行解释。

群集名称可以包含除大写字符、字段分界符、换行符或注释字符以外的任何可打印字符。群集名称的最大长度为 32 个字符。

Oracle Solaris Cluster 系统管理工具(如 pconsole 命令)使用此信息指定一组要管理的节点。该数据库中使用的名称必须是主机数据库中使用的主机名。

可从 NIS 或 NIS+ 映射或本地文件使用该数据库。可以在 /etc/nsswitch.conf 文件中指定查找顺序。默认顺序为 nis 文件。

示例

示例 1 示例 /etc/clusters 文件

以下是典型的 /etc/clusters 文件:

bothclusters		*planets *wine
planets			mercury venus
wine				zinfandel merlot chardonnay riesling

以下是典型的 /etc/nsswitch.conf 条目:

clusters: nis files

文件

/etc/clusters

 

/etc/nsswitch.conf

 

属性

有关下列属性的说明,请参见 attributes(5)

属性类型
属性值
可用性
ha-cluster/system/core
接口稳定性
Evolving(发展中)

另请参见

serialports(4), nsswitch.conf(4), attributes(5)