Solved: /var/cache/pulp getting full 100% ?
In this article, we will check out what to do when we have /var/cache/pulp consuming most of the disk space.
As per redhat, below action is rarely required as pulp used to clean the temporary files automatically after the foreman task is complete.
It automatically increases/cleans up the usage on partition.
However after some time, its better to clean up the pulp cache to increase the sync speed.
We will see today how to clean up the pulp cache.
I. Issue: Pulp Cache taking most of the disk space.
[root@ngelinux001 ]# cd /var/cache/pulp/ [root@ngelinux001 pulp]# ls -ltr total 27512 drwx------. 2 root root 16384 Jun 4 2020 lost+found drwxr-xr-x 2 apache apache 4096 Jan 24 10:00 resource_manager@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 24 10:00 reserved_resource_worker-2@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 24 10:00 reserved_resource_worker-7@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 24 10:00 reserved_resource_worker-0@ngelinux001 -rw-r--r-- 1 root root 28119040 Jan 24 10:24 satbuild_backup_data-24012022.tar drwxr-xr-x 2 apache apache 4096 Jan 26 16:00 reserved_resource_worker-1@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 26 16:10 reserved_resource_worker-5@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 26 16:20 reserved_resource_worker-4@ngelinux001 drwxr-xr-x 2 apache apache 4096 Jan 26 16:30 reserved_resource_worker-6@ngelinux001 drwxr-xr-x 4 apache apache 4096 Jan 28 06:40 reserved_resource_worker-3@ngelinux001 [root@ngelinux001 pulp]# du -sh * 16K lost+found 4.0K reserved_resource_worker-0@ngelinux001 4.0K reserved_resource_worker-1@ngelinux001 4.0K reserved_resource_worker-2@ngelinux001 27.4G reserved_resource_worker-3@ngelinux001 4.0K reserved_resource_worker-4@ngelinux001 4.0K reserved_resource_worker-5@ngelinux001 4.0K reserved_resource_worker-6@ngelinux001 4.0K reserved_resource_worker-7@ngelinux001 4.0K resource_manager@ngelinux001 27M satbuild_backup_data-24012022.tar
II. Solution
[root@ngelinux001 pulp]# pwd /var/cache/pulp [root@ngelinux001 pulp]# df -h /var Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-varlv 34G 33G 0 100% /var [root@ngelinux001 pulp]# service pulp_workers stop Redirecting to /bin/systemctl stop pulp_workers.service [root@ngelinux001 pulp]# [root@ngelinux001 pulp]# rm -rf * [root@ngelinux001 var]# service pulp_workers start Redirecting to /bin/systemctl start pulp_workers.service [root@ngelinux001 var]# df -h /var Filesystem Size Used Avail Use% Mounted on /dev/mapper/rootvg-varlv 34G 15G 19G 45% /var [root@ngelinux001 var]#
Hence we have cleaned up the space on partition.
However in case its not cleaned up, you may need to cleanup the processes using the deleted files in lsof/Open files.
Helped me to solve the issue
Cheers !!