Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-09-2017, 06:58 PM   #1
LQ Newbie
Registered: Jul 2017
Posts: 19

Rep: Reputation: Disabled
Compressing/Removing files causing MORE storage usage???


I'm facing a really bizarre issue, tough not for the first time. I have a /var filesystem that's at 91% usage (6GB mounted). I noticed that after compressing 500mb of space from /var/log/ the percentage didn't drop at all. I then proceeded to remove 186MB of space from /var/tmp, which dropped the FS down to 86% usage. I then moved a a 136MB file from /var/account to /, which caused the FS to go back up to 88% usage.

Any ideas what's causing these crazy readings? /var doesn't have any other FS's under it. Also, I noticed that running "du -sm*|sort -nr|head" in /var/log produced some strange error about too many flags/arguments being used for the sudo shell, but had no issues running it with csh. Also, no other directory gave the same error in /var.

Last edited by Robbot; 08-09-2017 at 07:00 PM.
Old 08-09-2017, 11:54 PM   #2
LQ Guru
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,916
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Are you using a file manager that "deletes" by moving to a Trash folder?
Old 08-10-2017, 12:13 AM   #3
LQ Guru
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
I'm a bit surprised /var/tmp had so much in it, and that it even affected then total, because it's tempfs, which is in memory, not on disk. When you compressed the files, did you delete the source files? Is /var on a separate partition from root? If it isn't, moving things from /var / doesn't have any effect on disk usage.

You shouldn't need sudo for du. You might try the du flags individually instead of combined with a single dash.

Last edited by AwesomeMachine; 08-10-2017 at 12:16 AM.
Old 08-10-2017, 02:45 AM   #4
Registered: Jun 2017
Location: Spain
Distribution: RedHat 6.9 /Centos 8
Posts: 42

Rep: Reputation: Disabled
actually, I think,you move the files on the same filesystem.

Try to move to another mount point.

Could you paste a df -h output?
Old 08-10-2017, 11:03 PM   #5
LQ Newbie
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
I'm using the CLI. Yes, / and /var have their own mounts. I used gzip on the compressed files. Maybe it has something to do with that error I'm getting only from /var/log? I ran du as root as I was getting permission denied on several of the folders/files from /var/log. I can't really post the output as this is in a secured virtual environment. I forgot to mention also that compressing some other files caused the usage to increase.

Last edited by Robbot; 08-10-2017 at 11:08 PM.
Old 08-11-2017, 12:12 AM   #6
Senior Member
Registered: Apr 2010
Posts: 2,174

Rep: Reputation: 449Reputation: 449Reputation: 449Reputation: 449Reputation: 449
check out this link it might help, maybe temp files not getting cleared.

Text below from above link:
On Debian-like systems: on boot (the rules are defined in /etc/default/rcS).
On RedHat-like systems: by age (RHEL6 it was /etc/cron.daily/tmpwatch ;
RHEL7 and RedHat-like with systemd it's configured in /usr/lib/tmpfiles.d/tmp.conf, called by systemd-tmpfiles-clean.service).
On Gentoo /etc/conf.d/bootmisc.

Last edited by JJJCR; 08-11-2017 at 12:18 AM. Reason: edit
Old 08-11-2017, 11:39 PM   #7
LQ Newbie
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you. I'm working from Suse 11 I believe. I double checked that error from /var/log and it says

"du: unable to execute with specified paramters on sudo bash"

which I could not find anything online for

Last edited by Robbot; 08-11-2017 at 11:42 PM.
Old 08-14-2017, 05:30 PM   #8
LQ Newbie
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
I'm going to mark this as solved. I checked on it after the weekend, and it's suddenly down to 70%. Nothing else was removed and the server wasn't bounced. No idea what did it :-/


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the best tool for compressing and un-compressing files? dwhswebhosting Linux - Server 8 03-24-2017 03:30 PM
[SOLVED] compressing files and adding files to a folder darkmouse Linux - Newbie 1 11-04-2012 06:55 PM
Compressing VOB files eplanamente Linux - Software 6 01-04-2006 11:15 AM
compressing files master Linux - Newbie 4 03-18-2004 11:48 AM
Compressing files GtkUser Linux - Software 1 04-02-2003 06:21 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:27 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration