Re: cause of reboot

2013-10-01 Thread Michael Schuh
> Please help I need to find cause of reboot..
>
>
>
i would recommend the reconfigure of syslog too.

attention on "all.log" and/or "console.log"
there are examples with explanations

not all console messages flow into messages. ;-)

memory test,
disk tests
cpu temperature, i had exactly the same error caused by an
defective cpu-cooler. cpu got hot during the nightly periodc scripts and
silently rebooted.

watch the time of the reboot and compare it to the cron/periodic scripts.
determine whats running at the time of the reboot.

hth
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: cause of reboot

2013-09-30 Thread Patrick Lamaiziere
Le Mon, 30 Sep 2013 17:24:18 +0300,
Emre Çamalan  a écrit :

> Hi,
> my server reboots every night and same o'clock last 10 days. But this
> machine's uptime was 96days.
> 
> Suddenly reboot this machine and now this continue every night again
> and again.
> 
> I didn't find any reason and I didn't change anything else.
> 
> I looked "last" command, 
> reboot ~ ~   AM 03.15  ~

The last time It happened (one month ago) to me it was the hard disk
(periodic scripts read a large part of the disk).

If the disk is smart capable try a full test with smartctl
(sysutils/smartmontools)

HTH, regards
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Re: cause of reboot

2013-09-30 Thread Steve O'Hara-Smith
On Mon, 30 Sep 2013 17:24:18 +0300
Emre Çamalan  wrote:

> Hi,
> my server reboots every night and same o'clock last 10 days. But this
> machine's uptime was 96days.
> 
> Suddenly reboot this machine and now this continue every night again and
> again.
> 
> I didn't find any reason and I didn't change anything else.
> 
> I looked "last" command, 
> reboot ~ ~   AM 03.15  ~

That's likely something in the daily run going wrong, try disabling
items in there one by one (by editing /etc/periodic.conf - which probably
doesn't yet exist so create it and look in /etc/defaults/periodic.conf for
details) until you get through a night without a reboot. Then the next step
is to figure out why whatever is crashing the system does so, but first
let's find out what.

-- 
Steve O'Hara-Smith 
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: cause of reboot

2013-09-30 Thread Julian Elischer

On 9/30/13 11:08 PM, Jason Hellenthal wrote:

Also  . . . grep -ri  . . .



On Sep 30, 2013, at 11:06, Jason Hellenthal  wrote:

And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan  wrote:

Yes I checked also it , such as ;
"grep -i 'reboot' /root/scripts/* -R"
"grep -i 'halt' /root/scripts/* -R"
"grep -i 'shutdown' /root/scripts/* -R"


30.09.2013, 17:33, "Jason Hellenthal" :

Did you check for the command reboot in all of the periodic scripts and cron 
jobs as well as the command shutdown ?

On Sep 30, 2013, at 10:24, Emre Çamalan  wrote:

Hi,
my server reboots every night and same o'clock last 10 days. But this machine's 
uptime was 96days.

Suddenly reboot this machine and now this continue every night again and again.

I didn't find any reason and I didn't change anything else.

I looked "last" command,
reboot ~ ~   AM 03.15  ~

I checked "dmesg -a" , it has only generic things no other things.

I checked "/var/log/messages"

I wrote script and checked swapinfo , cpu and memory but all of them was normal 
before reboot.

I checked crontab and scripts.

I checked "crashinfo"  but no dump from kernel.

I didn't find any useful info from this commands.

I checked "praudit /var/audir/20130930..CrashRecovery"
and I didn't understand very well from this file but I think this means my 
machine crash and reboot isn't it??

And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

Please help I need to find cause of reboot..
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


Firstly, does this machine have the kernel debugger installed?
if not then a kernel page fault will look like a reboot.

if you know when this is going to occur, then I suggest that you
set up some logging of every new process run, to a second machine, or 
possibly

you might just ssh int the machine and leave 'top' running
when it reboots you shoud get a snapshot of what's going on.

you could just rename 'reboot' and see if it still happens.
If not, then replace reboot (and friends) with a script that reports 
who called it.




___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: cause of reboot

2013-09-30 Thread Jason Hellenthal
Also  . . . grep -ri  . . . 



On Sep 30, 2013, at 11:06, Jason Hellenthal  wrote:

And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan  wrote:

Yes I checked also it , such as ;
"grep -i 'reboot' /root/scripts/* -R"
"grep -i 'halt' /root/scripts/* -R"
"grep -i 'shutdown' /root/scripts/* -R"


