upstream/firefly exporting the same snap 2 times results in different exports
Hi,
i remember there was a bug before in ceph not sure in which release where exporting the same rbd snap multiple times results in different raw images.
Currently running upstream/firefly and i'm seeing the same again.
# rbd export cephstor/disk-116@snap dump1 # sleep 10 # rbd export cephstor/disk-116@snap dump2
# md5sum -b dump* b89198f118de59b3aa832db1bfddaf8f *dump1 f63ed9345ac2d5898483531e473772b1 *dump2
Can anybody help?
Greets,
Stefan
Any chance that the snapshot was just created prior to the first export and you have a process actively writing to the image?
Signature · 7 lines
Jason Dillaman Red Hat [email protected] http://www.redhat.com ----- Original Message -----
Quoted 31 lines
From: "Stefan Priebe - Profihost AG" <[email protected]>
To: [email protected]
Sent: Tuesday, July 21, 2015 8:29:46 AM
Subject: upstream/firefly exporting the same snap 2 times results in different exportsHi,
i remember there was a bug before in ceph not sure in which release where exporting the same rbd snap multiple times results in different raw images.
Currently running upstream/firefly and i'm seeing the same again.
# rbd export cephstor/disk-116@snap dump1 # sleep 10 # rbd export cephstor/disk-116@snap dump2# md5sum -b dump* b89198f118de59b3aa832db1bfddaf8f *dump1 f63ed9345ac2d5898483531e473772b1 *dump2Can anybody help?
Greets,
Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 21.07.2015 um 16:32 schrieb Jason Dillaman:
Quoted 2 lines
Any chance that the snapshot was just created prior to the first export and you have a process actively writing to the image?
Sadly not. I executed those commands exactly as i've posted manually at bash.
I can reproduce this at 5 different ceph cluster and 500 vms each.
Stefan
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - > dump_file")?
Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20
I opened a ticket [1] where you can attach the logs (if they aren't too large).
[1] http://tracker.ceph.com/issues/12422
Signature · 7 lines
Jason Dillaman Red Hat [email protected] http://www.redhat.com ----- Original Message -----
Quoted 23 lines
From: "Stefan Priebe" <[email protected]>
To: "Jason Dillaman" <[email protected]>
Cc: [email protected]
Sent: Tuesday, July 21, 2015 12:55:43 PM
Subject: Re: upstream/firefly exporting the same snap 2 times results in different exportsAm 21.07.2015 um 16:32 schrieb Jason Dillaman:
Quoted 3 lines
Any chance that the snapshot was just created prior to the first export and you have a process actively writing to the image?
Sadly not. I executed those commands exactly as i've posted manually at bash.
I can reproduce this at 5 different ceph cluster and 500 vms each.
Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 10 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20I opened a ticket [1] where you can attach the logs (if they aren't too large).
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
Stefan
Quoted 12 lines · Stefan Priebe
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 10 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20
Quoted 7 lines
Quoted 4 lines
I opened a ticket [1] where you can attach the logs (if they aren't too large).
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
Have you increased pgs in all those clusters recently?
Josh
Am 21.07.2015 um 21:46 schrieb Josh Durgin:
Quoted 16 lines · Stefan Priebe
Quoted 15 lines
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 13 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20I opened a ticket [1] where you can attach the logs (if they aren't too large).
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
How can i do this exactly?
Quoted 1 line
Have you increased pgs in all those clusters recently?
Yes i bumped from 2048 to 4096 as i doubled the osds.
Stefan
Quoted 5 lines
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
So this is really this old bug?
http://tracker.ceph.com/issues/9806
Stefan
Am 21.07.2015 um 21:46 schrieb Josh Durgin:
Quoted 31 lines · Stefan Priebe
Quoted 12 lines
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 10 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20Quoted 7 lines
Quoted 4 lines
I opened a ticket [1] where you can attach the logs (if they aren't too large).
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
Have you increased pgs in all those clusters recently?
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines
Quoted 2 lines
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
How can i do this exactly?
You need to determine the RBD header object name. For format 1 images (default for Firefly), the image header object is named "<image name>.rbd". For format 2 images, you can determine the header object name via "rbd info <image spec> | grep 'block_name_prefix' | sed 's/.*rbd_data\.\(.*\)/rbd_header.\1/g'".
Once you have the RBD image header object name, you can run: "rados listwatchers -p <pool name> <RBD image header name>".
Signature · 4 lines
Jason Dillaman Red Hat [email protected] http://www.redhat.com
Yes, I'm afraid it sounds like it is. You can double check whether the watch exists on an image by getting the id of the image from 'rbd info $pool/$image | grep block_name_prefix':
block_name_prefix: rbd_data.105674b0dc51
The id is the hex number there. Append that to 'rbd_header.' and you have the header object name. Check whether it has watchers with:
rados listwatchers -p $pool rbd_header.105674b0dc51
If that doesn't show any watchers while the image is in use by a vm, it's #9806.
I just merged the backport for firefly, so it'll be in 0.80.11. Sorry it took so long to get to firefly :(. We'll need to be more vigilant about checking non-trivial backports when we're going through all the bugs periodically.
Josh
Quoted 38 lines · Stefan Priebe
So this is really this old bug?
http://tracker.ceph.com/issues/9806
Stefan
Am 21.07.2015 um 21:46 schrieb Josh Durgin:Quoted 32 lines · Stefan Priebe
Quoted 12 lines
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 10 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20Quoted 8 lines
Quoted 4 lines
I opened a ticket [1] where you can attach the logs (if they aren't too large).
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
Have you increased pgs in all those clusters recently?
Josh
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 21.07.2015 um 22:50 schrieb Josh Durgin:
Quoted 6 lines
Yes, I'm afraid it sounds like it is. You can double check whether the watch exists on an image by getting the id of the image from 'rbd info $pool/$image | grep
block_name_prefix':block_name_prefix: rbd_data.105674b0dc51
Quoted 7 lines
The id is the hex number there. Append that to '
rbd_header.' and you have the header object name. Check whether it has watchers with:rados listwatchers -p $pool rbd_header.105674b0dc51If that doesn't show any watchers while the image is in use by a vm, it's #9806.
Yes it does not show any watchers.
Quoted 4 lines
I just merged the backport for firefly, so it'll be in 0.80.11. Sorry it took so long to get to firefly :(. We'll need to be more vigilant about checking non-trivial backports when we're going through all the bugs periodically.
That would be really important. I've seen that this one was already in upstream/firefly-backports. What's the purpose of that branch?
Greets,
Stefan
Quoted 46 lines
Josh
Quoted 38 lines · Stefan Priebe
So this is really this old bug?
http://tracker.ceph.com/issues/9806
Stefan
Am 21.07.2015 um 21:46 schrieb Josh Durgin:Quoted 32 lines · Stefan Priebe
Quoted 12 lines
Am 21.07.2015 um 19:19 schrieb Jason Dillaman:
Quoted 10 lines
Does this still occur if you export the images to the console (i.e. "rbd export cephstor/disk-116@snap - >
dump_file")?Would it be possible for you to provide logs from the two "rbd export" runs on your smallest VM image? If so, please add the following to the "[client]" section of your ceph.conf:
log file = /valid/path/to/logs/$name.$pid.log
debug rbd = 20Quoted 8 lines
Quoted 4 lines
I opened a ticket [1] where you can attach the logs (if they aren't too large).
Will post some more details to the tracker in a few hours. It seems it is related to using discard inside guest but not on the FS the osd is on.
That sounds very odd. Could you verify via 'rados listwatchers' on an in-use rbd image's header object that there's still a watch established?
Have you increased pgs in all those clusters recently?
Josh
Signature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.htmlSignature · 3 lines
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Stefan Priebe - Profihost AG
That would be really important. I've seen that this one was already in upstream/firefly-backports. What's the purpose of that branch?
That is where the Stable Releases and Backports team stages backports and does integration testing on them before they are merged into the 'firefly' named branch.
Signature · 4 lines
Nathan Cutler Software Engineer Distributed Storage SUSE LINUX, s.r.o. Tel.: +420 284 084 037