Page 1 of 1
Disk Space Analysis
Posted: Thu 16. Feb 2023, 20:15
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
Re: Disk Space Analysis
Posted: Thu 16. Feb 2023, 20:33
by Jolinar
Have you checked the last run of the task "Calculate disk space" (there you can find it: Settings >> Maintenance Intervals)?
Re: Disk Space Analysis
Posted: Thu 16. Feb 2023, 21:54
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
====
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 11:57
by Alexander
What is the output of
Code: Select all
df --block-size=1 --output=source,fstype,size,used,avail,itotal,iused,iavail,target
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 14:56
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.
command output will tell us a lot more.
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 15:50
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?
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 18:51
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
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 19:01
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
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 19:18
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
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 19:40
by 24unix
Try
as root or via sudo

to see whats eating your your space.
Re: Disk Space Analysis
Posted: Fri 17. Feb 2023, 20:05
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 /
Re: Disk Space Analysis [SOLVED]
Posted: Fri 17. Feb 2023, 21:42
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.