Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Space on LVM partition is not freed up after deleting files #145

Closed
vukitoso opened this issue Mar 27, 2024 · 2 comments
Closed

Space on LVM partition is not freed up after deleting files #145

vukitoso opened this issue Mar 27, 2024 · 2 comments

Comments

@vukitoso
Copy link

Hello.
There is a partition /dev/mapper/ubuntu--vg-ubuntu--lv
The disk is 100% full.
I deleted 15 GB of files - logs from modSecurity for Apache2, but df -h shows that the disk is 100% full.

As a temporary solution, we added more space to the virtual machine, but the vacated space has not yet become available somewhere. It’s as if the information about the available space was cached.

How to "get" free space?
Thx.

@zkabelac
Copy link
Contributor

Hello - your question is likely 'filesystem' related - so lvm2 has nothing to do with this case.

However typical things to look at could be - your 'root' running software is using 'disk space' to it's full potentiall - while the 'non-root' user has to live with 5% (or whatever number picked by filesystem) reserve - so root can still write using some 'reserved' space, while user cannot write anything anymore - this space can be pretty large for large filesystems - so even removing 15G could be still not enough.

Other thing to check is - you have some daemon constantly filling your disk space - so unless you kill it - you can't win - usually 'reboot' is great help here....

There can be tons of other reason where the lost space is in your filesystem - and there are lots of tools to detect i.e. largest files....

Anyway - closing as this is not an lvm2 issue...

@vukitoso
Copy link
Author

thank you, yes you are right, no problems were found with LVM and the file system.
Space is taken up by other files/directories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants