Skip to contentSkip to conversation

Possible corruption with MSSQL on RBD

DISCUSSION Wido den Hollander 6 participants 11 messages Oct 12, 2016 – Oct 23, 2016

lore
Share & tools
lore
#0 lore raw

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

Wido

#1 lore raw
Quoted 16 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

Quoted 7 lines

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(
-Greg

Quoted 6 lines

Wido
--
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

#2 lore raw
Quoted 27 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 22 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Quoted 8 lines
Quoted 1 line

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

Wido

Quoted 12 lines

-Greg

Quoted 6 lines

Wido
--
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

--
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

#3 lore raw
Quoted 40 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 26 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 22 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Quoted 8 lines
Quoted 1 line

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

Quoted 4 lines

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Wido

Quoted 18 lines

Wido

Quoted 8 lines

-Greg

Quoted 6 lines

Wido
--
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 4 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

--
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

#4 lore raw

Hello,

Am 14.10.2016 um 12:04 schrieb Wido den Hollander:

Quoted 40 lines
Quoted 40 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 34 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 16 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

Quoted 7 lines

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

Quoted 4 lines
Quoted 4 lines

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

i've seen several reports in the last month about missing backport even they were marked as to be backported. Is there a generall problem with that?

Greets,
Stefan

Quoted 28 lines

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Wido

Quoted 10 lines

Wido

Quoted 8 lines

-Greg

Quoted 6 lines

Wido
--
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 8 lines
Quoted 4 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

--
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

--
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

#5 lore raw
Quoted 43 lines · Stefan Priebe - Profihost AG

Hello,

Am 14.10.2016 um 12:04 schrieb Wido den Hollander:

Quoted 40 lines
Quoted 40 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 34 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 16 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

Quoted 7 lines

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

Quoted 7 lines
Quoted 4 lines
Quoted 4 lines

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

i've seen several reports in the last month about missing backport even they were marked as to be backported. Is there a generall problem with that?

You could ask the backports team, but this one did get backported to Jewel. The hammer backport hasn't gotten much attention just because
1) Although it's shared code, nobody had reported any issue related to this using rbd
2) CephFS didn't go stable until Jewel so there's not much fuss about backporting beyond that
3) There is limited people time for doing work. ;)

I've bumped up the backport priority and you can poke at whoever's running backports right now if you like.
-Greg

#6 lore raw
In reply to Wido den Hollander
Quoted 40 lines · Wido den Hollander
Quoted 40 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 34 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 16 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

Quoted 7 lines

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

Quoted 6 lines
Quoted 4 lines

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Is there still some follow up needed on this? It seems that latest hammer is still at risk for an RBD corruption bug, right?

I've understood that you don't see the problem any more with jewel, but I didn't see any confirmation that 9ec6e7 is indeed the fix. Did you run any more testing of hammer + 9ec6e7?

Cheers, Dan

#7 lore raw
Quoted 50 lines

Op 22 oktober 2016 om 17:30 schreef Dan van der Ster <[email protected]>:

Quoted 45 lines · Wido den Hollander
Quoted 44 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 26 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 22 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Quoted 8 lines
Quoted 1 line

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

Quoted 9 lines
Quoted 1 line

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Is there still some follow up needed on this? It seems that latest hammer is still at risk for an RBD corruption bug, right?

I've understood that you don't see the problem any more with jewel, but I didn't see any confirmation that 9ec6e7 is indeed the fix. Did you run any more testing of hammer + 9ec6e7?

Oh, I updated the issues and not the ML. Yes, with hammer + that fix we no longer see the issue.

The fix is now pending for 0.94.10

Wido

Quoted 1 line

Cheers, Dan

#8 lore raw
Quoted 55 lines · Wido den Hollander
Quoted 55 lines

Op 22 oktober 2016 om 17:30 schreef Dan van der Ster <[email protected]>:

Quoted 40 lines · Wido den Hollander
Quoted 40 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 34 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 16 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

Quoted 7 lines

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

Quoted 6 lines
Quoted 4 lines

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Is there still some follow up needed on this? It seems that latest hammer is still at risk for an RBD corruption bug, right?

Quoted 8 lines
Quoted 4 lines

I've understood that you don't see the problem any more with jewel, but I didn't see any confirmation that 9ec6e7 is indeed the fix. Did you run any more testing of hammer + 9ec6e7?

