Disk Space Analysis  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Disk Space Analysis

Post by fitkoh »

STOP - Please read the next lines carefully!

1) Please fill out the post template below completely!
2) The members of this forum provide their valuable time to help! In return, please provide as much information as possible and be specific in your error description. Posts that show little initiative will probably not get good responses!

You may remove this top portion of the post template.
However, do not remove the following post template under any circumstances.
---------------------------------------------------------------------------


I'm not completely sure but am reasonably confident this is a keyhelp issue


Server OS: Ubuntu 20.04


Server virtualization technology:
KVM


KeyHelp version + build number:
23.0 Build 2921


What is the wrong result:
Disk Analysis shows full disk when disk is not full


What is the expected result: Disk Analysis will show correct disk utilization
Disk Analysis shows more disk in use than is actually used

I have not attempted to reproduce this bug. If I cannot resolve it I will attempt to restore from external backup on a fresh install.


Additional information
No major changes to the server recently other than adding domains


Unfortunately I deleted all the logs to get services up and running. Was getting disk full errors from mysql.


From the admin user dashboard, it shows disk usage nearly full:
Disk space

Free: 1.16 GiB Used: 21.23 GiB Total: 23.60 GiB

94.82%
From terminal using ncdu in / directory:
Total disk usage: 5.0 GiB Apparent size: 5.0 GiB Items: 347010
Also from solusVM panel showing plenty of space:
4.99 GB of 25 GB Used / 20.01 GB Free
User avatar
Jolinar
Community Moderator
Posts: 3560
Joined: Sat 30. Jan 2016, 07:11
Location: Weimar (Thüringen)
Contact:

Re: Disk Space Analysis

Post by Jolinar »

Have you checked the last run of the task "Calculate disk space" (there you can find it: Settings >> Maintenance Intervals)?
Wenn jemand inkompetent ist, dann kann er nicht wissen, daß er inkompetent ist. (David Dunning)

Data Collector für Community Support
___
Ich verwende zwei verschiedene Schriftfarben in meinen Beiträgen /
I use two different font colors in my posts:
  • In dieser Farbe schreibe ich als Moderator und gebe moderative Hinweise oder begründe moderative Eingriffe /
    In this color, I write as a moderator and provide moderative guidance or justify moderative interventions
  • In dieser Farbe schreibe ich als Community Mitglied und teile meine private Meinung und persönlichen Ansichten mit /
    In this color, I write as a community member and share my personal opinions and views
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Re: Disk Space Analysis

Post by fitkoh »

I ran the "Calculate Disk Space" before I posted this thread. No errors. The disk calculator logs appear to be working properly. Here is copy and paste from the last run:
[16-Feb-2023 20:46:01] INFO | Loading client accounts...
[16-Feb-2023 20:46:01] INFO | Collecting data for client "lucky"
[16-Feb-2023 20:46:02] INFO | Here comes the report...

Client name : lucky

Diskspace : 767.05 MiB / unlimited - 0.00%
- Webspace : 728.22 MiB
- Emails : 1.38 MiB
- Databases : 37.45 MiB

Files : 33,577 / unlimited - 0.00%

Client has been limited : No

Email accounts : 4
- lucky@19e.happyforever.com : 388.00 KiB / 1.00 GiB - 0.04%
- luckycharms@trail.town : 380.00 KiB / 1.00 GiB - 0.04%
- luckycharms@roanmountain.town : 584.00 KiB / 1.00 GiB - 0.06%
- master@machinewriting.ink : 64.00 KiB / 1.00 GiB - 0.01%

Databases : 5
- lucky_db1 : 13.69 MiB
- lucky_db3 : 7.09 MiB
- lucky_db4 : 11.92 MiB
- lucky_db2 : 4.06 MiB
- lucky_db5 : 704.00 KiB

====
User avatar
Alexander
Keyweb AG
Posts: 3810
Joined: Wed 20. Jan 2016, 02:23

Re: Disk Space Analysis

Post by Alexander »

What is the output of

Code: Select all

