6.4. 删除配额
本节介绍如何使用 setfattr 命令和 ceph.quota 扩展属性从目录中移除配额。
先决条件
- 对 Ceph 客户端节点的根级别访问权限。
-
确保已安装了
attr软件包。
流程
移除 CephFS 配额:
使用字节限制配额:
语法
setfattr -n ceph.quota.max_bytes -v 0 DIRECTORY示例
[root@client ~]# setfattr -n ceph.quota.max_bytes -v 0 /mnt/cephfs/使用 file-limit 配额:
语法
setfattr -n ceph.quota.max_files -v 0 DIRECTORY示例
[root@client ~]# setfattr -n ceph.quota.max_files -v 0 /mnt/cephfs/