Oh, I updated the issues and not the ML. Yes, with hammer + that fix we no longer see the issue.

The fix is now pending for 0.94.10

Excellent.

So, I don't really understand how this corruption is triggered. Is it something unique about the MSSQL workload that triggers it or is this a general problem that's probably going on undetected by other RBD use-cases?

Cheers, Dan

#9 lore raw
Quoted 63 lines · Dan van der Ster
Quoted 62 lines · Wido den Hollander
Quoted 50 lines

Op 22 oktober 2016 om 17:30 schreef Dan van der Ster <[email protected]>:

Quoted 45 lines · Wido den Hollander
Quoted 44 lines

Op 12 oktober 2016 om 17:57 schreef Wido den Hollander <[email protected]>:

Quoted 26 lines

Op 12 oktober 2016 om 17:01 schreef Gregory Farnum <[email protected]>:

Quoted 22 lines · Wido den Hollander

Hi,

I filed a issue in the tracker, but I'm looking for some feedback to diagnose this a bit further: http://tracker.ceph.com/issues/17545

The situation is that with a Firefly or Hammer (haven't tested Jewel yet) a MSSQL server running on RBD will sometimes complain about corruption.

Using SQLioSim we can reproduce the issue on a small Proxmox + Ceph cluster and after an hour or so it will yield:

Expected FileId: 0x0
Received FileId: 0x0
Expected PageId: 0xCB19C
Received PageId: 0xCB19A (does not match expected) Received CheckSum: 0x9F444071
Calculated CheckSum: 0x89603EC9 (does not match expected) Received Buffer Length: 0x2000

The issue only seems to happen with RBD caching enabled. When disabling the RBD cache or using cache=directsync we were not able to reproduce the issue.

When using LVM/file based backends for Qemu the problem also didn't pop up.

So this seems to be either a librbd issue or the RBD driver inside Qemu.

Quoted 8 lines
Quoted 1 line

Any hints on how to debug this further to find the root cause?

If you've got control over the clients, try building with commit 9ec6e7f608608088d51e449c9d375844631dcdde backported to them (I believe it's also in the latest Hammer release, but maybe there hasn't been one cut since the backport?); tracked at
http://tracker.ceph.com/issues/16002 but of course the web site is dead so you can't look at that right now. :(

I verified, but 9ec6e7 is not in v0.94.9, but it is in the Jewel release.

Tests are running with Jewel now and I will probably have the results tomorrow. If Jewel doesn't break the commit you send might indeed resolve it.

Quoted 9 lines
Quoted 1 line

The tests have been running for over 24 hours and all still looks good. We will let it run for over the weekend to make sure it has been fixed.

Is there still some follow up needed on this? It seems that latest hammer is still at risk for an RBD corruption bug, right?

I've understood that you don't see the problem any more with jewel, but I didn't see any confirmation that 9ec6e7 is indeed the fix. Did you run any more testing of hammer + 9ec6e7?

Oh, I updated the issues and not the ML. Yes, with hammer + that fix we no longer see the issue.

Quoted 8 lines
Quoted 1 line

The fix is now pending for 0.94.10

Excellent.

So, I don't really understand how this corruption is triggered. Is it something unique about the MSSQL workload that triggers it or is this a general problem that's probably going on undetected by other RBD use-cases?

It could affect other workloads as well. You'll definitely want to upgrade once 0.94.10 is out.

sage

#10 lore raw
Quoted 11 lines
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines

I've understood that you don't see the problem any more with jewel, but I didn't see any confirmation that 9ec6e7 is indeed the fix. Did you run any more testing of hammer + 9ec6e7?

Oh, I updated the issues and not the ML. Yes, with hammer + that fix we no longer see the issue.

The fix is now pending for 0.94.10

Excellent.

Quoted 7 lines
Quoted 4 lines

So, I don't really understand how this corruption is triggered. Is it something unique about the MSSQL workload that triggers it or is this a general problem that's probably going on undetected by other RBD use-cases?

It could affect other workloads as well. You'll definitely want to upgrade once 0.94.10 is out.

JFYI, hammer backport now staged:

https://github.com/ceph/ceph/pull/11612

Signature · 4 lines
Nathan Cutler
Software Engineer Distributed Storage
SUSE LINUX, s.r.o.
Tel.: +420 284 084 037