df --block-size=1 --output=source,fstype,size,used,avail,itotal,iused,iavail,target
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Disk Space Analysis

Post by BasHeijermans »

Looks to me you are using different mounts for /home and /, that would explain why it's full and not full.
Did you install Ubuntu into just 1 single partition? I think not else it would show the same.

My guess is your / partition is 20GB but your /home is just 5GB in size and thus fills very quickly.

Code: Select all

df -h
command output will tell us a lot more.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Re: Disk Space Analysis

Post by fitkoh »

I did a default install through solusVM. I assume that a default install would put everything in /, but maybe it has been customized on the host side.

Here is the output of df -h

Filesystem Size Used Avail Use% Mounted on
udev 463M 0 463M 0% /dev
tmpfs 99M 12M 87M 12% /run
/dev/vda1 24G 23G 0 100% /
tmpfs 491M 0 491M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
tmpfs 99M 0 99M 0% /run/user/0

I don't see anything mounted /home. Perhaps I'm not reading it correctly?
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Disk Space Analysis

Post by BasHeijermans »

Huh? This is wrong:
/dev/vda1 24G 23G 0 100% /
Your filesystem shows 100% full. That isn't right.

Does it run in Read-Only-Mode for some reason?

Please give the output of the command

Code: Select all

mount
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Disk Space Analysis

Post by Florian »

Hello,

the disk space is simply completely occpied. Maybe because of backups or huge log files.
Your filesystem shows 100% full. That isn't right.
What should this be not right? It often happens
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Re: Disk Space Analysis

Post by fitkoh »

It may be a bug in solusVM or something wrong with the host.

If the disk were full it should be showing as full from the host node.

However I cannot say with any certainty that this is an issue with keyhelp. I don't know what's happening. I'll contact support at my hosting provider and see if I can report any news.

(Edit: I missed this post earlier)

Here is the result of df --block-size=1 --output=source,fstype,size,used,avail,itotal,iused,iavail,target

Code: Select all

Filesystem     Type       1B-blocks        Used     Avail  Inodes  IUsed   IFree Mounted on
udev           devtmpfs   484511744           0 484511744  118289    410  117879 /dev
tmpfs          tmpfs      102891520    12251136  90640384  125596    639  124957 /run
/dev/vda1      ext4     25342132224 24037634048         0 1523712 138915 1384797 /
tmpfs          tmpfs      514441216           0 514441216  125596      1  125595 /dev/shm
tmpfs          tmpfs        5242880           0   5242880  125596      3  125593 /run/lock
tmpfs          tmpfs      514441216           0 514441216  125596     18  125578 /sys/fs/cgroup
tmpfs          tmpfs      102887424           0 102887424  125596     18  125578 /run/user/0
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Disk Space Analysis

Post by 24unix »

Try

Code: Select all

du / | sort -n
as root or via sudo 🙈 to see whats eating your your space.
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Re: Disk Space Analysis

Post by fitkoh »

This was a huge list so I won't cut and paste it. What looked very interesting was the first 4 lines:

Code: Select all

du: cannot access '/proc/914537/task/914537/fd/4': No such file or directory
du: cannot access '/proc/914537/task/914537/fdinfo/4': No such file or directory
du: cannot access '/proc/914537/fd/3': No such file or directory
du: cannot access '/proc/914537/fdinfo/3': No such file or directory
Everything else looked normal. The last few lines for the largest directories:

Code: Select all

798932	/opt
944384	/home
951820	/var/lib
1087608	/lib
1193092	/usr
1196344	/var
5388812	/
fitkoh
Posts: 6
Joined: Mon 23. Jan 2023, 20:55
Contact:

Re: Disk Space Analysis  [SOLVED]

Post by fitkoh »

Contacting my hosting provider fixed the problem. The disk analysis now reads correctly.

Unfortunately my host would not disclose the solution or explain what caused the problem. My guess is a disk failure somewhere.

Thank you all for your help. Keyhelp is a great product with a great team behind it, and was definitely not the cause of this problem.

Please feel free to mark this issue solved.
Post Reply