Bug #23137
closed[upstream] rbd-nbd does not resize on Ubuntu
0%
Description
rbd-nbd 12.2.3
After rbd resize, the corresponding mapped rbd-nbd device does not show correct size, unless device is unmapped and remapped
Kernel 4.14.13-041413-generic
partprobe does not force the detection either, so does not appear similar to bug https://tracker.ceph.com/issues/22173
Updated by Alex Gorbachev about 6 years ago
Looks like referenced in https://www.spinics.net/lists/ceph-devel/msg40171.html
This is happening in public release 12.2.3
Updated by Jason Dillaman about 6 years ago
- Subject changed from rbd-nbd does not resize on Ubuntu to [upstream] rbd-nbd does not resize on Ubuntu
- Status changed from New to 15
- Severity changed from 2 - major to 3 - minor
This is a known issue in the latest kernels and unrelated to RBD [1]
Updated by Alex Gorbachev about 6 years ago
Thanks, got it - seems that resolution stalled on the kernel side. I will follow up there.
Updated by Alex Gorbachev about 6 years ago
I went ahead and built a custom kernel reverting the change https://github.com/torvalds/linux/commit/639812a1ed9bf49ae2c026086fbf975339cd1eef
After that a resize shows in lsblk and /sys/block/nbdX/size, but not in parted for a mounted filesystem. Unmounting flesystem still does not change the size.
Unmapping and remapping the NBD device shows the correct size in parted.
Updated by Alex Gorbachev almost 6 years ago
this is resolved by the latest patches in nbd.c
Updated by Jason Dillaman almost 6 years ago
Updated by Stefan Kooman over 5 years ago
I made this issue in Ubuntu to get the fix in Ubuntu kernels:
Updated by Patrick Donnelly over 4 years ago
- Status changed from 15 to Fix Under Review
Updated by Jason Dillaman over 4 years ago
- Status changed from Fix Under Review to Resolved
Closing as there is nothing left for the Ceph community to handle.