开始之前
确保您具有以下信息。
要更改的资源类型的名称。
要更改的资源类型属性的名称。对于资源类型,只能更改某些属性。要确定是否可以更改某个属性,请参见 rt_properties(5) 手册页中该属性的“可调”条目。
# clresourcetype show -v
对于资源类型,只能更改某些属性。要确定是否可以更改某个属性,请参见 rt_properties(5) 手册页中该属性的“可调”条目。
# clresourcetype set -n installed-node-list \ [-p property=new-value]resource-type
指定安装了此资源类型的节点的名称。
指定要更改的标准属性名称以及该属性的新值。
无法显式更改 Installed_nodes 属性。要更改此属性,请在 clresourcetype 命令中指定 –n installed-node-list 选项。
# clresourcetype show resource-type
此示例展示了通过更改 SUNW.apache 属性来定义该资源类型安装在群集节点 phys-schost-1 和 phys-schost-2 上。
# clresourcetype set -n phys-schost-1,phys-schost-2 SUNW.apache # clresourcetype show SUNW.apache Resource Type: SUNW.apache:4.2 RT_description: Apache Web Server on Oracle Solaris Cluster RT_version: 4.2 API_version: 2 RT_basedir: /opt/SUNWscapc/bin Single_instance: False Proxy: False Init_nodes: All potential masters Installed_nodes: All Failover: False Pkglist: <NULL> RT_system: False Global_zone: False