This page describes how to manually enable ALUA support for a two node cluster, using the command line.
Firstly both nodes need to create the config file at path /opt/HAC/RSF-1/etc/.stmf_proxy
This file needs three lines:
PROXYHOST=<node1> NODEID=0 REMOTE=<node2>
- PROXYHOST should be the network name of the primary node in the cluster. It is not important which node is used for PROXYHOST, as long as it is consistent across both .stmf_proxy files.
- NODEID should be either ’0′ or ’1′. On the machine used for the proxy host, NODEID should be ’0′, and for the second machine, it should be ’1′.
- REMOTE should be the network name of the other machine in the cluster.
For example, in a cluster with machines HAC1 and HAC2, the following should be contained in /opt/HAC/RSF-1/etc/.stmf_proxy:
PROXYHOST=HAC1 NODEID=0 REMOTE=HAC2
PROXYHOST=HAC1 NODEID=1 REMOTE=HAC1
Note that the ‘PROXYHOST‘ does not change, this is a common error made when editing these files by hand. One machine should be chosen to be the proxyhost, and both .stmf_proxy files should reflect this. It is not important which machine is chosen to be proxyhost.
Now run ‘rsfctl stop‘ followed by ‘rsfctl start‘
Upon start you should see the output:
RSF-1: (start) Starting stmfproxy monitor
You can now run ‘stmfadm list-state‘ to confirm that…
Operational Status: online Config Status : initialized ALUA Status : enabled ALUA Node : 0
You can also run ‘ps -ef | grep stmfproxy‘ to confirm that the process is running:
root 8222 8220 0 Oct 19 ? 0:00 /usr/demo/comstar/bin/svc-stmfproxy -f -n 0 nextest1
Posted in: Configuration