source: npl/kernel/drbd8/boot.drbd @ 9b9dbbb

Last change on this file since 9b9dbbb was 2fd27f0, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

dont auto reboot after drbd setup. make sure old drbd isnt reinstalled

  • Property mode set to 100644
File size: 949 bytes
RevLine 
[c5c522c]1#!/bin/bash
2#When booted from the installer cd in drbd mode, then we still need to install grub into the MBR!
3if [ -f /proc/drbd ] && grep cdroot /proc/cmdline; then
4        syn3-install-bootloader
[2fd27f0]5        splashinfo "Redundancy installation finshed, please reboot when syncronication is completed."
[c5c522c]6        #reboot right away to make things easier for the administrator
[2fd27f0]7        #reboot
8        #NO: this creates splitbrains if other node isnt rebooted quickly enough
[c5c522c]9fi
10
11#For clustering file to node attacher via an harware ID. The ID we are using is the MAC address of the interface eth0.
12#
13#get the hardware id from the node and build a directory named ID.
14CURRENT_ID=`cat /sys/class/net/eth0/address`
15mkdir /etc/nodes 1> /dev/null 2> /dev/null
16mkdir /etc/nodes/$CURRENT_ID 1> /dev/null 2> /dev/null
17
18#delete old symlink and create new one.
19rm /etc/node 1> /dev/null 2> /dev/null
20ln -s /etc/nodes/$CURRENT_ID /etc/node 1> /dev/null 2> /dev/null
21
22exit 0
Note: See TracBrowser for help on using the repository browser.