Re: [ceph-users] question on rbd resize
No, most filesystems can be expanded pretty trivially (shrinking is a more complex operation but usually also doable). Assuming the likely case of an ext2/3/4 filesystem, the command "resize2fs /dev/rbd0" should resize the FS to cover the available space in the block device. Rich On 03/01/18 13:12, 13605702...@163.com wrote: > hi Jason > > the data won't be lost if i resize the filesystem in the image? > > thanks signature.asc Description: OpenPGP digital signature ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] question on rbd resize
hi Jason the data won't be lost if i resize the filesystem in the image? thanks 13605702...@163.com From: Jason Dillaman Date: 2018-01-03 20:57 To: 13605702...@163.com CC: ceph-users Subject: Re: [ceph-users] question on rbd resize You need to resize the filesystem within the RBD block device. On Wed, Jan 3, 2018 at 7:37 AM, 13605702...@163.com <13605702...@163.com> wrote: > hi > > a rbd image is out of space (old size is 1GB), so i resize it to 10GB > > # rbd info rbd/test > rbd image 'test': > size 10240 MB in 2560 objects > order 22 (4096 kB objects) > block_name_prefix: rbd_data.1169238e1f29 > format: 2 > features: layering > flags: > > and then i remap and remount the image on the client, but the size of the > image is still 1GB, and it is full ! > /dev/rbd0 1014M 1014M 20K 100% /mnt > > how i can resize the image without lost the data in the image? > > thanks > > > 13605702...@163.com > > ___ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Jason ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
Re: [ceph-users] question on rbd resize
You need to resize the filesystem within the RBD block device. On Wed, Jan 3, 2018 at 7:37 AM, 13605702...@163.com <13605702...@163.com> wrote: > hi > > a rbd image is out of space (old size is 1GB), so i resize it to 10GB > > # rbd info rbd/test > rbd image 'test': > size 10240 MB in 2560 objects > order 22 (4096 kB objects) > block_name_prefix: rbd_data.1169238e1f29 > format: 2 > features: layering > flags: > > and then i remap and remount the image on the client, but the size of the > image is still 1GB, and it is full ! > /dev/rbd0 1014M 1014M 20K 100% /mnt > > how i can resize the image without lost the data in the image? > > thanks > > > 13605702...@163.com > > ___ > ceph-users mailing list > ceph-users@lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Jason ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com
[ceph-users] question on rbd resize
hi a rbd image is out of space (old size is 1GB), so i resize it to 10GB # rbd info rbd/test rbd image 'test': size 10240 MB in 2560 objects order 22 (4096 kB objects) block_name_prefix: rbd_data.1169238e1f29 format: 2 features: layering flags: and then i remap and remount the image on the client, but the size of the image is still 1GB, and it is full ! /dev/rbd0 1014M 1014M 20K 100% /mnt how i can resize the image without lost the data in the image? thanks 13605702...@163.com ___ ceph-users mailing list ceph-users@lists.ceph.com http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com