[upstream] rbd-nbd does not resize on Ubuntu
After rbd resize, the corresponding mapped rbd-nbd device does not show correct size, unless device is unmapped and remapped
partprobe does not force the detection either, so does not appear similar to bug https://tracker.ceph.com/issues/22173
#1 Updated by Alex Gorbachev over 2 years ago
Looks like referenced in https://www.spinics.net/lists/ceph-devel/msg40171.html
This is happening in public release 12.2.3
#3 Updated by Jason Dillaman over 2 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 
#5 Updated by Alex Gorbachev over 2 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.