파일의 디스크 경로를 모니터링 또는 모니터링 해제하려면 다음 절차를 수행하십시오.
파일을 사용하여 클러스터 구성을 변경하려면 맨 먼저 현재 구성을 내보내야 합니다. 이 내보내기 작업에서는 변경할 구성 항목을 설정하기 위해 수정할 수 있는 XML 파일을 만듭니다. 이 절차의 지침은 전체 프로세스를 설명합니다.
phys-schost# 프롬프트는 전역 클러스터 프롬프트를 반영합니다. 전역 클러스터에서 이 절차를 수행합니다.
이 절차에서는 장문형 Oracle Solaris Cluster 명령을 제공합니다. 대부분의 명령에는 단문형도 있습니다. 명령은 명령 이름이 장문형과 단문형인 것을 제외하면 동일합니다.
# cldevice export -o configurationfile
XML 파일의 파일 이름을 지정합니다.
모니터할 장치 경로를 찾고 monitored 속성을 true로 설정합니다.
# cldevice monitor -i configurationfile
수정된 XML 파일의 이름을 지정합니다.
# cldevice status
다음 예에서는 XML 파일을 사용하여 노드 phys-schost–2 및 장치 d3 사이의 장치 경로를 모니터합니다.
맨 처음 현재 클러스터 구성을 내보냅니다.
# cldevice export -o deviceconfig
deviceconfig XML 파일은 phys-schost–2와 d3 간의 경로가 현재 모니터되고 있지 않음을 나타냅니다.
<?xml version="1.0"?> <!DOCTYPE cluster SYSTEM "/usr/cluster/lib/xml/cluster.dtd"> <cluster name="brave_clus"> . . . <deviceList readonly="true"> <device name="d3" ctd="c1t8d0"> <devicePath nodeRef="phys-schost-1" monitored="true"/> <devicePath nodeRef="phys-schost-2" monitored="false"/> </device> </deviceList> </cluster>
경로를 모니터하려면 다음과 같이 monitored 속성을 true로 설정합니다.
<?xml version="1.0"?> <!DOCTYPE cluster SYSTEM "/usr/cluster/lib/xml/cluster.dtd"> <cluster name="brave_clus"> . . . <deviceList readonly="true"> <device name="d3" ctd="c1t8d0"> <devicePath nodeRef="phys-schost-1" monitored="true"/> <devicePath nodeRef="phys-schost-2" monitored="true"/> </device> </deviceList> </cluster>
cldevice 명령을 사용하여 파일을 읽고 모니터링을 설정합니다.
# cldevice monitor -i deviceconfig
cldevice 명령을 사용하여 장치가 지금 모니터되고 있는지 확인합니다.
# cldevice status
참조
클러스터 구성 내보내기 및 결과로 생성된 XML 파일을 사용하여 클러스터 구성을 설정하는 방법에 대한 자세한 내용은 cluster(1CL) 및 clconfiguration(5CL) 매뉴얼 페이지를 참조하십시오.