Debian Jessie - deleted files take up space after reboot
Hello guys,
I am a Linux newbie with a Debian jessie openmediavault-based server used as a NAS. last night I was uploading a large set of files (~20G) via nextcloud web interface. Only after it failed I realized that upload_tmp_dir was not properly set. In result I ended up having root partition full. Without reading much, I deleted temporary files hoping it would bring my space back. Only then I found out that those files are still open by php and mysql. I tried killing processes which write to those files, truncating files themselves as well as rebooting to no avail. The space is still eaten up to 98% ( I only managed to reclaim a bit over 400MB through apt cleaning. As soon as I try to kill the process, a new one seems to be starting (at least that's my impression) which uses deleted files. I've spent last 4 hours trying to resolve this issue without luck as nothing seems to be working. Could you please advise if there's anything I can do to get my disk space back? Thanks a lot in advance! Lsof +L1 output below PHP Code:
|
reboot, or restart all the services in question.
if that doesn't help, you really need to tell us where those files are, and how you tried deleting them. sorry if i didn't fully understand; it seems like you got yourself into an unholy mess by taking a wrong turn early on. |
Quote:
I reclaimed additional 600MB through decreasing reserved space with tune2fs -m, but over 16GB is still missing. To sum up, I have no idea where those 16GBs are, ncdu shows disk usage of around 3.5GB on root partition. df -Th Code:
Filesystem Type Size Used Avail Use% Mounted on Code:
Filesystem Type Inodes IUsed IFree IUse% Mounted on |
Search for the files that you uploaded by the date or time stamp.
Code:
ls -t / Hopefully that should sort it out. |
why did you not use tmpfs for /tmp ?
I use baobab to find where my space is used up. |
Perhaps by coincidence some other big files were created?
Not even /var is separate. Find recently created big files in the / filesystem Code:
find / -xdev -size +10000 -mtime -30 |
Thanks for all your help guys, much appreciated!
It turns out I'm an idiot. My server got rebooted (most likely due to a short power outage), and in result encrypted drive used for backups was not automatically remounted. It happened on the day the backup was scheduled, so all the files were copied to an empty mountpoint (which I didn't scan with ndcu thinking it is of no purpose), I removed the failed backup files and remounted the drive which resolved the issue. I don't know why I didn't notice that the drive is unmounted in the first place... Thanks again and sorry for being a pain ;) |
glad you got it solved.
please mark it so. |
All times are GMT -5. The time now is 07:14 AM. |