Re: /var/cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 05, 2017 at 10:16:34AM +0200, Patrick Dupre wrote:
> Hello,
> 
> I have directory
> /var/log/journal which seems large:
> 1646960
> 

What type of file system are you using?  ext? or xfs or ??
I ask as ext expands its directories in 4K chunks and the
sizes you give above and below are not 4K multiples.

Are you sure those are not inode numbers (ls -i)?

If they are sizes, the total size of those 40+ directories
is just 61MB, about 0.5% of a small, 10GB file system.
It may not be worth worrying about recovering the space.

On some file systems directories, once expanded, never
contract.  In that case, the "cure" is to create a new
temporary directory (eg. /var.new).  Set the ownership
and permissions of /var.new to match /var (don't forget
SELinux and extended attribute properties).  Move the
data to the new directory (mv /var/* /var.new).  Don't
forget any "dot" files/directories. Rename /var to
/var.old, rename /var.new to /var.

When satisfied, repeat 40 times for the large
subdirectories and remove the empty old directories.

This is best done from a boot off of external media and
mounting the hard disk filesystems under the portable
medium.  Often /a is a directory provided for this.

Jon

> but it is even worst for /var/cache: 14338744
> I gives the largest sub directories:
> 
> 100602	/var/cache/PackageKit/hawkey
> 104278	/var/cache/PackageKit/25/hawkey
> 105988	/var/cache/yum/x86_64/21/fedora/gen
> 112622	/var/cache/yum/x86_64/22/fedora/gen
...
> 6548048	/var/cache/PackageKit/24/metadata/updates
> 7287012	/var/cache/PackageKit/24/metadata
> 7424876	/var/cache/PackageKit/24
> 10930952	/var/cache/PackageKit
> 
> 
> How can I clean this?
> 
> Thank.
> 
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===========================================================================
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
>>> End of included message <<<

-- 
Jon H. LaBadie                  jonfu@xxxxxxxxxx
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux