Project

General

Profile

Bug #23137

[upstream] rbd-nbd does not resize on Ubuntu

Added by Alex Gorbachev over 2 years ago. Updated 8 months ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

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

History

#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

#2 Updated by Greg Farnum over 2 years ago

  • Project changed from Ceph to rbd

#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 [1]

[1] https://lkml.org/lkml/2018/2/19/565

#4 Updated by Alex Gorbachev over 2 years ago

Thanks, got it - seems that resolution stalled on the kernel side. I will follow up there.

#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.

#6 Updated by Alex Gorbachev about 2 years ago

this is resolved by the latest patches in nbd.c

#8 Updated by Stefan Kooman almost 2 years ago

I made this issue in Ubuntu to get the fix in Ubuntu kernels:

https://bugs.launchpad.net/bugs/1794766

#9 Updated by Patrick Donnelly 8 months ago

  • Status changed from 15 to Fix Under Review

#10 Updated by Jason Dillaman 8 months ago

  • Status changed from Fix Under Review to Resolved

Closing as there is nothing left for the Ceph community to handle.

Also available in: Atom PDF