Casey Bralla on 16 Oct 2018 17:10:25 -0700
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
[PLUG] Resolution: Disk is Full. How to Move /var?
|
- From: Casey Bralla <MailList@NerdWorld.org>
- To: plug@lists.phillylinux.org
- Subject: [PLUG] Resolution: Disk is Full. How to Move /var?
- Date: Tue, 16 Oct 2018 20:10:10 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sendinblue.com; q=dns/txt; s=mail; bh=CEVdgFkTP9m0TsXxkwdX448TxgmMdLOpVnfOR4Ek8dw=; h=from:to:subject:date:mime-version:content-type:in-reply-to:references; b=vSR9U0wnVm0ag6evE2bplUG4fW/tlH0hJbVPX/243kTvSTnVe32Wg+JEdG3eHrnu35cYMDvWF/77 DoIWh0D4kVoIf371CZ+kmoHuN6+GnH+oDYf5hWJPKi7Rwc6mhMO1XUnGXNfRZq618C8+OOg1mggp gS1xeB1j7dvKIwuFbkU=
- Feedback-id: shr_185.41.28.5:trans:2031218:Sendinblue
- Origin-messageid: <53405c09-8910-fa3a-e38d-986f43a8ca67@NerdWorld.org>
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1
Thanks to all for the great thoughts and suggestions. I finally took
Michael's and Fred's advice and found the disk-hogging culprit. It was
Thunderbird's local copy of my __HUGE__ IMAP eMail collection. I did a
little digging and found that Thunderbird keeps a local copy of all the
eMails so that they can be accessed off line. Since I'm always on-line,
I reduced this local copy down to something reasonable (30 days) and
magically freed up 12 GBytes!
Also, thanks to Keith for the suggestion to move /var from a Live CD and
to Fred for his explanation of why the original softlink did not work.
On 10/15/2018 02:26 PM, JP Vossen wrote:
> On 10/14/2018 06:31 PM, Rachel plays Linux wrote:
>> Doh, yes I meant du -sh rather than ls -sh
>
> +a bunch for this. Find the root of the problem first, they worry
> about it. It may just be some log rotate failed (as mentioned
> elsewhere).
>
> ----
> ### Here are the top 5 biggest dirs in var:
> $ sudo du -sc /var/* | sort -rn | head -n5
> 15201296 total
> 8479696 /var/lib
> 6066288 /var/cache
> 603984 /var/log
> 37424 /var/www
> ----
>
> Adjust -n5 as needed.
>
> But `du` has to scan the file system every run, so for exploring
> install and use `ncdu` which is (from the .deb):
> "Description-en: ncurses disk usage viewer
> "Ncdu is a ncurses-based du viewer. It provides a fast and easy-to-use
> interface through famous du utility. It allows one to browse through
> the directories and show percentages of disk usage with ncurses library."
>
> That scans once then gives us an ncurses (console GUI) for exploring
> (and deleting):
> ----
> $ sudo ncdu /var
> ncdu 1.12 ~ Use the arrow keys to navigate, press ? for help
> --- /var
> -------------------------------------------------------------------------------------------
> 8.1 GiB [##########] /lib
> 5.8 GiB [####### ] /cache
> 589.8 MiB [ ] /log
> 36.5 MiB [ ] /www
> 11.3 MiB [ ] /backups
> ...
> ----
>
> Later,
> JP
> -- -------------------------------------------------------------------
> JP Vossen, CISSP | http://www.jpsdomain.org/ | http://bashcookbook.com/
> ___________________________________________________________________________
>
> Philadelphia Linux Users Group --
> http://www.phillylinux.org
> Announcements -
> http://lists.phillylinux.org/mailman/listinfo/plug-announce
> General Discussion --
> http://lists.phillylinux.org/mailman/listinfo/plug
Attachment:
pEpkey.asc
Description: application/pgp-keys
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug