Results 1 to 2 of 2

Thread: Problems using tmpfs for logs

  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked
    0 times in 0 posts

    Problems using tmpfs for logs

    What is the story with /var/log being stored on tmpfs? It only seems to take a few infinitely recursive chmod() events (on a filesystem containing backups of parts of a posix filesytem with dangling/unresolvable symlinks) resulting in enough logs to fill up the tmpfs partition.

    Anyway, this condition seems to cause some strangeness in the web front-end, like refusal to authenticate, etc.

    Why not put httpd logs on disk - say in /raid0/sys/httpd/? Failing that, what about running the apache log through a rotating logger that's set to not hold more than 2mb or so of logs?

    -Peter

  2. #2
    Registered User
    Join Date
    Aug 2007
    Posts
    9
    Thanks
    0
    Thanked
    0 times in 0 posts

    Re: Problems using tmpfs for logs

    Additional failure modes in this case:

    1) Can't mount nfs - all mounts rejected
    2) can't change, add, or delete nfs permissions
    3) Can't do much of anything else
    4) Admin user login doesn't seem to expire
    5) Most web pages load, but almost none do anything.

    This seems wrong. Tmpfs is not made for this sort of use. It's for small, transient files, and its memory could be better used for buffer cache on a NAS box. I notice that /tmpfs/var/logs symlinks the 3 httpd logs to /dev/null. Why is there a similar but different set of logs under /tmpfs/var/log that contain files that can fill up over time?

    -Peter

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problems with new machine
    By kasavien in forum SCAN.care@HEXUS
    Replies: 5
    Last Post: 31-01-2006, 01:48 PM
  2. Having a few new rig problems, please help!
    By sagramore in forum PC Hardware and Components
    Replies: 33
    Last Post: 03-08-2004, 06:34 PM
  3. Epox 8RDA+ Problems
    By M@dOc in forum PC Hardware and Components
    Replies: 20
    Last Post: 17-07-2004, 03:55 AM
  4. Troubleshooting - Software & Driver problems
    By Steve in forum Help! Quick Relief From Tech Headaches
    Replies: 0
    Last Post: 09-07-2004, 06:30 PM

Posting Permissions

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