이 절차에 따라 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