Re: [ceph-users] Resizing filesystem on RBD without unmount/mount cycle

2013-07-04 Thread Laurent Barbe

Hello Edward,

It works since kernel 3.10 (rbd client), before the client not update 
the size while filesystem is mount :

http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/14314

Regards,

Laurent Barbe


Le 24/06/2013 20:33, Edward Huyer a écrit :

-Original Message-
From: John Nielsen [mailto:li...@jnielsen.net]
Sent: Monday, June 24, 2013 1:24 PM
To: Edward Huyer
Cc: ceph-us...@ceph.com
Subject: Re: [ceph-users] Resizing filesystem on RBD without
unmount/mount cycle

On Jun 24, 2013, at 9:13 AM, Edward Huyer erh...@rit.edu wrote:


I'm experimenting with ceph 0.61.4 and RBD under Ubuntu 13.0x.  I create

a RADOS block device (test), map it, format it as ext4 or xfs, and mount it.  No
problem.  I grow the underlying RBD.  lsblk on both /dev/rbd/rbd/test and
/dev/rbd1 shows the new size, but the filesystem resize commands don't
see the new size until I unmount and then mount the block device again.  -o
remount isn't good enough, nor is partprobe.


Is there a way to club the filesystem tools into recognizing that the RBD has

changed sizes without unmounting the filesystem?

I know this is possible with e.g. virtual machines (c.f. virsh blockresize), 
so I
agree it _ought_ to work. I don't know if the RBD kernel module has or needs
any special support for online resizing.

It may work the same as partprobe, but have you tried blockdev --
rereadpt?


No dice with blockdev.

I just now ran across this older thread in ceph-devel that seems to imply what 
I want isn't possible:
http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/8013

It looks like the kernel can't update the size of a block device while the 
block device is in use.  Boo.

Thanks anyway.
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Resizing filesystem on RBD without unmount/mount cycle

2013-06-24 Thread John Nielsen
On Jun 24, 2013, at 9:13 AM, Edward Huyer erh...@rit.edu wrote:

 I’m experimenting with ceph 0.61.4 and RBD under Ubuntu 13.0x.  I create a 
 RADOS block device (test), map it, format it as ext4 or xfs, and mount it.  
 No problem.  I grow the underlying RBD.  lsblk on both /dev/rbd/rbd/test and 
 /dev/rbd1 shows the new size, but the filesystem resize commands don’t see 
 the new size until I unmount and then mount the block device again.  “-o 
 remount” isn’t good enough, nor is partprobe.
  
 Is there a way to club the filesystem tools into recognizing that the RBD has 
 changed sizes without unmounting the filesystem?

I know this is possible with e.g. virtual machines (c.f. virsh blockresize), 
so I agree it _ought_ to work. I don't know if the RBD kernel module has or 
needs any special support for online resizing.

It may work the same as partprobe, but have you tried blockdev --rereadpt?

JN

___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com


Re: [ceph-users] Resizing filesystem on RBD without unmount/mount cycle

2013-06-24 Thread Edward Huyer
 -Original Message-
 From: John Nielsen [mailto:li...@jnielsen.net]
 Sent: Monday, June 24, 2013 1:24 PM
 To: Edward Huyer
 Cc: ceph-us...@ceph.com
 Subject: Re: [ceph-users] Resizing filesystem on RBD without
 unmount/mount cycle
 
 On Jun 24, 2013, at 9:13 AM, Edward Huyer erh...@rit.edu wrote:
 
  I'm experimenting with ceph 0.61.4 and RBD under Ubuntu 13.0x.  I create
 a RADOS block device (test), map it, format it as ext4 or xfs, and mount it.  
 No
 problem.  I grow the underlying RBD.  lsblk on both /dev/rbd/rbd/test and
 /dev/rbd1 shows the new size, but the filesystem resize commands don't
 see the new size until I unmount and then mount the block device again.  -o
 remount isn't good enough, nor is partprobe.
 
  Is there a way to club the filesystem tools into recognizing that the RBD 
  has
 changed sizes without unmounting the filesystem?
 
 I know this is possible with e.g. virtual machines (c.f. virsh 
 blockresize), so I
 agree it _ought_ to work. I don't know if the RBD kernel module has or needs
 any special support for online resizing.
 
 It may work the same as partprobe, but have you tried blockdev --
 rereadpt?

No dice with blockdev.

I just now ran across this older thread in ceph-devel that seems to imply what 
I want isn't possible:
http://comments.gmane.org/gmane.comp.file-systems.ceph.devel/8013

It looks like the kernel can't update the size of a block device while the 
block device is in use.  Boo.

Thanks anyway.
___
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com