Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Jan Schermer
Apologies, it seems that to shrink the device a parameter --allow-shrink must be used. > On 12 Nov 2015, at 22:49, Jan Schermer wrote: > > xfs_growfs "autodetects" the block device size. You can force re-read of the > block device to refresh this info but might not do anything at all. > > The

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Jan Schermer
xfs_growfs "autodetects" the block device size. You can force re-read of the block device to refresh this info but might not do anything at all. There are situations when block device size will not reflect reality - for example you can't (or at least couldn't) resize partition that is in use (m

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Bogdan SOLGA
Unfortunately I can no longer execute those commands for that rbd5, as I had to delete it; I couldn't 'resurrect' it, at least not in a decent time. Here is the output for another image, which is 2TB big: *ceph-admin@ceph-client-01:~$ sudo blockdev --getsz --getss --getbsz /dev/rbd14

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Jan Schermer
Can you post the output of: blockdev --getsz --getss --getbsz /dev/rbd5 and xfs_info /dev/rbd5 rbd resize can actually (?) shrink the image as well - is it possible that the device was actually larger and you shrunk it? Jan > On 12 Nov 2015, at 21:46, Bogdan SOLGA wrote: > > By running rbd r

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Bogdan SOLGA
By running rbd resize and then 'xfs_growfs -d' on the filesystem. Is there a better way to resize an RBD image and the filesystem? On Thu, Nov 12, 2015 at 10:35 PM, Jan Schermer wrote: > > On 12 Nov 2015, at 20:49, Bogdan SOLGA wrote: > >

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Jan Schermer
> On 12 Nov 2015, at 20:49, Bogdan SOLGA wrote: > > Hello Jan! > > Thank you for your advices, first of all! > > The filesystem was created using mkfs.xfs, after creating the RBD block > device and mapping it on the Ceph client. I haven't specified any parameters > when I created the filesys

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Bogdan SOLGA
Hello Jan! Thank you for your advices, first of all! The filesystem was created using mkfs.xfs, after creating the RBD block device and mapping it on the Ceph client. I haven't specified any parameters when I created the filesystem, I just ran mkfs.xfs on the image name. As you mentioned the fil

Re: [ceph-users] RBD - 'attempt to access beyond end of device'

2015-11-12 Thread Jan Schermer
How did you create filesystems and/or partitions on this RBD block device? The obvious causes would be 1) you partitioned it and the partition on which you ran mkfs points or pointed during mkfs outside the block device size (happens if you for example automate this and confuse sectors x cylinder