LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-23-2024, 07:56 AM   #1
kanyakumarirock
LQ Newbie
 
Registered: Jan 2024
Posts: 2

Rep: Reputation: 0
Different used disk space with du and quota.


Dear members

From my /work directory by going into it, when I type
Quote:
du -cbsh
the total disk storage occupancy is 145 GB.


However, from my general folder, when I type
Quote:
quota -s
to get the folder occupancy, it shows around 1000G.

Filesystem space quota limit grace files quota limit grace
/dev/mapper/vgdata-work
1040G* 500G 800G 25days 159k 10000k 50000k
/dev/mapper/vgdata-home
37061M 51200M 100G 196k 1000k 5000k

It is really surprising and I am unable to solve the mystery. My actual file storage occupancy is 144G while the search for quota shows the files are occupying 1000G of storage space. How can I ascertaim the hidden files or the reasons behind this discrepancy?

Please suggest how to rectify this issue?


thanks

Last edited by kanyakumarirock; 01-23-2024 at 11:16 AM. Reason: Want to add the example image
 
Old 01-23-2024, 02:32 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
OP's off-site thread hasn't seemed to help, hence, his tries here. I don't know anything about using quotas. I wouldn't know the optimal location to ask either. @michaelk the locked Server thread or General IMO would have been better than moderator limiting only to Debian.
 
Old 01-23-2024, 03:29 PM   #3
Petri Kaukasoina
Senior Member
 
Registered: Mar 2007
Posts: 1,788

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
Quote:
my /work filesystem had reached the limit of 1000G of memory in use. I then started to delete a number of large files and got the number down to about 800G but over time, it kept increasing again at a rate of about a gigabyte per minute so now it has reached 1000G again.
One possibility:

If a process has opened a file to write and you have deleted the file, it only gets removed from the directory but it still exists until the process closes the file. For example a large growing log file keeps growing but you can't see it using du because there is no directory entry.

Try this to see the deleted files still open:
Code:
sudo ls -l /proc/*/fd|grep '(deleted)'|grep -v -e /memfd: -e /dev/pts -e /dev/shm
 
  


Reply



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
NFS client continues to issue “Disk quota exceeded” errors after quota is raised IdleLayabout Linux - Server 5 11-10-2022 06:49 AM
[SOLVED] Disk quota exceeded ... but no quota are defined. bcostacurta Linux - Server 4 03-24-2015 12:36 PM
Disk quota on Centos 5.6, quota not working? shfyang Red Hat 1 11-09-2013 06:28 PM
Disk Space Used is Less Than Size Still Available Disk Space is Zero devUnix Linux - Server 10 10-04-2013 08:56 AM
How to assign disk quota(disk space limited) to user and group. hocheetiong Linux - Newbie 1 08-24-2007 04:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:02 AM.

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