Project

General

Profile

Actions

Bug #17939

closed

non-local cephfs quota changes not visible until some IO is done

Added by Dan van der Ster over 7 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
jewel, kraken
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
ceph-fuse
Labels (FS):
quotas
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

If we change the ceph.quota.max_bytes attribute on a cephfs mount, that quota is not applied until cephfs is remounted.

This affects Manila: where users can extend their shares, which changes the ceph.quota.max_bytes attr on a remote machine. But currently the users need to remount to see that new quota.

Reproducer:

# cat /etc/fstab  | grep ceph
conf:/etc/ceph/ceph.conf,id:dvanders,client-quota,client-mountpoint:/volumes/_nogroup/606824b2-1478-4aaa-9c08-4bcdf47202e6    /cephfs    fuse.ceph    _netdev00
conf:/etc/ceph/ceph.conf,id:dvanders,client-quota,client-mountpoint:/volumes/_nogroup/606824b2-1478-4aaa-9c08-4bcdf47202e6    /cephfs2    fuse.ceph    _netdev00

# mount /cephfs
# mount /cephfs2

# df -h | grep ceph
ceph-fuse        30G  104M   30G   1% /cephfs
ceph-fuse        30G  104M   30G   1% /cephfs2

# getfattr -n ceph.quota.max_bytes /cephfs
getfattr: Removing leading '/' from absolute path names
# file: cephfs
ceph.quota.max_bytes="32212254720" 

# getfattr -n ceph.quota.max_bytes /cephfs2
getfattr: Removing leading '/' from absolute path names
# file: cephfs2
ceph.quota.max_bytes="32212254720" 

# cd /cephfs2
# setfattr -n ceph.quota.max_bytes -v 10737418240 .

# df -h | grep ceph
ceph-fuse        30G  104M   30G   1% /cephfs
ceph-fuse        10G  104M  9.9G   2% /cephfs2

# getfattr -n ceph.quota.max_bytes /cephfs
getfattr: Removing leading '/' from absolute path names
# file: cephfs
ceph.quota.max_bytes="32212254720" 

# getfattr -n ceph.quota.max_bytes /cephfs2
getfattr: Removing leading '/' from absolute path names
# file: cephfs2
ceph.quota.max_bytes="10737418240" 

# echo 3 > /proc/sys/vm/drop_caches
# df -h | grep ceph
ceph-fuse        30G  104M   30G   1% /cephfs
ceph-fuse        10G  104M  9.9G   2% /cephfs2

It would be better if that quota attrs would be periodically refreshed.


Related issues 2 (0 open2 closed)

Copied to CephFS - Backport #19762: jewel: non-local cephfs quota changes not visible until some IO is doneResolvedNathan CutlerActions
Copied to CephFS - Backport #19763: kraken: non-local cephfs quota changes not visible until some IO is doneResolvedNathan CutlerActions
Actions

Also available in: Atom PDF