Actions
Bug #45398
closedmgr/volumes: Not able to resize cephfs subvolume with ceph fs subvolume create command
Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
% Done:
0%
Source:
Community (dev)
Tags:
Backport:
octopus,nautilus
Regression:
Yes
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/volumes
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
in cephcsi we are using ceph fs subvolume create command to resize the PVC, which is not working in the cluster which is higher version that 14.2.8.
i tried with ceph 15.2.1 here is the los
- create PVC and mount it to app pod and check the size
getfattr: Removing leading '/' from absolute path names
- file: var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-e98c8e69-c187-4200-bb99-25ac53c3fd7c/globalmount
ceph.quota.max_bytes="1073741824
- change the size with ceph fs subvolume create command and check the size
sh-4.2# #ceph fs subvolume create myfs csi-vol-7e9c4973-8f8a-11ea-8cb2-0242ac110010 2147483648 --group_name csi
sh-4.4# getfattr -n ceph.quota.max_bytes /var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-e98c8e69-c187-4200-bb99-25ac53c3fd7c/globalmount
getfattr: Removing leading '/' from absolute path names - file: var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-e98c8e69-c187-4200-bb99-25ac53c3fd7c/globalmount
ceph.quota.max_bytes="1073741824"
- do the resize with resize command and check the size
sh-4.2# ceph fs subvolume resize myfs csi-vol-7e9c4973-8f8a-11ea-8cb2-0242ac110010 2147483648 --group_name csi
[ {
"bytes_used": 0
}, {
"bytes_quota": 2147483648
}, {
"bytes_pcent": "0.00"
}
]
getfattr: Removing leading '/' from absolute path names
- file: var/lib/kubelet/plugins/kubernetes.io/csi/pv/pvc-e98c8e69-c187-4200-bb99-25ac53c3fd7c/globalmount
ceph.quota.max_bytes="2147483648"
more info at https://github.com/ceph/ceph-csi/issues/1002
Actions