I submitted all the
changes required to build a CI cluster via configfs. This is really important in the sense it gets us on fast track in having a proper cluster manager in user space. I am right now looking at CMAN. With the current code base, one can configure the cluster with the below steps
ifconfig eth0 192.168.2.15 netmask 255.255.255.0
mount -t configfs none /config
mkdir /config/ics/node2
echo -n "192.168.2.15" > /config/ics/node2/icsinfo
echo -n "2" > /config/ics/node2/nodenum
ln -s /config/ics/node2 /config/ics/this_node
./cluster_config --preroot
./cluster_config --postroot
echo -n "NODE_UP" > /config/ics/node2/status
echo -n "NODE_READY" > /config/ics/node2/status
To inform regarding other nodes status
mkdir /config/ics/node3
echo -n "192.168.2.16" > /config/ics/node3/icsinfo
echo -n "3" > /config/ics/node3/nodenum
echo -n "NODE_CONFIG" > /config/ics/node3/status
echo -n "NODE_UP" > /config/ics/node3/status
echo -n "NODE_READY" > /config/ics/node3/status