Results 1 to 5 of 5

Thread: UNIX kernel screwed up

  1. #1

    UNIX kernel screwed up

    hey guys,
    I rebuilt my kernel after some patching on my FreeBSD 4.7 box and am now getting really wierd stuff like
    Jan 8 10:34:05 UNIXbox sshd[2076]: getting vmemoryuse resource limit: Invalid argument

    this netstat display is wierd too. I've got port 22 (SSH) open but look at this:

    Active Internet connections (including servers)
    Proto Recv-Q Send-Q Local Address Foreign Address (state)
    udp4 0 0 *.1052 *.*
    udp4 0 0 *.518 *.*
    udp4 0 0 *.514 *.*
    udp6 0 0 *.514 *.*
    Active UNIX domain sockets
    Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr
    c3574e00 #0 -1009725952 0 0 c3e39fc0 0 c3e39f40
    c3574e00 #0 -1009725952 0 0 c3e39fc0 0 c3e39f80
    c3574e00 #0 -1009725952 -1064547008 0 c3e39fc0 0 0
    c3574e00 #0 512 0 c3e530c0 0 c3e39e00 0 £À`Ä<ÀpêÃ
    UNIXbox#

    suggestions?

  2. #2
    Senior Member
    Join Date
    Sep 2001
    Posts
    1,027
    Did you just patch or you updated to -stable with cvs, in which case you might want to try rebuilding userland also...

    Ammo
    Credit travels up, blame travels down -- The Boss

  3. #3
    Originally posted here by ammo
    Did you just patch or you updated to -stable with cvs, in which case you might want to try rebuilding userland also...

    Ammo
    I just applied some patches

  4. #4
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Here's what I do:

    cvsup mysupfile
    cd /usr/src
    make buildkernel KERNCONF=MYKERNEL
    make buildworld
    make installkernel KERNCONF=MYKERNEL
    make installworld
    mergemaster

    With cvs you can track:

    RELENG_4 (Which will turn 4.7-stable, 4.8-prerelease, 4.8-stable etc.)
    RELENG_4_7 (which will track 4.7-stable including sec. fixes)
    RELENG_4_6 (which will track 4.6-stable incl. sec. fixes)

    For more tags see the FreeBSD handbook CVS Tags section.

    Anyway. Always do the whole thing (except when you're just recompiling your kernel because you tweaked it, after a comlete build).

    A good thing(tm) to do if you run into trouble is to compile the GENERIC kernel and give that a try.

    Everything that's not build into the kernel will be dynamically loaded anyway.

  5. #5
    Senior Member
    Join Date
    Aug 2002
    Posts
    508
    hi,
    I rebuilt my kernel after some patching on my FreeBSD 4.7 box
    You need to reboot to single user mode to test your new kernel you just built..when reboot the system at the boot prompt enter -s flag.
    At the shell prompt you should then run:
    #fsck -p
    #mount -u /
    #mount -a -t ufs
    #swapon -a

    This command will checks the filesystems,remounts / read/write, mounts all the other UFS file systems referenced in etc/fstab and then turns swapping on.
    Not an image or image does not exist!
    Not an image or image does not exist!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •