Running rsnapshot via cron reboots the machine
David N
davidn04 at gmail.com
Mon Dec 15 00:24:02 PST 2008
Hi,
I have a machine
AMD Sepron LE-1150
ASUS M2A-VM
1GB RAM ECC
2x SATA 300GB
in a RAID 1 (gmirror).
7.0-RELEASE-p2 AMD64 generic kernel
it was doing backups via bacula to an external disk
USB 2.0 SATA disk, and it was working well. (GLabel) /dev/ufs/BackupDisk
I changed to rsnapshot recently, with the External HDD in glabel +
gjournal (/dev/da0s1.journal -> /dev/ufs/BackupDisk) and it will
reboot the machine roughly 30 minutes after the rsnapshot starts via
CRON.
If i run rsnapshot without CRON, eg. via the command line it works
fine. (I'm compiling the new kernel p6 whilst doing an rsnapshot via
the command line)
I have changed the time it does the rsnapshot, from 3AM (reboots at
3:30-3:40AM roughly) to 4:30AM (reboots at 5AM roughly). So its
nothing running on the system doing it. If i remove the rsnapshot from
the CRON, the computer stays on and doesn't reboot.
Its not the power supply, and the computer is on a UPS and the UPS log
hasn't reported any blackouts. (There are 2 other servers that doesn't
turn off so its not a blackout).
I left gstat and top running
L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name
0 0 0 0 0.0 0 0 0.0 0.0| acd0
0 125 125 4164 5.5 0 0 0.0 29.9| ad4
0 0 0 0 0.0 0 0 0.0 0.0| ad4s1
0 0 0 0 0.0 0 0 0.0 0.0| ad4s2
0 125 125 4164 5.6 0 0 0.0 30.5| ad4s3
34 142 71 9079 9.4 71 8697 212.0 99.3| da0
34 142 71 9079 9.6 71 8697 213.5 99.3| da0s1
0 0 0 0 0.0 0 0 0.0 0.0| da0s1c
7 135 71 9079 9.7 64 8184 33.0 85.1| da0s1.journal
0 125 125 4164 9.2 0 0 0.0 39.8| ad6
7 135 71 9079 9.7 64 8184 36.2 91.9| ufs/BackupDisk
0 0 0 0 0.0 0 0 0.0 0.0| ad6s1
0 0 0 0 0.0 0 0 0.0 0.0| ad6s2
0 125 125 4164 9.3 0 0 0.0 40.4| ad6s3
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s1
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s2
0 125 125 8328 9.9 0 0 0.0 43.9| mirror/gm0s3
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s1a
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s1b
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s1c
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s1d
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s2c
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s2d
0 0 0 0 0.0 0 0 0.0 0.0| mirror/gm0s3c
0 125 125 8328 10.2 0 0 0.0 45.2| mirror/gm0s3d
last pid: 18829; load averages: 0.29, 0.45, 0.50
up 1+01:31:23 05:01:50
64 processes: 1 running, 63 sleeping
CPU states: 16.5% user, 0.0% nice, 25.2% system, 3.0% interrupt, 55.3% idle
Mem: 69M Active, 436M Inact, 395M Wired, 44M Cache, 108M Buf, 3944K Free
Swap: 2048M Total, 308K Used, 2048M Free
PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND
18634 root 1 -4 0 15224K 2244K getblk 0:45 9.47% rsync
18633 root 1 98 0 18296K 4576K select 0:45 4.69% rsync
18375 root 1 8 0 20556K 8412K wait 7:20 0.00% perl
4447 root 1 -64 0 7656K 2036K RUN 1:21 0.00% top
4321 root 1 8 0 11784K 2008K nanslp 0:45 0.00% gstat
18627 root 1 96 0 15224K 2596K select 0:36 0.00% rsync
4219 evxadmin 1 96 0 32936K 3220K select 0:07 0.00% sshd
3800 evxadmin 1 96 0 32936K 3164K select 0:06 0.00% sshd
18629 root 1 96 0 32868K 3964K select 0:04 0.00% sshd
18628 root 1 96 0 23764K 7664K select 0:04 0.00% ssh
851 root 1 96 0 12476K 1832K select 0:04 0.00% nmbd
1788 root 1 96 0 10576K 2812K select 0:02 0.00% sendmail
1147 root 1 96 0 24456K 2404K select 0:01 0.00% nmbd
1346 root 1 96 0 22224K 2504K select 0:01 0.00% nmbd
3957 evxadmin 1 96 0 32936K 3220K select 0:01 0.00% sshd
1800 root 1 8 0 5736K 1032K nanslp 0:01 0.00% cron
1754 root 1 8 0 5736K 980K nanslp 0:00 0.00% cron
1557 root 1 8 0 5736K 980K nanslp 0:00 0.00% cron
1387 root 1 8 0 5736K 980K nanslp 0:00 0.00% cron
1192 root 1 8 0 5736K 980K nanslp 0:00 0.00% cron
4646 root 1 96 0 36968K 4892K select 0:00 0.00% smbd
775 root 1 96 0 4684K 1064K select 0:00 0.00% syslogd
Nothing else seems to be running.
Its driving me insane! any help would be appreciated. smart says the
HDD are fine.
Regards
David N
More information about the freebsd-stable
mailing list