Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-14 Thread Jason Dillaman
Great, thanks for the update. Jason On Fri, Apr 13, 2018 at 11:06 PM, Alex Gorbachev wrote: > On Thu, Apr 12, 2018 at 9:38 AM, Alex Gorbachev > wrote: >> On Thu, Apr 12, 2018 at 7:57 AM, Jason Dillaman wrote: >>> If

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-13 Thread Alex Gorbachev
On Thu, Apr 12, 2018 at 9:38 AM, Alex Gorbachev wrote: > On Thu, Apr 12, 2018 at 7:57 AM, Jason Dillaman wrote: >> If you run "partprobe" after you resize in your second example, is the >> change visible in "parted"? > > No, partprobe does not

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-12 Thread Alex Gorbachev
On Thu, Apr 12, 2018 at 7:57 AM, Jason Dillaman wrote: > If you run "partprobe" after you resize in your second example, is the > change visible in "parted"? No, partprobe does not help: root@lumd1:~# parted /dev/nbd2 p Model: Unknown (unknown) Disk /dev/nbd2: 2147MB Sector

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-12 Thread Jason Dillaman
If you run "partprobe" after you resize in your second example, is the change visible in "parted"? On Wed, Apr 11, 2018 at 11:01 PM, Alex Gorbachev wrote: > On Wed, Apr 11, 2018 at 2:13 PM, Jason Dillaman wrote: >> I've tested the patch on both

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Alex Gorbachev
On Wed, Apr 11, 2018 at 2:13 PM, Jason Dillaman wrote: > I've tested the patch on both 4.14.0 and 4.16.0 and it appears to > function correctly for me. parted can see the newly added free-space > after resizing the RBD image and our stress tests once again pass >

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Alex Gorbachev
On Wed, Apr 11, 2018 at 2:13 PM, Jason Dillaman wrote: > I've tested the patch on both 4.14.0 and 4.16.0 and it appears to > function correctly for me. parted can see the newly added free-space > after resizing the RBD image and our stress tests once again pass >

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Jason Dillaman
I've tested the patch on both 4.14.0 and 4.16.0 and it appears to function correctly for me. parted can see the newly added free-space after resizing the RBD image and our stress tests once again pass successfully. Do you have any additional details on the issues you are seeing? On Wed, Apr 11,

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Jason Dillaman
I'll give it a try locally and see if I can figure it out. Note that this commit [1] also dropped the call to "bd_set_size" within "nbd_size_update", which seems suspicious to me at initial glance. [1]

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Alex Gorbachev
> On Wed, Apr 11, 2018 at 10:27 AM, Alex Gorbachev > wrote: >> On Wed, Apr 11, 2018 at 2:43 AM, Mykola Golub >> wrote: >>> On Tue, Apr 10, 2018 at 11:14:58PM -0400, Alex Gorbachev wrote: >>> So Josef fixed the one issue that enables e.g.

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Jason Dillaman
Do you have a preliminary patch that we can test against? On Wed, Apr 11, 2018 at 10:27 AM, Alex Gorbachev wrote: > On Wed, Apr 11, 2018 at 2:43 AM, Mykola Golub wrote: >> On Tue, Apr 10, 2018 at 11:14:58PM -0400, Alex Gorbachev wrote: >> >>>

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Alex Gorbachev
On Wed, Apr 11, 2018 at 2:43 AM, Mykola Golub wrote: > On Tue, Apr 10, 2018 at 11:14:58PM -0400, Alex Gorbachev wrote: > >> So Josef fixed the one issue that enables e.g. lsblk and sysfs size to >> reflect the correct siz on change. However, partptobe and parted >> still

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-11 Thread Mykola Golub
On Tue, Apr 10, 2018 at 11:14:58PM -0400, Alex Gorbachev wrote: > So Josef fixed the one issue that enables e.g. lsblk and sysfs size to > reflect the correct siz on change. However, partptobe and parted > still do not detect the change, complete unmap and remap of rbd-nbd > device and remount

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-04-10 Thread Alex Gorbachev
On Sun, Mar 11, 2018 at 3:50 PM, Alex Gorbachev wrote: > On Sun, Mar 11, 2018 at 4:23 AM, Mykola Golub wrote: >> On Sat, Mar 10, 2018 at 08:25:15PM -0500, Alex Gorbachev wrote: >>> I am running into the problem described in >>>

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-03-11 Thread Alex Gorbachev
On Sun, Mar 11, 2018 at 4:23 AM, Mykola Golub wrote: > On Sat, Mar 10, 2018 at 08:25:15PM -0500, Alex Gorbachev wrote: >> I am running into the problem described in >> https://lkml.org/lkml/2018/2/19/565 and >> https://tracker.ceph.com/issues/23137 >> >> I went ahead and

Re: [ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-03-11 Thread Mykola Golub
On Sat, Mar 10, 2018 at 08:25:15PM -0500, Alex Gorbachev wrote: > I am running into the problem described in > https://lkml.org/lkml/2018/2/19/565 and > https://tracker.ceph.com/issues/23137 > > I went ahead and built a custom kernel reverting the change >

[ceph-users] rbd-nbd not resizing even after kernel tweaks

2018-03-10 Thread Alex Gorbachev
I am running into the problem described in https://lkml.org/lkml/2018/2/19/565 and https://tracker.ceph.com/issues/23137 I went ahead and built a custom kernel reverting the change https://github.com/torvalds/linux/commit/639812a1ed9bf49ae2c026086fbf975339cd1eef After that a resize shows in