Re: [ceph-users] data loss when flattening a cloned image on giant

2016-01-28 Thread Jason Dillaman
om > Sent: Thursday, January 28, 2016 4:52:57 AM > Subject: RE: [ceph-users] data loss when flattening a cloned image on giant > > Thank you for your quick reply :) >   > The first object of the cloned image has already lost after flattening, so it > may be too late to restore the

Re: [ceph-users] data loss when flattening a cloned image on giant

2016-01-28 Thread wuxingyi
dilla...@redhat.com > To: wuxingyi...@outlook.com > CC: ceph-users@lists.ceph.com; wuxin...@letv.com > Subject: Re: [ceph-users] data loss when flattening a cloned image on giant > > Interesting find. This is an interesting edge case interaction between > snapshot, flatten, and roll

Re: [ceph-users] data loss when flattening a cloned image on giant

2016-01-26 Thread Jason Dillaman
(since that link is still established via the snapshot). -- Jason Dillaman - Original Message - > From: "wuxingyi" > To: ceph-users@lists.ceph.com > Cc: wuxin...@letv.com > Sent: Tuesday, January 26, 2016 3:11:11 AM > Subject: Re: [ceph-users] data loss when

Re: [ceph-users] data loss when flattening a cloned image on giant

2016-01-26 Thread wuxingyi
really sorry for the bad format, I will put it here again.   I found data lost when flattening a cloned image on giant(0.87.2). The problem can be easily reproduced by runing the following script:     #!/bin/bash     ceph osd pool create wuxingyi 1 1     rbd create --image-format 2 wuxingyi/disk1.

[ceph-users] data loss when flattening a cloned image on giant

2016-01-25 Thread wuxingyi
hello, guys,I found data lost when flattening a cloned image on giant(0.87.2). The problem can be easily reproduced by runing the following script:ceph osd pool create wuxingyi 1 1rbd create --image-format 2 wuxingyi/disk1.img --size 8#writing "FOOBAR" at offset 0python writetooffset.py dis