使用此过程创建 Oracle Grid Infrastructure 资源。此资源用于将由 Oracle Clusterware 管理的操作与由 Oracle Solaris Cluster 管理的操作进行协调。
开始之前
确保注册并配置了 Oracle ASM 资源组。请参见如何注册和配置 Oracle ASM 资源组。
# /Grid_home/bin/crsctl add type sun.zcboot_proxy.type -basetype local_resource # /Grid_home/bin/crsctl add res sun.wait-zc-rs \ -type sun.zcboot_proxy.type \ -attr "ACTION_SCRIPT='/opt/SUNWscor/dsconfig/bin/scproxy_crs_action' \ ACL='owner:root:rwx,pgrp:oinstall:rwx,other::r--' \ SCRIPT_TIMEOUT='20' \ RESTART_ATTEMPTS='60' "
# /Grid_home/bin/crsctl stat res sun.wait-zc-rs -p NAME=sun.wait-zc-rs TYPE=sun.zcboot_proxy.type ACL=owner:root:rwx,pgrp:oinstall:rwx,other::r- …
# /Grid_home/bin/crsctl start res sun.wait-zc-rs
在创建了 sun.storage_proxy.type 资源类型的位置执行此步骤。
# /Grid_home/bin/crsctl \ add type sun.storage_proxy.type \ -basetype local_resource \ -attr \ "ATTRIBUTE=ACTION_SCRIPT,TYPE=string", \ "ATTRIBUTE=HOSTING_MEMBERS,TYPE=string", \ "ATTRIBUTE=CARDINALITY,TYPE=string", \ "ATTRIBUTE=PLACEMENT,TYPE=string", \ "ATTRIBUTE=SCRIPT_TIMEOUT,TYPE=int", \ "ATTRIBUTE=RESTART_ATTEMPTS,TYPE=int", \ "ATTRIBUTE=ACL,TYPE=string", \ "ATTRIBUTE=VERSION,TYPE=string"
在创建了 sun.storage_proxy.type 资源类型的位置执行此步骤。
Oracle Grid Infrastructure 资源名称采用 sun.resource 格式,其中 resource 是 SUNW.ScalDeviceGroup、SUNW.ScalMountPoint 或 SUNW.scalable_acfs_proxy 资源的名称。
# /Grid_home/bin/crsctl add resource sun.resource \ -type sun.storage_proxy.type \ -attr "ACTION_SCRIPT='/opt/SUNWscor/dsconfig/bin/scproxy_crs_action' \ CARDINALITY='number-nodes' \ SCRIPT_TIMEOUT='timeout' \ PLACEMENT='restricted' \ RESTART_ATTEMPTS='restarts' \ HOSTING_MEMBERS='nodelist' \ VERSION='1' "
具有群集成员身份的节点的数量
具有群集成员身份的节点的数量
# /Grid_home/bin/crsctl start resource sun.resource
从全局群集的一个节点执行此步骤。
# /Grid_home/bin/crsctl add type sun.stoptrigger.type -basetype cluster_resource # /Grid_home/bin/crsctl add res sun.acfs-rs -type sun.stoptrigger.type \ -attr "action_script='/opt/SUNWscor/dsconfig/bin/crs_stoptrigger_action' \ HOSTING_MEMBERS='node1 node2[…]' \ CARDINALITY='number-nodes' \ placement='restricted' \ ACL='owner:root:rwx,pgrp:oinstall:rwx,other::r--' \ SCRIPT_TIMEOUT='20' \ RESTART_ATTEMPTS='60' \ START_DEPENDENCIES='hard(ora.appdg.ASMvolume.acfs) pullup:always(ora.appdg.ASMvolume.acfs)' \ STOP_DEPENDENCIES='hard(ora.appdg.ASMvolume.acfs)' "
# /Grid_home/bin/crsctl stat res sun.acfs-rs -p NAME=sun.resource TYPE=sun.stoptrigger.type …
# /Grid_home/bin/crsctl start res sun.acfs-rs
# /Grid_home/bin/crsctl stat res sun.acfs-rs