LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   FreeBSD reboots automatically (https://www.linuxquestions.org/questions/%2Absd-17/freebsd-reboots-automatically-174458/)

Mikessu 04-25-2004 02:30 PM

FreeBSD crashes very often
 
I'm bit new to FreeBSD, I have used Linux and now I have FreeBSD powered server. I have set up firewall and all other web services to it that I need and everything works perfectly.... almost. FreeBSD reboots suddenly about every 3 day. I don't understand why it is doing that. I don't even actually know where should I start looking the problem. I have checked log files but I have seen nothing special in them. At boot it says that / has not been dismounted properly and my database has gone upside down because these reboots. I don't want to change back to Linux because everything else works so perfectly.

My FreeBSD version is 4.9
Here is my Sysinfo.

Dead Parrot 04-25-2004 03:45 PM

I had once FreeBSD 4.9 (or was it 4.8) rebooting spontaneously. Still don't know what the trouble was, except I noticed that the partition for root filesystem was getting pretty crowded. I re-installed and gave the root filesystem twice the amount of space than I did in the first installation. After that the reboots stopped. Dunno what the problem was and what fixed it -- the re-installation or making the root partition bigger.

Mikessu 04-25-2004 04:26 PM

Thanks for you're answer Dead Parrot. My root file system doesn't look very crowded and I don't want to re-install whole system. I'd still like to hear some more opinions what could cause this and if I don't find solution maybe I have to try re-install (or maybe try some of new technology releases).

Could this be hardware issue?

Stack 04-26-2004 12:30 AM

Post your dmesg. Does it crash while you are running xwindows? What programs are you running at the time of the crash. Are you using nvidia-drivers with nvidia-agp? etc...

chort 04-26-2004 02:44 AM

Looks like your 3COM card is having some errors. Is that an (E)ISA card? If you don't need that second card, I'd remove it. If you do need 2 NICs, I'd consider replacing the ep(4) card with a PCI NIC, fxp(4) (Intel Pro/100) are generally considered to be very good cards.

Do your logs say anything about a panic? It sounds like you might be experiencing kernel panics.

Mikessu 04-26-2004 06:52 AM

Quote:

Originally posted by Stack
Post your dmesg. Does it crash while you are running xwindows? What programs are you running at the time of the crash. Are you using nvidia-drivers with nvidia-agp? etc...
I'm running in non-graphical mode. I'm running only some services like Apache and MySQL for my own minimal use.

Here's my dmesg:
Quote:

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 4.9-RELEASE #0: Wed Apr 14 22:46:16 EEST 2004
mikko@tollo.darktech.org:/usr/src/sys/compile/ACME
Timecounter "i8254" frequency 1193182 Hz
CPU: AMD Duron(tm) processor (750.03-MHz 686-class CPU)
Origin = "AuthenticAMD" Id = 0x631 Stepping = 1
Features=0x183f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR>
AMD Features=0xc0440000<RSVD,AMIE,DSP,3DNow!>
real memory = 268369920 (262080K bytes)
avail memory = 255516672 (249528K bytes)
Preloaded elf kernel "kernel" at 0xc0544000.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 9 entries at 0xc00fdee0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <VIA 82C8363 (Apollo KT133A) host to PCI bridge> mem 0xe0000000-0xe3ffffff at device 0.0 on pci0
pcib1: <VIA 8363 (Apollo KT133) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA100 controller> port 0xd000-0xd00f at device 7.1 on pci0
atapci0: Correcting VIA config for southbridge data corruption bug
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xd400-0xd41f irq 10 at device 7.2 on pci0
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xd800-0xd81f irq 10 at device 7.3 on pci0
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <unknown card> (vendor=0x1106, dev=0x3057) at 7.4
rl0: <RealTek 8139 10/100BaseTX> port 0xdc00-0xdcff mem 0xe6000000-0xe60000ff irq 11 at device 13.0 on pci0
rl0: Ethernet address: 00:30:bd:1b:6e:06
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pci0: <ATI Mach64-GV graphics accelerator> at 15.0 irq 11
orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
pmtimer0 on isa0
ep0: <3Com 3C509-TPO EtherLink III> at port 0x300-0x30f irq 3 on isa0
ep0: Ethernet address 00:60:97:63:78:6d
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250
sio1: configured irq 3 not in bitmap of probed irqs 0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode
ppi0: <Parallel I/O> on ppbus0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
IP packet filtering initialized, divert enabled, rule-based forwarding enabled, default to deny, unlimited logging
ad0: 28629MB <ST330621A> [58168/16/63] at ata0-master UDMA100
acd0: CDROM <SAMSUNG CD-ROM SC-152A> at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
IP Filter: v3.4.31 initialized. Default = pass all, Logging = enabled
That 3COM looks a bit strange but it has worked with Linux but it has always given errors. I can try to change another card to that computer and see if it helps. I have also downloaded FreeBSD 5.1. Log files don't seem to contain anything related to crash.

Mikessu 04-26-2004 02:55 PM

I installed FreeBSD 5.1 and changed network card to another for testing... I can't yet say whether it reboots itself or but but there seems to be a lot of errors in sysinfo now: sysinfo...

chort 04-26-2004 09:41 PM

Whoa, that is a *lot* of errors. I should have mentioned that Realtek-based cards are generally not recommended (poor quality), but still there shouldn't be *that* many... did you properly configure each card on a separate subnet?

Mikessu 04-27-2004 02:52 AM

ifconfig gives me this:

Code:

rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::230:bdff:fe1b:7100%rl0 prefixlen 64 scopeid 0x1
        ether 00:30:bd:1b:71:00
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
rl1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::230:bdff:fe1b:6e06%rl1 prefixlen 64 scopeid 0x2
        ether 00:30:bd:1b:6e:06
        media: Ethernet autoselect (100baseTX)
        status: active
lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
        inet 213.216.243.242 --> 10.10.9.4 netmask 0xffffffff
        Opened by PID 216


chort 04-27-2004 03:40 AM

Hmm, no inet4 IP on the second card then? Are you using it for anything? If not, shut it down (or remove it?).

I take it the box hasn't crashed yet, right?

Mikessu 04-27-2004 04:08 AM

It is for pppoe connection.

And no, the box hasn't crashed yet but last time it was up for 3 days and then crashed.

EDIT:
I changed old card back and see if it works but it seems that there is already one error. I just don't understand what is going on.

TechnoGecko 04-29-2004 02:12 AM

I had similiar such issues with various network cards ( Specifically a Realtek8139 and a 3Com ). I bought a Intel Etherexpress PRo 10/100.

While they are pricy, they work. I've had that card in one of my servers for four years now, never had a single problem with it and maintained uptimes over a year.

I'd dish out the cash for a good card, and I know FreeBSD works excelent with the Intel card.

Jason


All times are GMT -5. The time now is 09:45 PM.