Visitar URL original
reboot much faster in case of storage failure · enterdevstudio/cloudstack@a92315f · GitHub
Skip to content

Commit a92315f

Browse files
remibergsmaDaan Hoogland
authored andcommitted
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).
1 parent bf3a0d6 commit a92315f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/vm/hypervisor/kvm/kvmheartbeat.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ then
155155
exit 0
156156
elif [ "$cflag" == "1" ]
157157
then
158-
reboot
158+
echo b > /proc/sysrq-trigger
159159
exit $?
160160
else
161161
write_hbLog

0 commit comments

Comments
 (0)