Re: Possible bug with rbd export/import?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 13, 2020 at 3:31 PM Jason Dillaman <jdillama@xxxxxxxxxx> wrote:
>
> On Fri, Mar 13, 2020 at 2:48 PM Matt Dunavant
> <mdunavant@xxxxxxxxxxxxxxxxxx> wrote:
> >
> > Jason Dillaman wrote:
> > > On Fri, Mar 13, 2020 at 11:36 AM Matt Dunavant
> > > <mdunavant(a)convokesystems.com&gt; wrote:
> > > >
> > > >  Jason Dillaman wrote:
> > > >  > On Fri, Mar 13, 2020 at 11:17 AM Matt Dunavant
> > > >  > <mdunavant(a)convokesystems.com&gt; wrote:
> > > >  > >
> > > >  > >  I'm not sure of the last known good release of the rbd CLI where this
> > > > worked. I just
> > > >  > > ran the sha1sum against the images and they always come up as different. Might
> > > > be worth
> > > >  > > knowing, this is a volume that's provisioned at 512GB (with much less
> > > > actually used)
> > > >  > > but after export, it only shows up as about 56GB.
> > > >  > The resulting image from the "rbd import" only shows up as 56GiB?
> > > >  >
> > > >  > >  _______________________________________________
> > > >  > >  ceph-users mailing list -- ceph-users(a)ceph.io
> > > >  > >  To unsubscribe send an email to ceph-users-leave(a)ceph.io
> > > >  > >
> > > >  Yeah, it's super odd. The actual content in the 512GB rbd image is probably about
> > > > 50ish GB but the command isn't killing itself early or throwing any errors. I believe
> > > > when I run the export to a middleman and then import, the image shows up as the correct
> > > > size. I'll test that in a bit.
> > > Couple test cases to try:
> > >
> > > Does the "rbd export" progress bar get to 100%?
> > > If you run "rbd export - > some_file" does it create a 512GiB file?
> > > If you run "rbd import" with a "--sparse-size 0" argument, does it
> > > change the result?
> > >
> > > >  _______________________________________________
> > > >  ceph-users mailing list -- ceph-users(a)ceph.io
> > > >  To unsubscribe send an email to ceph-users-leave(a)ceph.io
> > > >
> > rbd export progress bar gets to 100% but there's some weird behavior. It'll jump immediately to 14%, wait for a bit, and then slowly climb to 100%
> >
> > A few results:
> >
> > 1) rbd export of a snapshot results in an incorrectly sized drive but correct sha1sum.
>
> The "export" image was the wrong size as compared to "rbd info
> [image]@[snap]"? What are you comparing the sha1sum against?

Another thing to try would be to compare "rbd export
--rbd_concurrent_management_ops=1 [image] - > [some_file]" against an
"rbd export [image] [some_file]". The only change (since v14.2.3 for
rbd import/export) was to speed-up exports to STDOUT by issuing
concurrent I/O.

> > 2) rbd export > some_file creates a 512GB file and a correctly sized import and sha1sum, however the VM disk has some sort of corruption and the OS won't properly load.
>
> The sha1sum of the "some_file" matches or the sha1sum from
> re-exporting the newly imported image?
>
> > 3) rbd import with --sparse-size0 results in an incorrect sha1sum
> > _______________________________________________
> > ceph-users mailing list -- ceph-users@xxxxxxx
> > To unsubscribe send an email to ceph-users-leave@xxxxxxx
> >
>
>
> --
> Jason



-- 
Jason
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux