From 2b41f98346eaae981238c41f8cc7092ef72492d9 Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Wed, 1 Apr 2015 19:45:16 +0200 Subject: [PATCH] reboot much faster in case of storage failure When storage cannot be reached, it does not make sense to reboot as it will try to flush buffers, umount NFS mounts, etc. This will not work and thus cause a long delay. With this change, the box will reboot immediately (like pressing the reset button). --- scripts/vm/hypervisor/kvm/kvmheartbeat.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vm/hypervisor/kvm/kvmheartbeat.sh b/scripts/vm/hypervisor/kvm/kvmheartbeat.sh index 7293b14a531..0c07ffa862e 100755 --- a/scripts/vm/hypervisor/kvm/kvmheartbeat.sh +++ b/scripts/vm/hypervisor/kvm/kvmheartbeat.sh @@ -155,7 +155,7 @@ then exit 0 elif [ "$cflag" == "1" ] then - reboot + echo b > /proc/sysrq-trigger exit $? else write_hbLog