/var is almost full
FedoraForum.org - Fedora Support Forums and Community
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    /var is almost full

    Code:
    4.0K	/var/account
    16K	/var/lost+found
    144K	/var/log/sssd
    4.0K	/var/log/cups
    4.0K	/var/log/gdm
    4.0K	/var/log/cluster
    2.1M	/var/log/audit
    4.0K	/var/log/blivet-gui
    169M	/var/log/journal
    4.0K	/var/log/glusterfs
    4.0K	/var/log/chrony
    8.0K	/var/log/samba
    4.0K	/var/log/httpd
    12K	/var/log/fedy
    4.0K	/var/log/speech-dispatcher
    8.0K	/var/log/libvirt
    4.8M	/var/log/anaconda
    4.0K	/var/log/ppp
    187M	/var/log
    4.0K	/var/nis
    4.0K	/var/www/html
    4.0K	/var/www/cgi-bin
    12K	/var/www
    4.0K	/var/adm
    4.0K	/var/preserve
    44M	/var/cache/cups
    4.0K	/var/cache/gdm
    4.0K	/var/cache/foomatic
    4.0K	/var/cache/abrt-di
    8.0K	/var/cache/libX11
    4.0K	/var/cache/krb5rcache
    152K	/var/cache/ibus
    181M	/var/cache/dnf
    3.9M	/var/cache/man
    4.0K	/var/cache/realmd
    8.0K	/var/cache/httpd
    181M	/var/cache/PackageKit
    61M	/var/cache/fedy
    100K	/var/cache/ldconfig
    144K	/var/cache/libvirt
    469M	/var/cache
    8.0K	/var/db/sudo
    12K	/var/db
    8.0K	/var/tmp/systemd-private-d3e42b24f2b949adaf9010b4e33dec70-fwupd.service-O5l6nV
    88K	/var/tmp/dnf-popcorn-pht8kc82
    8.0K	/var/tmp/systemd-private-d3e42b24f2b949adaf9010b4e33dec70-colord.service-UphBtM
    4.0K	/var/tmp/abrt
    8.0K	/var/tmp/systemd-private-d3e42b24f2b949adaf9010b4e33dec70-rtkit-daemon.service-81IOPM
    8.0K	/var/tmp/systemd-private-d3e42b24f2b949adaf9010b4e33dec70-chronyd.service-E6IOvC
    8.0K	/var/tmp/systemd-private-d3e42b24f2b949adaf9010b4e33dec70-bluetooth.service-Y9chgX
    136K	/var/tmp
    4.0K	/var/opt
    20K	/var/lib/AccountsService
    8.0K	/var/lib/geoclue
    4.0K	/var/lib/hyperv
    38M	/var/lib/systemd
    44K	/var/lib/upower
    28K	/var/lib/iscsi
    976K	/var/lib/gdm
    4.0K	/var/lib/corosync
    52K	/var/lib/NetworkManager
    48K	/var/lib/flatpak
    4.0K	/var/lib/dbus
    4.0K	/var/lib/dav
    4.0K	/var/lib/tpm
    12K	/var/lib/gssproxy
    16K	/var/lib/abrt
    8.0K	/var/lib/ni
    4.0K	/var/lib/fwupdate
    4.0K	/var/lib/openvpn
    8.0K	/var/lib/color
    104K	/var/lib/alternatives
    8.0K	/var/lib/os-prober
    4.0K	/var/lib/fprint
    8.4M	/var/lib/mlocate
    8.0K	/var/lib/chrony
    4.0K	/var/lib/dhclient
    4.0K	/var/lib/udisks2
    199M	/var/lib/clamav
    19M	/var/lib/selinux
    12K	/var/lib/samba
    8.0K	/var/lib/logrotate
    12K	/var/lib/stateless
    32K	/var/lib/authconfig
    4.0K	/var/lib/dnsmasq
    21M	/var/lib/dnf
    28K	/var/lib/polkit-1
    96K	/var/lib/fwupd
    8.0K	/var/lib/bluetooth
    4.0K	/var/lib/hp
    56K	/var/lib/PackageKit
    31M	/var/lib/sss
    4.0K	/var/lib/games
    4.0K	/var/lib/lldpad
    12K	/var/lib/net-snmp
    8.0K	/var/lib/setroubleshoot
    20K	/var/lib/nfs
    4.0K	/var/lib/misc
    56K	/var/lib/colord
    8.0K	/var/lib/xkb
    12K	/var/lib/alsa
    56K	/var/lib/libvirt
    117M	/var/lib/rpm
    8.0K	/var/lib/plymouth
    4.0K	/var/lib/initramfs
    4.0K	/var/lib/machines
    4.0K	/var/lib/sheepdog
    12K	/var/lib/rpm-state
    432M	/var/lib
    4.0K	/var/yp
    4.0K	/var/games
    4.0K	/var/gopher
    4.0K	/var/ftp
    4.0K	/var/empty/sshd
    8.0K	/var/empty
    12K	/var/spool/at
    8.0K	/var/spool/cups
    4.0K	/var/spool/lpd
    138M	/var/spool/abrt
    4.0K	/var/spool/mail
    4.0K	/var/spool/cron
    16K	/var/spool/anacron
    4.0K	/var/spool/abrt-upload
    4.0K	/var/spool/plymouth
    139M	/var/spool
    4.0K	/var/crash
    4.0K	/var/local
    8.0K	/var/kerberos/krb5
    12K	/var/kerberos
    1.2G	/var



    how to clean files on /var ?? i am afraid make it broke , i tried bleachbit, but it didnt help much, before running Bleacbit, files on /var was 77% and after running Bleachbit to clean it, it became 66% ,

  2. #2
    Join Date
    Jun 2005
    Location
    Montreal, Que, Canada
    Posts
    5,541

    Re: /var is almost full

    Clear out (remove /var/log and empty /var/lost+found to name two historical log files
    Leslie in Montreal

    Interesting web sites list
    http://forums.fedoraforum.org/showth...40#post1697840

  3. #3
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    It gonna be safe ? I am afraid that I broke my file ,

  4. #4
    Join Date
    Sep 2013
    Location
    Europe/Berlin
    Posts
    34

    Re: /var is almost full

    Is /var a separate file system in your installation or is it part of the Root FS / ?

    As already replied, you could skim through /var/log and look for log files that you don't require anymore, and truncate them (e.g. redirect of stdin to repective file and subsequent SIGHUP to (daemon) process who is accessing the file.
    Do you have a log rotation in effect?

    You could also clear the cache of the package manager (e.g. "# dnf clean all").

    Also look at queues, what's lingering in /var/spool.

    Just a few places to free file system space that come to mind.

  5. #5
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    /var is separate with Fedora, i did dnf clean all not too much clean on /var. what command should i run now for /var/log???

  6. #6
    Join Date
    Mar 2017
    Location
    USA
    Posts
    85

    Re: /var is almost full

    Go to /var/log/journal, then the subdirectory that contains the actual log files (its name is a variable hexadecimal string, so I can't tell you what it is).

    Run
    sudo rm -f `find . -mtime +30`
    That means delete all files more than 30 days old. You can use another number if you want. Note that the find command is delineated by grave accents, not apostrophes.

    Tim

  7. #7
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,891

    Re: /var is almost full

    This command:
    Code:
    journalctl --vacuum-time=2d
    should reduce the journal to the last two days of journal entries, which would reduce it quite a bit. If not enough, then this command:
    Code:
    journalctl --vacuum-size=50M
    should reduce the journal to 50 MB, but you could enter whatever size you choose.

    But looking at your /var, there are many more large files.

  8. #8
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    Quote Originally Posted by tim8723
    Go to /var/log/journal, then the subdirectory that contains the actual log files (its name is a variable hexadecimal string, so I can't tell you what it is).

    Run That means delete all files more than 30 days old. You can use another number if you want. Note that the find command is delineated by grave accents, not apostrophes.

    Tim
    my terminal become like this ,
    Code:
    bash-4.4$
    i forgot go to directory /var/log/journal/ and then i run like you said, how can i get back to fix my terimanl with my user@localhost ??

  9. #9
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    Quote Originally Posted by nsnbm
    This command:
    Code:
    journalctl --vacuum-time=2d
    should reduce the journal to the last two days of journal entries, which would reduce it quite a bit. If not enough, then this command:
    Code:
    journalctl --vacuum-size=50M
    should reduce the journal to 50 MB, but you could enter whatever size you choose.

    But looking at your /var, there are many more large files.


    those commands work, is that ok if i remove files on/var ??

    my terminal become like this
    Code:
    bash-4.4$
    i did something wrong, how can i get it back to be username@localhost

  10. #10
    Join Date
    Dec 2007
    Location
    Australia
    Posts
    1,891

    Re: /var is almost full

    how can i get it back to be username@localhost
    You could put:
    Code:
    PS1="[\u@\h:\w]\$ "
    into your /home/user/.bash_profile file on a new line, and whilst in your home directory run:
    Code:
    . .bash_profile

  11. #11
    Join Date
    Jul 2013
    Location
    NZ
    Posts
    441

    Re: /var is almost full

    Packagekit can be a problem leaving a lot of junk around in /var/cache. See

    https://bugzilla.redhat.com/show_bug.cgi?id=1306992

  12. #12
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    Quote Originally Posted by nsnbm
    You could put:
    Code:
    PS1="[\u@\h:\w]\$ "
    into your /home/user/.bash_profile file on a new line, and whilst in your home directory run:
    Code:
    . .bash_profile




    Code:
    su - user
    Code:
    cd /home/user
    Code:
    vi .bashrc
    Code:
    if [ -f /etc/bashrc ]; then
        . /etc/bashrc
    fi
    the :wq (save)

    done
    thank you

    but still has problem on /var, LOL

  13. #13
    Join Date
    Feb 2005
    Location
    London, UK
    Posts
    739

    Re: /var is almost full

    Quote Originally Posted by Harmnot
    my terminal become like this ,
    Code:
    bash-4.4$
    i forgot go to directory /var/log/journal/ and then i run like you said, how can i get back to fix my terimanl with my user@localhost ??
    It sounds like you've just wiped any files older than 30 days in your home directory! Unless you have a backup the the best bet is to start a new user to restore the default files - I hope you haven't lost anything important.


    Quote Originally Posted by tim8723
    Go to /var/log/journal, then the subdirectory that contains the actual log files (its name is a variable hexadecimal string, so I can't tell you what it is).

    Run That means delete all files more than 30 days old. You can use another number if you want. Note that the find command is delineated by grave accents, not apostrophes.

    Tim
    Tim, you should really be more Linux newbie friendly, if you'd replaced the "." in the find command with "/var/log/journal" there would be no risk of deleting the wrong files. Side note, you can also use the -delete flag to find instead of piping find & rm although it is old Unix unfriendly.

  14. #14
    Join Date
    Mar 2017
    Location
    USA
    Posts
    85

    Re: /var is almost full

    Tim, you should really be more Linux newbie friendly, if you'd replaced the "." in the find command with "/var/log/journal" there would be no risk of deleting the wrong files. Side note, you can also use the -delete flag to find instead of piping find & rm although it is old Unix unfriendly.
    Sorry. I was afraid he would do something like that.

    Tim

  15. #15
    Join Date
    Mar 2018
    Location
    Indonesia
    Posts
    13

    Re: /var is almost full

    Quote Originally Posted by alphacrucis
    Packagekit can be a problem leaving a lot of junk around in /var/cache. See

    https://bugzilla.redhat.com/show_bug.cgi?id=1306992

    yes i saw that bugs,
    Last edited by Harmnot; 20th March 2018 at 01:47 PM.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Full RootFS / Full HD Partition
    By Azureaus in forum Using Fedora
    Replies: 5
    Last Post: 7th October 2012, 12:41 AM
  2. Replies: 7
    Last Post: 2nd December 2008, 05:13 AM
  3. /dev/full and /dev/zero
    By bee in forum Programming & Packaging
    Replies: 2
    Last Post: 10th September 2008, 01:40 PM
  4. df shows disk full but disk is not full
    By marmil719 in forum Using Fedora
    Replies: 3
    Last Post: 8th November 2005, 02:37 PM
  5. 1 gig of ram gets full in KDE....
    By luna6 in forum Using Fedora
    Replies: 6
    Last Post: 7th December 2004, 10:21 AM

Tags for this Thread

Posting Permissions

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