Thanks a lot, but I still don’t understand when unused files are supposed to get removed in the stratum1.
If on the stratum 0 a publish operation triggers a GC and the deletion of some files on the backend, e.g:
[sgaravat@lxsgaravat S3]$ s3cmd -c s3cfg-backbone-cvmfs.cfg du -H s3://cvmfs/testgarbage.infn.it/
4G 553 objects s3://cvmfs/testgarbage.infn.it/
[root@cvmfs-s0-s3cloudveneto ~]# cvmfs_server transaction testgarbage.infn.it
[root@cvmfs-s0-s3cloudveneto ~]# cvmfs_server publish testgarbage.infn.it
Using auto tag 'generic-2024-10-08T08:26:29Z'
Processing changes...
Waiting for upload of files before committing...
Committing file catalogs...
Wait for all uploads to finish
Exporting repository manifest
Statistics stored at: /var/spool/cvmfs/testgarbage.infn.it/stats.db
Tagging testgarbage.infn.it
Flushing file system buffers
Signing new manifest
Running automatic garbage collection
--> marking unreferenced objects [Tue, 08 Oct 2024 08:26:35 GMT]
--> sweeping unreferenced objects [Tue, 08 Oct 2024 08:26:35 GMT]
- 33% 1 / 3 unreferenced revisions removed [Tue, 08 Oct 2024 08:26:37 GMT]
- 67% 2 / 3 unreferenced revisions removed [Tue, 08 Oct 2024 08:26:37 GMT]
- 100% 3 / 3 unreferenced revisions removed [Tue, 08 Oct 2024 08:26:37 GMT]
--> done garbage collecting [Tue, 08 Oct 2024 08:26:38 GMT]
Statistics stored at: /var/spool/cvmfs/testgarbage.infn.it/stats.db
Remounting newly created repository revision
[root@cvmfs-s0-s3cloudveneto ~]#
[sgaravat@lxsgaravat S3]$ s3cmd -c s3cfg-backbone-cvmfs.cfg du -H s3://cvmfs/testgarbage.infn.it/
24K 21 objects s3://cvmfs/testgarbage.infn.it/
so 4 GB of data removed from the backend used by the stratum0,
on the stratum1 should I expect that the unused files get removed immediately after having done a:
cvmfs_server snapshot testgarbage.infn.it
cvmfs_server gc -af
?
This is not happening in my setup …
server.conf in the stratum1 is the one created by the add-replica command, i.e.:
cvmfs_server add-replica -z https://rgw.cloud.infn.it:443/cvmfs/testgarbage.infn.it /etc/cvmfs/keys/infn.it/common.infn.it.pub
[root@s1-cvmfs-cnaf cvmfs]# cat /etc/cvmfs/repositories.d/testgarbage.infn.it/server.conf
# Created by cvmfs_server.
CVMFS_CREATOR_VERSION=143
CVMFS_REPOSITORY_NAME=testgarbage.infn.it
CVMFS_REPOSITORY_TYPE=stratum1
CVMFS_USER=root
CVMFS_SPOOL_DIR=/var/spool/cvmfs/testgarbage.infn.it
CVMFS_STRATUM0=https://rgw.cloud.infn.it:443/cvmfs/testgarbage.infn.it
CVMFS_STRATUM1=http://localhost/cvmfs/testgarbage.infn.it
CVMFS_UPSTREAM_STORAGE=local,/srv/cvmfs/testgarbage.infn.it/data/txn,/srv/cvmfs/testgarbage.infn.it
CVMFS_SNAPSHOT_GROUP=
[root@s1-cvmfs-cnaf cvmfs]#
Thanks a lot: your help is really appreciated
Edit:
I retried after a while, and the “cvmfs_server gc -af” issued on the stratum1 deleted the unused files