/tmp is full

Discussion in 'Install/Configuration' started by pooyan, Mar 14, 2011.

  1. pooyan

    pooyan New Member

    Hello,

    every about 20 mine /tmp to be full
    and in lsws console can't display rial time stats
  2. webizen

    webizen New Member

    do followings and paste output here:
    df -ih /tmp
    df -h /tmp
    df -sh /tmp/*
  3. webizen

    webizen New Member

    maybe lsws swap (/tmp/lshttpd/swap) takes much of /tmp space. If so, change path to swap (Web Console -> Configuration -> Server -> Server Process -> Swap Directory) to a bigger file system
  4. pooyan

    pooyan New Member

    df -ih /tmp
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /usr/tmpDSK 126K 38 125K 1% /tmp


    df -h /tmp
    Filesystem Size Used Avail Use% Mounted on
    /usr/tmpDSK 485M 168M 292M 37% /tmp



    df -sh /tmp/*
    df: invalid option -- s
    Try `df --help' for more information.
  5. pooyan

    pooyan New Member

    I created a new Folder in /

    mkdir lswstmp
    mkdir lshttpd
    mkdir swap

    /lswstmp/lshttpd/swap

    now, past in Web Console -> Configuration -> Server -> Server Process -> Swap Directory ?
  6. webizen

    webizen New Member

    Sorry for the typo. Use this command instead.
    According to the output, your /tmp isn't full.
    Yes, put "/lswstmp/lshttpd/swap" in it.
    Also make sure permission is correct:
    chown nobody.nobody /lswstmp/lshttpd/swap
  7. pooyan

    pooyan New Member

    chmod 750 /lswstmp/lshttpd
    chmod: cannot access `/lswstmp/lshttpd': No such file or directory



    chown nobody.nobody /lswstmp/lshttpd
    chown: cannot access `/lswstmp/lshttpd': No such file or directory



    chmod 700 /lswstmp/lshttpd/swap
    chmod: cannot access `/lswstmp/lshttpd/swap': No such file or directory



    du -sh /tmp/*
    18K /tmp/lshttpd
    0 /tmp/mysql.sock

    I cleared tmp via this command: rm -rf /tmp/*
  8. webizen

    webizen New Member

    I thought you already created "/lswstmp/lshttpd/swap"

    If /tmp full issue comes up again, do this
    Then put "/lswstmp/lshttpd/swap" in Web Console -> Configuration -> Server -> Server Process -> Swap Directory. Save and Apply changes and Graceful restart LSWS.

Share This Page