
CephFS의 할당량 제한에 대해 xattrs를 설정했습니다.
$ setfattr -n ceph.quota.max_bytes -v 1100000000 /mnt/cephfs/data/
이 속성의 가치를 얻을 수 있습니다.
$ getfattr -n ceph.quota.max_bytes /mnt/cephfs/data/
getfattr: Removing leading '/' from absolute path names
# file: mnt/cephfs/data/
ceph.quota.max_bytes="1100000000"
그런데 할당량을 제거하려고 했더니
$ setfattr -x ceph.quota.max_bytes /mnt/cephfs/data/
setfattr: /mnt/cephfs/data/: No such attribute
이 xattr을 어떻게 삭제할 수 있나요?
답변1
할당량을 취소하는 방법은 사용하는 것이 아니라 setfattr -x
값을 0으로 설정하는 것입니다.
setfattr -n ceph.quota.max_bytes -v 0 /mnt/cephfs/data/
값을 0으로 설정하면 속성이 더 이상 존재하지 않습니다.
getfattr /mnt/cephfs/data/ -n ceph.quota.max_bytes
/mnt/cephfs/data/: ceph.quota.max_bytes: No such attribute
확인하다문서더 많은 정보를 알고 싶습니다.