2015-12-28 23 views
0

全部:cephfs配额不能工作

我正在使用配额限制的cephfs。

  • 使用头孢熔丝安装

    ceph-fuse fuse.ceph-fuse 105G 5.6G 100G 6% /ceph

  • 创建配额限制

    setfattr -n ceph.quota.max_bytes -v 100000000 /ceph/rc

  • 显示配额限制

[[email protected] ~]# getfattr -n ceph.quota.max_bytes /ceph/rc getfattr: Removing leading '/' from absolute path names # file: ceph/rc ceph.quota.max_bytes="100000000"

  • 尝试创建largger文件 [[email protected] rc]# dd if=/dev/zero of=1G.img bs=1G count=1 1+0 records in 1+0 records out 1073741824 bytes (1.1 GB) copied, 31.0612 s, 34.6 MB/s [[email protected] rc]# du -sh * 1.0G 1G.img

Doen't它cephfs配额工作???

任何人都可以给我同样的sugestion?

回答

0

我有完全相同的问题,与ceph-fuse安装在使用--client-quota选项解决。

ceph-fuse -m ip address:6789 --client-quota /XXX