Project

General

Profile

Actions

Bug #23137

closed

[upstream] rbd-nbd does not resize on Ubuntu

Added by Alex Gorbachev about 6 years ago. Updated over 4 years 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 (v1):
Crash signature (v2):

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

Actions #1

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

Actions #2

Updated by Greg Farnum about 6 years ago

  • Project changed from Ceph to rbd
Actions #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]

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

Actions #4

Updated by Alex Gorbachev about 6 years ago

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

Actions #5

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.

Actions #6

Updated by Alex Gorbachev almost 6 years ago

this is resolved by the latest patches in nbd.c

Actions #8

Updated by Stefan Kooman over 5 years ago

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

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

Actions #9

Updated by Patrick Donnelly over 4 years ago

  • Status changed from 15 to Fix Under Review
Actions #10

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.

Actions

Also available in: Atom PDF