Unfortunately, one of my recent situation allowed neither (A) nor (B). So, the first installation had no option but to be done by on-site personnel. But, once a networked system was up and running with a working grub boot manager, I could remotely install a new system on an unused (or a large enough swap) partition and test it out with the "boot once" support of grub. On a Debian based system with grub-2, this involves
- changing the value of "GRUB_DEFAULT" in /etc/default/grub to "saved",
- running "update-grub",
- editing /boot/grub/grub.cfg to make an entry for the new system (if it was not discovered correctly by grub-probe),
- running "grub-reboot" for the entry, and
- rebooting the machine.
Lucky for me, the BMC of the IPMI on the server did have a working watchdog timer. Therefore, I could setup the timer with enough time and start it before rebooting the machine. That way, if the new system worked, I could login to the server through the Internet and stopped the timer. But, if the new system got stuck, the watchdog would do a hard reset on the machine after the time ran out and returned to the original working system... no more waiting for on-site personnel. The actual command I used to setup the timer is bmc-watchdog from freeipmi:
- bmc-watchdog -s -u 4 -p 0 -a 1 -F -P -L -S -O -i 900
- bmc-watchdog -g
- bmc-watchdog -r
- bmc-watchdog -y
No comments:
Post a Comment