Thanks very much
Beiträge von gozzynes
-
-
The docker logs can grow quite a lot if not set in an /etc/docker/daemon.json file. Their (standard) path is:
So have a look there and delete files which are too big / too many.
Because I do not want the docker logs to grow indefinitely AND because I don't want docker to reside in a sub-sub-directory, I set as /etc/docker/daemon.json:
Code{ "data-root": "/docker/", "log-driver": "json-file", "log-opts": { "max-size": "10m", "max-file": "3" } }
The log-opts part set the max size of the logs. You should probably not use the data-root part, as you would need to stop the daelmon, move everything from /var/lib/docker to /docker and then start again. But the rest is usable.
40GB is really not much space. I would suggest a bigger VPS or RS. If you bought storage space, you need to mount that space before you can use it: https://www.netcup-wiki.de/wiki/Storagespace_mounten
You will probably still need to move your docker folder (if you have used volumes) to the NFS mount, so my daemon.json including the data-root part might still be useful for you. I would however highly recommend getting a bigger VPS or RS instead.
Thanks. Maybe I think that is what I would do.
-
I have completed the count. However, I am not sure where I can to see the new space as the server home space says currently attached not available. I have rebooted the server and it's not still available.
Thanks again for your helpimage12.PNG
-
delete *~ in both ./journal/* subdirs (see #23).
btw what's this docker app causing such a mess?
This is the life saver. Worked. I have been able to install the nfs-common.
Very much thanks, everyone.
-
maybe your system isn't old enough. go there manually.
or go to cd /var/log and screenshot du -h
-
This is the var/lib folderimage9.PNG
-
I guess you mean swap space? You can test for it with swapon or cat /proc/swaps.
To see which directories occupy most of your storage you can also execute du -h / | sort -h. Depending on your system it could take a while and you should execute it as root, otherwise you will see tons of errors.
I have no idea when it comes to Docker but... if you say your whole storage is gone after installing that one docker container, can't you free up some space in the container itself?
If df -h shows the 879M available, I'm pretty sure you should be able to install the NFS package.
The docker was installed last year December and it has grown to consume almost 34G. Originally after installation then the container size was 1.6GB. Other system applications not installed by me took the remaining space.
I have viewed the swapfile and it has 1024M OB used.
-
Yes I have tried this and it recovered nothing. 0B
-
-
ok, then cd /var/log and rm -r *.gz and rm btmp.1
btmp records failed login attempts.
[btw if you are logged in as root, you don't need to sudo.]
I have deleted all gz and the btmp.1 but the size now is 879M. The update failed to install
-
Yes, the command would indeed remove any stopped container. Why would this be a problem? A docker container should never hold any persistent data itself, but rely on e.g. mounted volumes instead. Apart from that, tools like Docker Compose can be used to describe containers to allow creating and destroying them at any time.
Maybe try using the du command to find files/directories on your system that take a significant amount of disk space. E.g. you could try to remove some logs or cache files in order to free up at least some megabytes.
Thanks. I have removed the files in the logs. Reviewing the cache
Yes, the command would indeed remove any stopped container. Why would this be a problem? A docker container should never hold any persistent data itself, but rely on e.g. mounted volumes instead. Apart from that, tools like Docker Compose can be used to describe containers to allow creating and destroying them at any time.
Maybe try using the du command to find files/directories on your system that take a significant amount of disk space. E.g. you could try to remove some logs or cache files in order to free up at least some megabytes.
-
we are first deleting the rotated and compressed OLD log files (*.gz) in /var/log only, not the sub-dirs of /var/log.
all currently used log files stay there.
I have deleted all the gz files and the size of the var/log did not change after I did reboot the serverimage7.PNG
-
962M
and how much is in du -hs /var/log ?
Is it safe to delete the contents of this /var/log ?
-
and how much is in du -hs /var/log ?
and how much is in du -hs /var/log ?
962M
-
have a look in the tmp dirs: du -sh /tmp /var/tmp.
you can delete the compressed and numbered files in /var/log also.
This is the result
-
Are you using the VNC console?
Yes. The one from netcup for the remote servers.
Thank you
-
I have tried the command but was afraid if it would remove the main container if it has stopped due to the memory full. Please can you advise if it would not delete the main container?
Thank you for your support again.
-
DId you allready tried to free some space occupied by docker?
(the overlay2 directory can grow enormously...)
Yes I did this earlier and I could not see any free spaces to reclaim. image4.PNG
Thanks
-
Hi Guys, I need help installing my storagespace.
The problem is that my 40GB server memory is almost full and can't allow me to install the new storage space. I have installed a docker container in it and the whole memory is exhausted by the docker application. I don't want to remove the docker but I am thinking that I could manage to draw some memory from udev. I tried on GParted and could see 40GB on sda3 but it shows 38GB when i view it on CMD. I have read from some sources that there is a reserved space equal to half of the RAM in the memory which I feel is what is occupying part of the memory.
Please guys help me look through my memory to see where I could drag some space to allow me to mount the storage space
When I try to install the command, I see the error that I do not have enough space in the archives folder
Please I need help creating additional disk space on the var/cache/apt/archives.
I have done apt-get clean, apt-get autoclean and yet no additional space were recovered as there were no files removed from the folder.
I need to get more space in the archives to be able to even run updates now.
Thanks for your help. I really appreciate it.
-
Thanks, everyone.
Successfully update.
I appreciate your help