Bezüglich absichern usw habe ich gestern noch ein bischen was gefunden... Und zwar wird von einem anderen RPI-Colocation Anbieter geraten einen Hardware-watchdog einzurichten, wodurch der RaspberryPI neu gestartet wird falls es Probleme mit der Hardware geben würde wie zB das er sich aufhängt / einfriert o.ä.
Dabei bin ich halt auf 3 weitere Anbieter gestossen, die aber auch alle Geld fürs Hosten haben wollen..
Jedenfalls hat der UK Anbieter RetroSnub einmal eine Beschreibung zu diesem hardware watchdog und ausserdem gewisse Konfiguration/Einstellungen die man vorher über ein Script ausführen solle
Hardware Watchdog:
Spoiler anzeigen
Install watchdog
Uncomment the following line in /etc/watchdog.conf
Edit /etc/modules
And add the following:
Run the following command to activate the module and service:
I hope this helps improve the overall reliability of my Raspberry Pi computer.
Script:
Spoiler anzeigen
#!/bin/bash
#
# Script to configure a Raspberry Pi for unattended operation.
#
# Malcolm Scott -- http://www.retrosnub.co.uk/
#
# Changes:
# 6 Sep 2013 - change HDMI mode to 1024x768 DMT
# (http://www.raspberrypi.org/phpBB3/viewtopic.php?t=5851)
# 14 Aug 2013 - initial version
#
if [ ! -e /etc/debian_version ]
then
echo "Sorry, I only know how to configure Debian systems." >&2
echo "Please read this script and to determine the equivalent steps for your distribution." >&2
exit 1
fi
echo "Loading watchdog and hardware random number generator drivers"
if ! grep -q bcm2708.rng /etc/modules
then
(
echo
echo "# Hardware random number generator (retrosnub-raspi-setup)"
echo "bcm2708_rng"
) >> /etc/modules
fi
lines=$(</var/log/kern.log wc -l)
modprobe bcm2708_rng
modprobe bcm2708_wdog
tail -n +$(($lines+1)) /var/log/kern.log
echo
echo "Installing watchdog and rng-tools"
EXTRA_DEBCONF=$(mktemp -t)
cat >$EXTRA_DEBCONF <<EOF
Name: watchdog/module
Template: watchdog/module
Value: bcm2708_wdog
Owners: watchdog
Name: watchdog/restart
Template: watchdog/restart
Value: false
Owners: watchdog
Name: watchdog/run
Template: watchdog/run
Value: true
Owners: watchdog
EOF
DEBIAN_FRONTEND=noninteractive DEBCONF_DB_FALLBACK="File{$EXTRA_DEBCONF}" apt-get install -y watchdog rng-tools
rm -f $EXTRA_DEBCONF
echo
echo "Configuring watchdog"
WATCHDOG_NEWCONFIG=$(mktemp -t)
(
echo "# Configured by retrosnub-raspi-setup"
echo
echo "# Use hardware watchdog (so the system reboots if the watchdog daemon fails)"
echo "watchdog-device = /dev/watchdog"
echo "watchdog-timeout = 10"
echo "interval = 3"
echo
if dpkg --get-selections rsyslog | grep -q '\binstall$'
then
echo "# Reboot if syslog stops changing"
echo "# (syslog daemon must be configured to print regular markers)"
echo "file = /var/log/syslog"
echo "change = 1300"
echo
(
echo "# Configured by retrosnub-raspi-setup for use with watchdog"
echo '$ModLoad immark # provides --MARK-- message capability'
echo '$MarkMessagePeriod 600'
) > /etc/rsyslog.d/watchdog
service rsyslog force-reload >&2
else
echo "WARNING: I would configure the watchdog to monitor the system log" >&2
echo "for activity, but since you're not using rsyslog I don't know how." >&2
fi
echo "# End of retrosnub-raspi-setup configuration; add your own configuration BELOW this line"
lineno=$(grep -n "^# End of retrosnub-raspi-setup configuration" /etc/watchdog.conf|head -n1|sed 's/:.*//')
if [ "$lineno" ]
then
tail -n +$(($lineno+1)) /etc/watchdog.conf
else
echo
echo "# Configuration from before retrosnub-raspi-setup installation follows"
echo
cat /etc/watchdog.conf
fi
) > $WATCHDOG_NEWCONFIG
mv /etc/watchdog.conf /etc/watchdog.conf.bak
mv $WATCHDOG_NEWCONFIG /etc/watchdog.conf
chmod a+r /etc/watchdog.conf
service watchdog stop &>/dev/null
service watchdog start >&2
HDMI_REBOOT=""
if ! grep -q "#.*HDMI.*retrosnub-raspi-config" /boot/config.txt
then
echo
echo "Configuring HDMI"
sed -i 's/^\(hdmi\|disable_overscan\)/#&/' /boot/config.txt
(
echo
echo "# Force DMT HDMI output at 1024x748 (retrosnub-raspi-config)"
echo "# (in the datacentre, there will be no HDMI device connected"
echo "# at boot but it may be useful for debugging)"
echo "hdmi_force_hotplug=1"
echo "hdmi_group=2"
echo "hdmi_mode=0x10"
echo "hdmi_drive=2"
echo "disable_overscan=1"
) >> /boot/config.txt
HDMI_REBOOT=1
fi
echo
echo "Assuming you saw no errors, everything is done."
if [ "$HDMI_REBOOT" ]
then
echo "If possible, please reboot to adjust HDMI output."
fi
Alles anzeigen
Weitere Hinweise kann man auf folgender Seite nachlesen: https://www.datenreise.de/raspberry-pi-s…7-dauerbetrieb/
Und nun zu den Anbietern die ich noch gefunden habe - werde die Liste in dem anderen Thread bei gelegenheit erweitern:
* FSdata (Sweden): https://fsdata.se/server/raspberry-pi-colocation/
* Micron21 (Australia): http://www.micron21.com/raspberrypi-colocation.php
* Retrosnub (England): http://www.retrosnub.co.uk/raspberrycolo