Random blocks when accessing rbd images
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
I found that these blocks can usually be "fixed" by restarting one of the
osds.
The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
Guido
Hi,
Quoted 12 lines · Guido Winkelmann
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
Quoted 6 lines
I found that these blocks can usually be "fixed" by restarting one of the
osds.The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
I've been seeing the exact same behaviour, but I wasn't able yet to get into it a bit deeper.
As far as I know, when a PG gets scrubbed it become unavailable for a short period, but since this scrub blocks/loops the PG will never become available again, thus blocking the virtual machine.
I saw this behaviour with v0.37 and 0.38, upgrading to 0.39 to see if it still exists.
Wido
Quoted 8 lines
Does anybody have any idea what could be going wrong here?
Guido
--
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 12 lines · Guido Winkelmann
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
Quoted 8 lines
I found that these blocks can usually be "fixed" by restarting one of the
osds.The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
I think it's fixed in v0.39
Quoted 5 lines
Guido
--
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
Signature · 2 lines
Stratos Psomadakis <[email protected]>
Am Donnerstag, 15. Dezember 2011, 17:32:25 schrieben Sie:
Quoted 17 lines · Guido Winkelmann
Quoted 16 lines
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
I found that these blocks can usually be "fixed" by restarting one of the>
osds.
Quoted 7 lines
Quoted 5 lines
The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
I think it's fixed in v0.39
I'm already using 0.39, so, no. (Should have mentioned that to start with...)
Guido
'ceph pg dump' will tell you the status (active/clean/scrubbing/etc) for each pg. Does the same pg remain in state active+clean+scrubbing for more than 10 minutes?
-Sam
Quoted 26 lines · Guido Winkelmann
Am Donnerstag, 15. Dezember 2011, 17:32:25 schrieben Sie:
Quoted 17 lines · Guido Winkelmann
Quoted 16 lines
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
I found that these blocks can usually be "fixed" by restarting one of the>
osds.Quoted 7 lines
Quoted 5 lines
The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
I think it's fixed in v0.39
Quoted 7 lines
I'm already using 0.39, so, no. (Should have mentioned that to start with...)
Guido
--
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
Quoted 3 lines · Samuel Just
'ceph pg dump' will tell you the status (active/clean/scrubbing/etc) for each pg. Does the same pg remain in state active+clean+scrubbing for more than 10 minutes?
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Wido
Quoted 41 lines
-Sam
Quoted 26 lines · Guido Winkelmann
Am Donnerstag, 15. Dezember 2011, 17:32:25 schrieben Sie:
Quoted 17 lines · Guido Winkelmann
Quoted 16 lines
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
I found that these blocks can usually be "fixed" by restarting one of the>
osds.Quoted 7 lines
Quoted 5 lines
The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
I think it's fixed in v0.39
Quoted 7 lines
I'm already using 0.39, so, no. (Should have mentioned that to start with...)
Guido
--
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
Hi Wido,
but wasn't that fixed a few weeks ago?
-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 4 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Wido
Hi,
at least there is a patch that should have fixed it.
http://marc.info/?l=ceph-devel&m=131955913203561&w=2
Am 15.12.2011 17:38, schrieb Martin Mailand:
Quoted 15 lines
Hi Wido,
but wasn't that fixed a few weeks ago?-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 4 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
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
Hi,
Quoted 5 lines · Martin Mailand
Hi,
at least there is a patch that should have fixed it.
I'm still seeing this one:
2011-12-16 17:14:53.638722 pg v1170309: 7808 pgs: 7807 active+clean, 1 active+clean+scrubbing; 15279 MB data, 47262 MB used, 73838 GB / 74520 GB avail
In this case PG "2.688" is in scrubbing state and is staying that way.
I'm running v0.39, not the latest master.
Any suggestions to trace this one down?
Wido
Quoted 21 lines
Am 15.12.2011 17:38, schrieb Martin Mailand:
Quoted 9 lines
Hi Wido,
but wasn't that fixed a few weeks ago?-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 3 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Quoted 6 lines
Quoted 1 line
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
In master, 061e7619aacf60a828e0ce84a108d5a0bea247c6 may fix the problem. If not, 5274e88d2cb8c0449a4ecd1ff0cf8bb0af2cfc97 includes some asserts that may give us a clue as to how this is happening. -Sam
Quoted 53 lines · Wido den Hollander
Hi,
Quoted 6 lines · Martin Mailand
Hi,
at least there is a patch that should have fixed it.I'm still seeing this one:
2011-12-16 17:14:53.638722 pg v1170309: 7808 pgs: 7807 active+clean, 1active+clean+scrubbing; 15279 MB data, 47262 MB used, 73838 GB / 74520 GB avail
In this case PG "2.688" is in scrubbing state and is staying that way.
I'm running v0.39, not the latest master.
Any suggestions to trace this one down?
Wido
Quoted 21 lines
Am 15.12.2011 17:38, schrieb Martin Mailand:
Quoted 11 lines
Hi Wido,
but wasn't that fixed a few weeks ago?-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 4 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Quoted 7 lines
Quoted 1 line
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.htmlQuoted 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
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
Quoted 3 lines · Samuel Just
In master,
061e7619aacf60a828e0ce84a108d5a0bea247c6may fix the problem. If not,5274e88d2cb8c0449a4ecd1ff0cf8bb0af2cfc97includes some asserts that may give us a clue as to how this is happening.
I've been running with bfbde5b18525406fc3b678751459e989ea5d4977 for over 24 hours now, everything is still active+clean.
If it comes back I'll update this thread.
Thanks,
Wido
Quoted 64 lines
-Sam
Quoted 53 lines · Wido den Hollander
Hi,
Quoted 6 lines · Martin Mailand
Hi,
at least there is a patch that should have fixed it.I'm still seeing this one:
2011-12-16 17:14:53.638722 pg v1170309: 7808 pgs: 7807 active+clean, 1active+clean+scrubbing; 15279 MB data, 47262 MB used, 73838 GB / 74520 GB avail
In this case PG "2.688" is in scrubbing state and is staying that way.
I'm running v0.39, not the latest master.
Any suggestions to trace this one down?
Wido
Quoted 21 lines
Am 15.12.2011 17:38, schrieb Martin Mailand:
Quoted 11 lines
Hi Wido,
but wasn't that fixed a few weeks ago?-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 4 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Quoted 7 lines
Quoted 1 line
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.htmlQuoted 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.htmlQuoted 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
Hi Samuel
I think I am seeing it now.
root@s-brick-003:~# ceph pg dump|grep -i scrub pg_stat objects mip degr unf kb bytes log disklog state v reported up acting last_scrub 0.6 0 0 0 0 0 0 0 0 active+clean+scrubbing 0'0 60'156 [6,2] [6,2] 0'0 2011-12-20 14:44:55.787529 root@s-brick-003:~# ceph -v ceph version 0.39-171-gdcedda8 (commit:dcedda84d0e1f69af985c301276c67c1b11e7efc) root@s-brick-003:~#
I also had an osd crash and hit this (Assertion: ./messages/MOSDRepScrub.h: 64: FAILED assert(v == 0)), see my other email for more information.
-martin
Am 16.12.2011 22:17, schrieb Samuel Just:
Quoted 4 lines
In master,
061e7619aacf60a828e0ce84a108d5a0bea247c6may fix the problem. If not,5274e88d2cb8c0449a4ecd1ff0cf8bb0af2cfc97includes some asserts that may give us a clue as to how this is happening. -Sam
Quoted 2 lines · Martin Mailand
Hi Wido,
but wasn't that fixed a few weeks ago?
I'm not sure. I think I saw it not so long ago.
My cluster just got a upgrade to 0.39, so everything got a restart. I'll keep an eye out for blocking scrubs.
Wido
Quoted 9 lines
-martin
Am 15.12.2011 17:33, schrieb Wido den Hollander:
Quoted 4 lines
Yes, from what I've seen it will block indefinitely until you restart one of the OSDs who are member of the PG.
Wido
Am Donnerstag, 15. Dezember 2011, 08:30:26 schrieben Sie:
Quoted 3 lines
'ceph pg dump' will tell you the status (active/clean/scrubbing/etc) for each pg. Does the same pg remain in state active+clean+scrubbing for more than 10 minutes?
Well, I used ceph -s, which only gave me a summary, but there definitely was a PG that was in active+clean+scrubbing for a long time (a lot longer than 10 minutes), and remained so until I restarted one of the osds.
Unfortunately I don't know how to reliably reproduce the problem, so I can't check now...
Guido
Quoted 10 lines · Guido Winkelmann
Am Donnerstag, 15. Dezember 2011, 08:30:26 schrieben Sie:
Quoted 3 lines
'ceph pg dump' will tell you the status (active/clean/scrubbing/etc) for each pg. Does the same pg remain in state active+clean+scrubbing for more than 10 minutes?
Well, I used ceph -s, which only gave me a summary, but there definitely was a PG that was in active+clean+scrubbing for a long time (a lot longer than 10 minutes), and remained so until I restarted one of the osds.
Unfortunately I don't know how to reliably reproduce the problem, so I can't check now...
When I hit that bug, I was able to trigger it (more easily) by setting:
osd scrub max interval = 120
in the [osd] section in ceph.conf, forcing the cluster to send pg scrubs more often.
Now, if you stress the cluster a bit (some heavy I/O), coupled with singe OSD restarts, I think you could be able to trigger it.
Btw, I was using the rbd in-kernel driver.
Some info from the debugging I did, I think that at some point after setting finalizing_scrub = true, it turns out that (last_update_applied != info.last_update), but the scrub operation is never requeued by op_applied for some reason, and so the PG is stuck as scrubbing.
Quoted 6 lines
Guido
--
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
Signature · 2 lines
Stratos Psomadakis <[email protected]>
This is likely the problem. I'll try to reproduce it today. (Meant to post this to the list the first time)
-Sam
Quoted 32 lines · Stratos Psomadakis
Quoted 10 lines · Guido Winkelmann
Am Donnerstag, 15. Dezember 2011, 08:30:26 schrieben Sie:
Quoted 3 lines
'ceph pg dump' will tell you the status (active/clean/scrubbing/etc) for each pg. Does the same pg remain in state active+clean+scrubbing for more than 10 minutes?
Well, I used ceph -s, which only gave me a summary, but there definitely was a PG that was in active+clean+scrubbing for a long time (a lot longer than 10 minutes), and remained so until I restarted one of the osds.
Unfortunately I don't know how to reliably reproduce the problem, so I can't check now...
When I hit that bug, I was able to trigger it (more easily) by setting:
osd scrub max interval = 120
in the [osd] section in ceph.conf, forcing the cluster to send pg scrubs more often.Now, if you stress the cluster a bit (some heavy I/O), coupled with singe OSD restarts, I think you could be able to trigger it.
Btw, I was using the rbd in-kernel driver.
Some info from the debugging I did, I think that at some point after setting
finalizing_scrub= true, it turns out that (last_update_applied!= info.last_update), but the scrub operation is never requeued byop_appliedfor some reason, and so the PG is stuck as scrubbing.Quoted 6 lines
Guido
--
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
--
Stratos Psomadakis
<[email protected]>
--
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
Hi Guido,
I am running ceph version 0.39-37-g54758ab (commit:54758abccf429122c1bc3bce6d01bc33f1cfe238) on my cluster and I do not see this problem. Do you use the qemu rbd block driver or the kernel mount? How did you install ceph, via the packages?
-martin
Am 15.12.2011 16:45, schrieb Guido Winkelmann:
Quoted 33 lines
Am Donnerstag, 15. Dezember 2011, 17:32:25 schrieben Sie:
Quoted 17 lines · Guido Winkelmann
Quoted 16 lines
Hi,
I've got a small ceph cluster with one mon, one mds and two osds (all on the same machine, for now), that I want to use as a block- and file storage backend for qemu machine virtualisation.
I found that read access to some of the rbd images, or parts of some of them sometimes blocks indefinitely, usually after the image has been sitting around untouched for a while, for example over night. This has the effect that virtual machines that try to access their disks as well as rbd commands like "rbd cp" will just hang indefinitely.
I found that these blocks can usually be "fixed" by restarting one of the>
osds.Quoted 7 lines
Quoted 5 lines
The last time this happened, ceph -s reported one of the osds to be in state "active+clean+scrubbing". (I'm afraid I don't have the complete output from ceph -s anymore.)
Does anybody have any idea what could be going wrong here?
I think it's fixed in v0.39
I'm already using 0.39, so, no. (Should have mentioned that to start with...)
Guido
--
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 Donnerstag, 15. Dezember 2011, 17:31:22 schrieb Martin Mailand:
Quoted 6 lines
Hi Guido,
I am running ceph version 0.39-37-g54758ab (commit:54758abccf429122c1bc3bce6d01bc33f1cfe238) on my cluster and I do not see this problem. Do you use the qemu rbd block driver or the kernel mount?
How did you install ceph, via the packages?
I downloaded the tarball from
http://ceph.newdream.net/download/ untarred it, and did the usual ./configure ; make ; make install. Though if I were to do it again, I would prefer rpmbuild now.
The host system is CentOS 6, with the Kernel upgraded to 3.1.1, btw.
Guido
Am Donnerstag, 15. Dezember 2011, 17:31:22 schrieb Martin Mailand:
Quoted 5 lines
Hi Guido,
I am running ceph version 0.39-37-g54758ab (commit:54758abccf429122c1bc3bce6d01bc33f1cfe238) on my cluster and I do not see this problem. Do you use the qemu rbd block driver or the kernel mount?
Both - Kernel mount for the Cephfs, qemu rbd driver for the actual qemu volumes.
Guido