[SOLVED] S3 local cache

edurbs

Member
Aug 31, 2021
3
0
21
45
I'm using a local disk with xfs file system as S3 storage, and I configured on it a sync to push to a remote S3 server. But it appears to store all the data, and not only using it as cache. I want only to send a copy from my local disk to the remote S3. What I'm doing wrong?
Thanks
 
I solved it by enabling quota in xfs and creating a project for it.

Bash:
echo "100:/mnt/pve/hdd/s3" >> /etc/projects
echo "s3:100" >> /etc/projid
xfs_quota -x -c 'project -s s3' /mnt/pve/hdd
mount -o remount,pquota /mnt/pve/hdd
xfs_quota -x -c 'limit -p bsoft=2t bhard=3t s3' /mnt/pve/hdd