Enter cluster name [Cluster]:Cluster Enter IP address for cluster alias [x.x.x.x]: 10.0.0.3 -------------------------------- Information for Cluster Member 0 -------------------------------- Enter name of cluster member [storage0]: node1 Looking for host storage0 (may take a few seconds)... Enter number of heartbeat channels (minimum = 1) [1]: 1 Information about Channel 0 Channel type: net or serial [net]: Enter hostname of the cluster member on heartbeat channel 0 \ [node1]: node1 Looking for host node1 (may take a few seconds)... Information about Quorum Partitions Enter Primary Quorum Partition [/dev/raw/raw1]: /dev/raw/raw1 Enter Shadow Quorum Partition [/dev/raw/raw2]: /dev/raw/raw2 Information About the Power Switch That Power Cycles Member ’storage0’ Choose one of the following power switches: o NONE o RPS10 o BAYTECH o APCSERIAL o APCMASTER o WTI_NPS Power switch [NONE]: NONE
Information for Cluster Member 1 -------------------------------- Enter name of cluster member [node2]: node2 Looking for host storage1 (may take a few seconds)... Information about Channel 0 Enter hostname of the cluster member on heartbeat channel 0 \ [node2]: node2 Looking for host storage1 (may take a few seconds)... Information about Quorum Partitions Enter Primary Quorum Partition [/dev/raw/raw1]: /dev/raw/raw1 Enter Shadow Quorum Partition [/dev/raw/raw2]: /dev/raw/raw2 Information About the Power Switch That Power Cycles Member ’node2’ Choose one of the following power switches: o NONE o RPS10 o BAYTECH o APCSERIAL o APCMASTER o WTI_NPS Power switch [NONE]: NONE
Cluster name: Development Cluster Cluster alias IP address: 10.0.0.154 Cluster alias netmask: 255.255.254.0 -------------------- Member 0 Information -------------------- Name: node1 Primary quorum partition: /dev/raw/raw1 Shadow quorum partition: /dev/raw/raw2 Heartbeat channels: 1 Channel type: net, Name: node1 Power switch IP address or hostname: node1 -------------------- Member 1 Information -------------------- Name: node2 Primary quorum partition: /dev/raw/raw1 Shadow quorum partition: /dev/raw/raw2 Heartbeat channels: 1 Channel type: net, Name: node2 Save the cluster member information? yes/no [yes]: Writing to configuration file...done Configuration information has been saved to /etc/cluster.conf. ---------------------------- Setting up Quorum Partitions ---------------------------- Running cludiskutil -I to initialize the quorum partitions: done Saving configuration information to quorum partitions: done Do you wish to allow remote monitoring of the cluster? yes/no \ [yes]: yes ---------------------------------------------------------------- Configuration on this member is complete. To configure the next member, invoke the following command on that system: # /sbin/cluconfig --init=/dev/raw/raw1 See the manual to complete the cluster installation
3.配制第二个节点
只需执行 cluconfig --init=/dev/raw/raw1
4.启动Cluster服务
分别在两个节点上执行 service cluster start 你将看到下面的几个Daemon • cluquorumd — Quorum daemon