30.09.2013, 17:33, "Jason Hellenthal" :
> Did you check for the command reboot in all of the periodic scripts and cron 
> jobs as well as the command shutdown ?
> 
> On Sep 30, 2013, at 10:24, Emre Çamalan  wrote:
> 
> Hi,
> my server reboots every night and same o'clock last 10 days. But this 
> machine's uptime was 96days.
> 
> Suddenly reboot this machine and now this continue every night again and 
> again.
> 
> I didn't find any reason and I didn't change anything else.
> 
> I looked "last" command,
> reboot ~ ~   AM 03.15  ~
> 
> I checked "dmesg -a" , it has only generic things no other things.
> 
> I checked "/var/log/messages"
> 
> I wrote script and checked swapinfo , cpu and memory but all of them was 
> normal before reboot.
> 
> I checked crontab and scripts.
> 
> I checked "crashinfo"  but no dump from kernel.
> 
> I didn't find any useful info from this commands.
> 
> I checked "praudit /var/audir/20130930..CrashRecovery"
> and I didn't understand very well from this file but I think this means my 
> machine crash and reboot isn't it??
> 
> And How can I understand what is the reason of rebooting my FreeBSD8.3 server.
> 
> Please help I need to find cause of reboot..
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


smime.p7s
Description: S/MIME cryptographic signature


Re: cause of reboot

2013-09-30 Thread Jason Hellenthal
And /etc/ ?
And /var/cron ?



On Sep 30, 2013, at 11:00, Emre Çamalan  wrote:

Yes I checked also it , such as ;
"grep -i 'reboot' /root/scripts/* -R"
"grep -i 'halt' /root/scripts/* -R"
"grep -i 'shutdown' /root/scripts/* -R"


30.09.2013, 17:33, "Jason Hellenthal" :
> Did you check for the command reboot in all of the periodic scripts and cron 
> jobs as well as the command shutdown ?
> 
> On Sep 30, 2013, at 10:24, Emre Çamalan  wrote:
> 
> Hi,
> my server reboots every night and same o'clock last 10 days. But this 
> machine's uptime was 96days.
> 
> Suddenly reboot this machine and now this continue every night again and 
> again.
> 
> I didn't find any reason and I didn't change anything else.
> 
> I looked "last" command,
> reboot ~ ~   AM 03.15  ~
> 
> I checked "dmesg -a" , it has only generic things no other things.
> 
> I checked "/var/log/messages"
> 
> I wrote script and checked swapinfo , cpu and memory but all of them was 
> normal before reboot.
> 
> I checked crontab and scripts.
> 
> I checked "crashinfo"  but no dump from kernel.
> 
> I didn't find any useful info from this commands.
> 
> I checked "praudit /var/audir/20130930..CrashRecovery"
> and I didn't understand very well from this file but I think this means my 
> machine crash and reboot isn't it??
> 
> And How can I understand what is the reason of rebooting my FreeBSD8.3 server.
> 
> Please help I need to find cause of reboot..
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


smime.p7s
Description: S/MIME cryptographic signature


Re: cause of reboot

2013-09-30 Thread Emre Çamalan
Yes I checked also it , such as ;
"grep -i 'reboot' /root/scripts/* -R"
"grep -i 'halt' /root/scripts/* -R"
"grep -i 'shutdown' /root/scripts/* -R"


30.09.2013, 17:33, "Jason Hellenthal" :
> Did you check for the command reboot in all of the periodic scripts and cron 
> jobs as well as the command shutdown ?
>
> On Sep 30, 2013, at 10:24, Emre Çamalan  wrote:
>
> Hi,
> my server reboots every night and same o'clock last 10 days. But this 
> machine's uptime was 96days.
>
> Suddenly reboot this machine and now this continue every night again and 
> again.
>
> I didn't find any reason and I didn't change anything else.
>
> I looked "last" command,
> reboot ~ ~   AM 03.15  ~
>
> I checked "dmesg -a" , it has only generic things no other things.
>
> I checked "/var/log/messages"
>
> I wrote script and checked swapinfo , cpu and memory but all of them was 
> normal before reboot.
>
> I checked crontab and scripts.
>
> I checked "crashinfo"  but no dump from kernel.
>
> I didn't find any useful info from this commands.
>
> I checked "praudit /var/audir/20130930..CrashRecovery"
> and I didn't understand very well from this file but I think this means my 
> machine crash and reboot isn't it??
>
> And How can I understand what is the reason of rebooting my FreeBSD8.3 server.
>
> Please help I need to find cause of reboot..
> ___
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Re: cause of reboot

2013-09-30 Thread Jason Hellenthal
Did you check for the command reboot in all of the periodic scripts and cron 
jobs as well as the command shutdown ?



On Sep 30, 2013, at 10:24, Emre Çamalan  wrote:

Hi,
my server reboots every night and same o'clock last 10 days. But this machine's 
uptime was 96days.

Suddenly reboot this machine and now this continue every night again and again.

I didn't find any reason and I didn't change anything else.

I looked "last" command, 
reboot ~ ~   AM 03.15  ~


I checked "dmesg -a" , it has only generic things no other things.

I checked "/var/log/messages"

I wrote script and checked swapinfo , cpu and memory but all of them was normal 
before reboot.

I checked crontab and scripts.

I checked "crashinfo"  but no dump from kernel.

I didn't find any useful info from this commands.

I checked "praudit /var/audir/20130930..CrashRecovery"
and I didn't understand very well from this file but I think this means my 
machine crash and reboot isn't it??

And How can I understand what is the reason of rebooting my FreeBSD8.3 server.

Please help I need to find cause of reboot..
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"


smime.p7s
Description: S/MIME cryptographic signature