Last change
on this file 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
|
Rev | Line | |
---|
[c5c522c] | 1 | #!/bin/bash |
---|
| 2 | #When booted from the installer cd in drbd mode, then we still need to install grub into the MBR! |
---|
| 3 | if [ -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] | 9 | fi |
---|
| 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. |
---|
| 14 | CURRENT_ID=`cat /sys/class/net/eth0/address` |
---|
| 15 | mkdir /etc/nodes 1> /dev/null 2> /dev/null |
---|
| 16 | mkdir /etc/nodes/$CURRENT_ID 1> /dev/null 2> /dev/null |
---|
| 17 | |
---|
| 18 | #delete old symlink and create new one. |
---|
| 19 | rm /etc/node 1> /dev/null 2> /dev/null |
---|
| 20 | ln -s /etc/nodes/$CURRENT_ID /etc/node 1> /dev/null 2> /dev/null |
---|
| 21 | |
---|
| 22 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.