#!/bin/bash #When booted from the installer cd in drbd mode, then we still need to install grub into the MBR! if [ -f /proc/drbd ] && grep cdroot /proc/cmdline; then syn3-install-bootloader splashinfo "Redundancy installation finshed, please reboot when syncronication is completed." #reboot right away to make things easier for the administrator #reboot #NO: this creates splitbrains if other node isnt rebooted quickly enough fi #For clustering file to node attacher via an harware ID. The ID we are using is the MAC address of the interface eth0. # #get the hardware id from the node and build a directory named ID. CURRENT_ID=`cat /sys/class/net/eth0/address` mkdir /etc/nodes 1> /dev/null 2> /dev/null mkdir /etc/nodes/$CURRENT_ID 1> /dev/null 2> /dev/null #delete old symlink and create new one. rm /etc/node 1> /dev/null 2> /dev/null ln -s /etc/nodes/$CURRENT_ID /etc/node 1> /dev/null 2> /dev/null exit 0