Здравствуйте. Проблема такая. Сегодня сервер (школьный альт 5-й) взял да и выключился. В логах читаю:
May 25 10:29:37 server dhcpd: DHCPOFFER on 192.168.0.15 to 00:1f:d0:8e:ea:87 via eth1
May 25 10:29:37 server dhcpd: uid lease 192.168.0.61 for client 00:1f:d0:8e:ea:87 is duplicate on 192.168.0.0/26
May 25 10:29:37 server dhcpd: DHCPREQUEST for 192.168.0.15 (192.168.0.1) from 00:1f:d0:8e:ea:87 via eth1
May 25 10:29:37 server dhcpd: DHCPACK on 192.168.0.15 to 00:1f:d0:8e:ea:87 via eth1
May 25 10:30:01 server crond[27947]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
May 25 10:30:01 server crond[27948]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
May 25 10:35:01 server crond[27974]: (root) CMD (/usr/share/vzctl/scripts/vpsreboot)
May 25 10:35:01 server crond[27975]: (root) CMD (/usr/share/vzctl/scripts/vpsnetclean)
May 25 10:41:44 server syslogd 1.4.1: restart.
May 25 10:41:44 server syslogd: syslogd startup succeeded
May 25 10:41:44 server kernel: klogd 1.4.1, log source = /proc/kmsg started.
May 25 10:41:44 server kernel: [ 0.000000] Linux version 2.6.27-ovz-smp-alt9 (builder@apiary.orion.altlinux.org) (gcc version 4.3.2 20081105 (ALT Linux 4.3.2-alt13) (GCC) ) #1 SMP Tue Aug 18 09:28:44 UTC 2009
May 25 10:41:44 server kernel: [ 0.000000] PAT WC disabled due to known CPU erratum.
То есть перезагрузка инициирована кроном. Обыскиваю cron.d, cron.daily, .month, .weekly. В файле /etc/cron.d/vz читаю, что это, мол, :
# Cron jobs needed for OpenVZ
# -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING -- WARNING --
# ------------------ EDIT THE CORRECT FILE -------------------------
# This file is copied to /etc/cron.d/vz from
# /etc/vz/cron/vz when the vz service is started
# via its init.d script and the file
# /etc/cron.d/vz is cleared when the
# service is stopped. Therefore any edits made directly to
# /etc/cron.d/vz will be lost anytime the vz service
# restarts.
#
# To make changes, edit the master copy /etc/vz/cron/vz
# (or add your own /etc/vz/cron/vz* files)
# and run /etc/init.d/vz update-cron.
#
# The reason this is done this way is because the OpenVZ cron job
# should only be invoked if the vz service is enabled and not
# just as a consequence of installing the vzctl as it was the case
# previously. The file /etc/cron.d/vz
# cannot simply be linked to the master copy in
# /etc/vz/cron/ because for security reasons cron
# will not process crontab files that are links or writeable by
# anybody else but root, thus the file must be copied
# into /etc/cron.d/ with the right ownership and permissions.
# Clean containers' network rules (arp,route,iptables)
*/5 * * * * root /usr/share/vzctl/scripts/vpsnetclean
# Start containers marked as rebooted.
*/5 * * * * root /usr/share/vzctl/scripts/vpsreboot
Никаких других заданий, способных привести к перезагрузке, не нашел. Вопросы:
- что за OpenVZ, зачем ей перезагружать комп?
- можно ли убрать перезагрузку в /etc/vz/cron/vz без последствий для системы? Виртуальные ОС я не использую.