gcc484perl-5.22
|
Last change
on this file since 6782bd4 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
|
| Line | |
|---|
| 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 |
|---|
| 5 | splashinfo "Redundancy installation finshed, please reboot when syncronication is completed." |
|---|
| 6 | #reboot right away to make things easier for the administrator |
|---|
| 7 | #reboot |
|---|
| 8 | #NO: this creates splitbrains if other node isnt rebooted quickly enough |
|---|
| 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.