Great notes here about freeing space on ODF:
https://www.linkedin.com/pulse/delete-staleorphan-images-red-hat-openshift-data-foundation-azraq/?trk=public_profile_article_view
Periodic trim:
https://access.redhat.com/solutions/6821131
oc rsh -n openshift-storage $(oc get pods -n openshift-storage -o name -l app=rook-ceph-tools)
How to check the storage used by images in /var/lib/containers/storage/:
https://access.redhat.com/solutions/5822921
oc debug node/r730ocp3.localdomain
chroot /host
sh-4.4# podman system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 467 0 238.3GB 238.3GB (100%)
Containers 0 0 0B 0B (0%)
Local Volumes 0 0 0B 0B (0%)
sh-4.4# podman system df -v
Images space usage:
REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> b1955c3530ad 4 months 652.5MB 0B 652.5MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> 42a1983da6c2 3 months 349.9MB 0B 349.9MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> 96f18e5d5703 3 months 424.3MB 0B 424.3MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> e3536b432413 4 months 417.2MB 0B 417.2MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> dda1d03007e8 4 months 435.6MB 0B 435.6MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> 1269bb21cd5c 3 months 843.2MB 0B 843.2MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> 2b024af9d2b1 3 months 426.6MB 0B 426.6MB 0
quay.io/openshift-release-dev/ocp-v4.0-art-dev <none> 020335fd71e2 3 months 434.6MB 0B 434.6MB 0
...
sh-4.4# podman system prune -a
WARNING! This command removes:
- all stopped containers
- all networks not used by at least one container
- all images without at least one container associated with them
- all build cache
Are you sure you want to continue? [y/N] y
Deleted Images
b1955c3530ad66d6506aaccee1d3e94151418c344c4bc1ca6c2c0d8576284e51
42a1983da6c2f12bd72435be6122b695bd3c6911fb2dafec99e1281639a76486
96f18e5d57035696dd2bcdc5ec25c764d39ff73e056a5dcff0569cf582537417
e3536b432413756f9408c519dc8f7eb9ea2169874a0a1ee2638b6ab75be6240c
...
Total reclaimed space: 236.7GB