9.10. 펜싱 토폴로지에서 노드 지정
노드 이름 및 해당 값에 적용되는 정규식으로 펜싱 토폴로지의 노드를 지정할 수 있습니다.
절차
다음 명령은 노드
node1,node2및node3을 구성하여 차단 장치apc1및apc2, node4 ,node4,node5,node6을 사용하여 차단 장치apc3및apc4를 사용합니다.# pcs stonith level add 1 "regexp%node[1-3]" apc1,apc2 # pcs stonith level add 1 "regexp%node[4-6]" apc3,apc4다음 명령은 노드 특성 일치를 사용하여 동일한 결과를 제공합니다.
# pcs node attribute node1 rack=1 # pcs node attribute node2 rack=1 # pcs node attribute node3 rack=1 # pcs node attribute node4 rack=2 # pcs node attribute node5 rack=2 # pcs node attribute node6 rack=2 # pcs stonith level add 1 attrib%rack=1 apc1,apc2 # pcs stonith level add 1 attrib%rack=2 apc3,apc4