Skip to contentSkip to conversation

Mimic offline problem

DISCUSSION by morphin 5 participants 27 messages Oct 2, 2018 – Oct 5, 2018 27 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 4C31C6EC-573D-42AD-BC6C-F7F103DBEC16-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

by morphin

author
#2 lore raw

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CAE-AtHrjekCcLmO7MUB86XG7VH+bBt6yJH+ZRe7Wnh3tKB8JWw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 42 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 32 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Quoted 8 lines
Quoted 4 lines

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CANrNMwUaER4e97schGN+KnB_6aNF6SYpPEFvLD=qcpp1eeWEJg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 44698713-3F6C-451D-B67B-2053D1B30557-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#8 lore raw

(Didn't follow the whole story, so you might have already answered that) Did you check what the OSDs are doing during the period of high disk utilization?
As in:

* running perf top
* sampling a few stack traces from procfs or gdb
* or just high log settings
* running "status" on the admin socket locally

Paul

Am Di., 2. Okt. 2018 um 20:02 Uhr schrieb Goktug Yildirim <[email protected]>:

Quoted 91 lines

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Signature · 13 lines
Paul Emmerich

Looking for help with your Ceph cluster? Contact us at https://croit.io

croit GmbH
Freseniusstr. 31h
81247 München
www.croit.io
Tel: +49 89 1896585 90
_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CAD9yTbHM6A0j4ghVzd6y=taoUaY-tZ+pfmhB=ZkVr+v-P-C7VQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#10 lore raw

Thanks for the reply! My answers are inline.

Quoted 8 lines · Paul Emmerich

(Didn't follow the whole story, so you might have already answered that) Did you check what the OSDs are doing during the period of high disk utilization?
As in:

* running perf top

Did not cross my mind. Thanks for the pop-up! Will do.

Quoted 1 line

* sampling a few stack traces from procfs or gdb

I have strace for OSD. https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 1 line

* or just high log settings

They have default debug settings and also log disk is different. Indeed I have a fairly fast system. OS disks are Mirror SSD, WALs+DBs are mirrored NvME and OSD disks are NL-SAS. All hardware came from Dell (R730). Also 28 Core and 256GB RAM per server and 2x10Ge cluster and 2x10Gbe for public networks.

Quoted 1 line

* running "status" on the admin socket locally

I can run daemon and see status. I must have checked it but will do again.

Quoted 90 lines

Paul

Am Di., 2. Okt. 2018 um 20:02 Uhr schrieb Goktug Yildirim <[email protected]>:

Quoted 84 lines

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 59 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 44 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 34 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Quoted 19 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Signature · 9 lines
Paul Emmerich

Looking for help with your Ceph cluster? Contact us at https://croit.io

croit GmbH
Freseniusstr. 31h
81247 München
www.croit.io
Tel: +49 89 1896585 90

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#11 lore raw
In reply to a message not in the archive

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.

Quoted 15 lines · Goktug Yildirim

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

Quoted 76 lines

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CANrNMwW-RiVxtUnjTrZpiRXi6k06LxaeqRCqbXiuwwjTStWBhA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#13 lore raw

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 5 lines · Darius Kasparavičius

Hi,

Quoted 102 lines

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.

Quoted 91 lines · Goktug Yildirim

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): F96A1781-7767-40A4-B814-C59C0CDD5E68-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#15 lore raw

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Quoted 117 lines

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 107 lines · Darius Kasparavičius

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.

Quoted 91 lines · Goktug Yildirim

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): E516BA34-165C-4542-B53D-B022B913874A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#17 lore raw

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

Quoted 124 lines · Göktuğ Yıldırım

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Quoted 117 lines

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 107 lines · Darius Kasparavičius

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.

Quoted 91 lines · Goktug Yildirim

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810030311230.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#19 lore raw

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing <https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing>

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/ <https://paste.ubuntu.com/p/8sQhfPDXnW/>

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/ <https://paste.ubuntu.com/p/g5t8xnrjjZ/>

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/ <https://paste.ubuntu.com/p/zYqsN5T95h/>

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/ <https://paste.ubuntu.com/p/Pgf3mcXXX8/>

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/ <https://paste.ubuntu.com/p/YCdtfh5qX8/>

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/ <https://paste.ubuntu.com/p/Z2JrrBzzkM/>

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/ <https://paste.ubuntu.com/p/RcGmsVKmzG/>

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/ <https://paste.ubuntu.com/p/ZfRD5ZtvpS/>
https://paste.ubuntu.com/p/pkRdVjCH4D/ <https://paste.ubuntu.com/p/pkRdVjCH4D/>
https://paste.ubuntu.com/p/zJTf2fzSj9/ <https://paste.ubuntu.com/p/zJTf2fzSj9/>
https://paste.ubuntu.com/p/xpJRK6YhRX/ <https://paste.ubuntu.com/p/xpJRK6YhRX/>
https://paste.ubuntu.com/p/SY3576dNbJ/ <https://paste.ubuntu.com/p/SY3576dNbJ/>
https://paste.ubuntu.com/p/smyT6Y976b/ <https://paste.ubuntu.com/p/smyT6Y976b/>

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing <https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing>

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing <https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing>

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180
Quoted 17 lines · Sage Weil

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

Quoted 128 lines

sage

Quoted 123 lines · Göktuğ Yıldırım

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Quoted 117 lines

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 107 lines · Darius Kasparavičius

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.

Quoted 91 lines · Goktug Yildirim

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

Quoted 65 lines · Darius Kasparavičius

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin

Quoted 50 lines · <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Quoted 30 lines

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 6 lines

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 683EC5EE-8112-4D9F-B4A8-DBCDE46A7AD8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#21 lore raw

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 217 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech (as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some tools to check health and also repair. But there are limited documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Quoted 12 lines

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CANrNMwVcE=Zyp6YbAk-1MB0zYYUt9_tqZSxkTBF5QVShjGqPZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#23 lore raw

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 29 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1
Quoted 235 lines

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 229 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): F58B4646-D64C-469E-BA46-4ED6B5C96F8A-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#25 lore raw

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 274 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 264 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 229 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810031443440.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#27 lore raw

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Quoted 15 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

Quoted 281 lines

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 273 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 264 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 229 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 8C3EC489-68A9-4622-A283-CCAB9AE68D93-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#29 lore raw
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 288 lines
Quoted 288 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 263 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 255 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 220 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

Quoted 12 lines
Quoted 10 lines
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810031543160.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#31 lore raw

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Quoted 48 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

Quoted 301 lines

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 267 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 224 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): C10AD823-76D4-4E2B-BE2E-BF434373C81B-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#33 lore raw
Quoted 3 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
    "last_scan_epoch": 16,   <--- but with a recent epoch here
    "creating_pgs": [],
    "queue": [],
    "created_pools": [
        66
    ]
}

sage

Quoted 343 lines
Quoted 343 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 285 lines
Quoted 285 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 260 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 252 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 217 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 7C03273B-DC38-40CC-99F4-AFECE672D80A-DtrUWsE0is3QT0dZR+AlfA@public.gmane.org

#36 lore raw
Quoted 6 lines · Göktuğ Yıldırım

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 7 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}
Quoted 393 lines

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 269 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 224 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810031826290.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#38 lore raw

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 555 lines · Göktuğ Yıldırım
Quoted 3 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/

get osd_pg_creating creating > dump

Quoted 1 line
2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column

families: [default]

Quoted 2 lines

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 10 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}

You can find the "dump" link below.

dump:

https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Quoted 6 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 2 lines
Quoted 2 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure

out and dumping the current value as you say.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once

you

Quoted 5 lines
Quoted 5 lines

have it.

The new replacement one should look like this (when hexdump -C'd):

00000000 02 01 18 00 00 00 10 00 00 00 00 00 00 00 01 00

|................|
> > 00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00
|..B...........|
Quoted 3 lines
Quoted 3 lines

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch,

in

Quoted 1 line
Quoted 1 line

hex, little endian (least significant byte first), in place of the

0x10

Quoted 16 lines
Quoted 16 lines

that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Sage Weil
Quoted 3 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created

months ago.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable.

So we deleted them.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

After we create another cephfs fs and pools we started MDS and it

stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client

writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

legacy client fscid: -1

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created

months ago. Then I guess there is something hidden out there.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming

you

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not

cheap for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

your aged cluster.

In any case, there is a way to clear those out of the mon, but it's

a bit

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import

FILE dump_json

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

5. hex edit the structure to remove all of the creating pgs, and

adds pool

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

structure out and dumping the current value?

The code to refer to to understand the structure is

src/mon/CreatingPGs.h

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

encode/decode methods.

sage

Quoted 2 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op

osd_pg_create(e72883

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196

66.124:60196

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg

create is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

one of the last remaining places where the OSDs need to look at a

full

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

history of map changes between then and the current map epoch. In

this

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

case, the pool was created in 60196 and it is now 72883, ~12k

epochs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

later.

What is this new pool for? Is it still empty, and if so, can we

delete

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

it? If yes, I'm ~70% sure that will then get cleaned out at the

mon end

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

and restarting the OSDs will make these pg_creates go away.

s

Quoted 7 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <

https://paste.ubuntu.com/p/MtvTr5HYW4/>

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <

https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

On 3 Oct 2018, at 14:27, Darius Kasparavičius <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hello,

You can also reduce the osd map updates by adding this to your

ceph

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

config file. "osd crush update on start = false". This should

remove

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0

(leader)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

e14 handle_command mon_command({"prefix": "osd crush set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1

2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log

[INF] :

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from='osd.47 10.10.112.17:6803/64652' entity='osd.47'

cmd=[{"prefix":

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch

2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0

(leader)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

e14 handle_command mon_command({"prefix": "osd crush

create-or-move",

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8", "root=default"]} v 0) v1

2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log

[INF] :

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from='osd.47 10.10.112.17:6803/64652' entity='osd.47'

cmd=[{"prefix":

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch

2018-10-03 14:03:21.538 7fe15eddb700  0

mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush

item name

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}

2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full

prune

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

enabled

Quoted 4 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is

going to be resolved.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The problem started when 7 server crashed same time and they

came back after ~5 minutes.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Two of our 3 mon services were restarted in this crash. Since

mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

After 9 days we still see 3400-3500 active+clear PG. But in the

end we have so many STUCK request and our cluster can not heal itself.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

When we set noup flag, OSDs can catch up epoch easily. But when

we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

I/O load on all of my OSD disks are at around %95 utilization

and never ends. CPU and RAM usage are OK.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our

goal was the eliminate older PG's and leaving cluster with good ones.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

With replication size=1 we saw "%13 PGS not active”. But it

didn’t solve our problem.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Of course we have to save %100 of data. But we feel like even

saving %50 of our data will be make us very happy right now.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is what happens when the cluster starts. I believe it

explains the whole story very nicely.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s &&

ceph health”:

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This is OSD video with debug osd = 20 and debug ms = 1 and

debug_filestore = 20.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is OSD logfile with debug osd = 20 and debug ms = 1 and

debug_filestore = 20.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

As far as I understand OSD catchs up with the mon epoch and

exceeds mon epoch somehow??

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg

66.f8 e60196@2018-09-28 23:57:08.251119

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642

build_initial_pg_history 66.f8 created 60196

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map

60196 - loading and decoding 0x19da8400

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process 66.d8 to_process <> waiting <> waiting_peering {}

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642
epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent:
72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642
epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642

pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]]
do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642

queue_want_up_thru want 72642 <= queued 72642, currently 72206

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process empty q, waiting

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642

add_map_bl 60196 50012 bytes

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map

60197 - loading and decoding 0x19da8880

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642

add_map_bl 60197 50012 bytes

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map

60198 - loading and decoding 0x19da9180

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Sage Weil

osd_find_best_info_ignore_history_les is a dangerous option and

you should

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

only use it in very specific circumstances when directed by a

developer.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

In such cases it will allow a stuck PG to peer. But you're not

getting to

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all

need to

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

catch up. The way to tell if they are behind is by looking at

the 'ceph

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

daemon osd.NNN status' output and comparing to the latest

OSDMap epoch tha

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

t the mons have. Were they really caught up when you unset

noup?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I'm just catching up and haven't read the whole thread but I

haven't seen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

anything that explains why teh OSDs are dong lots of disk IO.

Catching up

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

on maps could explain it but not why they wouldn't peer once

they were all

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true

?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is that be usefull here? There is such a less information about

it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Goktug Yildirim <[email protected]> şunları yazdı (2

Eki 2018 22:11):

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi,

Indeed I left ceph-disk to decide the wal and db partitions

when I read somewhere that that will do the proper sizing.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

For the blustore cache size I have plenty of RAM. I will

increase 8GB for each and decide a more calculated number after cluster
settles.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

For the osd map loading I’ve also figured it out. And it is in

loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I am not forcing jmellac or anything else really. I have a very

standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi,

I can see some issues from the osd log file. You have an

extremely low

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

size db and wal partitions. Only 1GB for DB and 576MB for wal.

I would

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

recommend cranking up rocksdb cache size as much as possible.

If you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

have RAM you can also increase bluestores cache size for hdd.

Default

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

is 1GB be as liberal as you can without getting OOM kills. You

also

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

have lots of osd map loading and decoding in the log. Are you

sure all

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after

upgrading to

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f

query” does stucks and wait forever since OSD is unresponsive.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

We are certain that OSD gets unresponsive as soon as it UP. And

we are certain that OSD responds again after its disk utilization stops.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It

takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 &

OSD2 starts %95 disk utilization. This takes 17 minutes to finish.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* Now start OSD3 and it is the same. All OSDs start high I/O

and it takes 25 mins to settle.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* If you happen to start 5 of them at the same all of the OSDs

start high I/O again. And it takes 1 hour to finish.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

So in the light of these findings we flagged noup, started all

OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

One can think that is a lot of data there to scan. But it is

just 33TB.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the

same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hello,

Currently you have 15 objects missing. I would recommend

finding them

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

and making backups of them. Ditch all other osds that are

failing to

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster

and see

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

if it stabilises. If it stabilises leave these setting if not

turn

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

them back on.
Now get some of the pg's that are blocked and querry the pgs to

check

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

why they are blocked. Try removing as much blocks as possible

and then

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

remove the norebalance/norecovery flags and see if it starts to

fix

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat

preview tech

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There

are some

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt,

22:55

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6

days since this cluster is offline. The long short story is here:
http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I’ve also CC’ed developers since I believe this is a bug. If

this is not to correct way I apology and please let me know.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

For the 6 days lots of thing happened and there were some

outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

However the most certain diagnosis is this: each OSD causes

very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

So due to unresponsive OSDs cluster does not settle. This is

our problem!

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is the one we are very sure of. But we are not sure of the

reason.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours

ago.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Some of the OSDs are not started. However it didnt make any

difference when all of them was online.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont

caught from eye.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Quoted 20 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as

we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Quoted 13 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): CACz15iKdK47N0mBJrRyDeEx7BH-uRKmvZ+OJ6Cc6u6-qxTeA6w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#40 lore raw

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 703 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand
old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 4 lines · Göktuğ Yıldırım
Quoted 3 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb

/var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/

Quoted 4 lines

get osd_pg_creating creating > dump

Quoted 1 line
2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column

families: [default]

Quoted 1 line
Quoted 19 lines
Quoted 1 line

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 10 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}

You can find the "dump" link below.

dump:

https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Quoted 6 lines
Quoted 6 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 2 lines
Quoted 2 lines · Goktug Yildirim

We are starting to work on it. First step is getting the

structure

Quoted 7 lines

out and dumping the current value as you say.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach

once

Quoted 4 lines

you

Quoted 3 lines
Quoted 3 lines

have it.

The new replacement one should look like this (when hexdump

-C'd):

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

00000000 02 01 18 00 00 00 10 00 00 00 00 00 00 00 01 00

|................|
> > 00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00
|..B...........|
Quoted 3 lines
Quoted 3 lines

0000001e

...except that from byte 6 you want to put in a recent OSDMap

epoch,

Quoted 2 lines

in

Quoted 1 line
Quoted 1 line

hex, little endian (least significant byte first), in place of

the

Quoted 4 lines

0x10

Quoted 3 lines
Quoted 3 lines

that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode

dump_json

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines · Sage Weil
Quoted 3 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool

created

Quoted 5 lines

months ago.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was

unusable.

Quoted 2 lines

So we deleted them.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

After we create another cephfs fs and pools we started MDS and

it

Quoted 1 line

stucked on creation. So we stopped MDS and removed fs and fs pools.

Right

Quoted 7 lines

now we do not have MDS running nor we have cephfs related things.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client

writeable ranges,3=default file layouts on dirs,4=dir inode in

separate

Quoted 4 lines

object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

legacy client fscid: -1

Quoted 11 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created

months ago. Then I guess there is something hidden out there.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is

an old

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

pool... did you perhaps run force_create_pg at some point?

Assuming

Quoted 2 lines

you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

didn't, I think this is a bug in the process for rebuilding the

mon

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

store.. one that doesn't normally come up because the impact is

this

Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

osdmap scan that is cheap in our test scenarios but clearly not

cheap for

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

your aged cluster.

In any case, there is a way to clear those out of the mon, but

it's

Quoted 8 lines

a bit

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t

import

Quoted 2 lines

FILE dump_json

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

5. hex edit the structure to remove all of the creating pgs,

and

Quoted 7 lines

adds pool

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by

getting

Quoted 12 lines

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

structure out and dumping the current value?

The code to refer to to understand the structure is

src/mon/CreatingPGs.h

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

encode/decode methods.

sage

Quoted 2 lines
Quoted 9 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op

osd_pg_create(e72883

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196

66.124:60196

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196

66.271:60196

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

66.2d1:60196 66.47a:68641) initiated 2018-10-03

16:20:01.915916

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

You are in the midst of creating new pgs, and unfortunately

pg

Quoted 2 lines

create is

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

one of the last remaining places where the OSDs need to look

at a

Quoted 2 lines

full

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

history of map changes between then and the current map

epoch. In

Quoted 6 lines

this

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

case, the pool was created in 60196 and it is now 72883, ~12k

epochs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

later.

What is this new pool for? Is it still empty, and if so, can

we

Quoted 2 lines

delete

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

it? If yes, I'm ~70% sure that will then get cleaned out at

the

Quoted 7 lines

mon end

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

and restarting the OSDs will make these pg_creates go away.

s

Quoted 2 lines · Goktug Yildirim
Quoted 11 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <

https://paste.ubuntu.com/p/MtvTr5HYW4/>

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <

https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

On 3 Oct 2018, at 14:27, Darius Kasparavičius

<[email protected]>

Quoted 6 lines
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hello,

You can also reduce the osd map updates by adding this to

your

Quoted 2 lines

ceph

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

config file. "osd crush update on start = false". This

should

Quoted 8 lines

remove

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0

(leader)

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

e14 handle_command mon_command({"prefix": "osd crush set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1

2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit)

log

Quoted 4 lines

[INF] :

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from='osd.47 10.10.112.17:6803/64652' entity='osd.47'

cmd=[{"prefix":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"osd crush set-device-class", "class": "hdd", "ids":

["47"]}]:

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

dispatch

2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0

(leader)

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

e14 handle_command mon_command({"prefix": "osd crush

create-or-move",

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8", "root=default"]} v 0) v1

2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit)

log

Quoted 4 lines

[INF] :

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

from='osd.47 10.10.112.17:6803/64652' entity='osd.47'

cmd=[{"prefix":

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"osd crush create-or-move", "id": 47, "weight":3.6396,

"args":

Quoted 18 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

["host=SRV-SEKUARK8", "root=default"]}]: dispatch

2018-10-03 14:03:21.538 7fe15eddb700  0

mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush

item name

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}

2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full

prune

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

enabled

Quoted 4 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident

is

Quoted 3 lines

going to be resolved.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The problem started when 7 server crashed same time and

they

Quoted 3 lines

came back after ~5 minutes.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Two of our 3 mon services were restarted in this crash.

Since

Quoted 1 line

mon services are enabled they should be started nearly at the same

time. I

Quoted 1 line

dont know if this makes any difference but some of the guys on IRC

told it

Quoted 1 line

is required that they start in order not at the same time. Otherwise

it

Quoted 3 lines

could break things badly.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

After 9 days we still see 3400-3500 active+clear PG. But

in the

Quoted 1 line

end we have so many STUCK request and our cluster can not heal

itself.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

When we set noup flag, OSDs can catch up epoch easily. But

when

Quoted 2 lines

we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

I/O load on all of my OSD disks are at around %95

utilization

Quoted 2 lines

and never ends. CPU and RAM usage are OK.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

OSDs get stuck that we even can't run “ceph pg osd.0

query”.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Also we tried to change RBD pool replication size 2 to 1.

Our

Quoted 2 lines

goal was the eliminate older PG's and leaving cluster with good ones.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

With replication size=1 we saw "%13 PGS not active”. But

it

Quoted 3 lines

didn’t solve our problem.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Of course we have to save %100 of data. But we feel like

even

Quoted 6 lines

saving %50 of our data will be make us very happy right now.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is what happens when the cluster starts. I believe it

explains the whole story very nicely.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s

&&

Quoted 27 lines

ceph health”:

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

This is OSD video with debug osd = 20 and debug ms = 1 and

debug_filestore = 20.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is OSD logfile with debug osd = 20 and debug ms = 1

and

Quoted 3 lines

debug_filestore = 20.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

As far as I understand OSD catchs up with the mon epoch

and

Quoted 7 lines

exceeds mon epoch somehow??

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg

66.f8 e60196@2018-09-28 23:57:08.251119

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642

build_initial_pg_history 66.f8 created 60196

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642

get_map

Quoted 6 lines

60196 - loading and decoding 0x19da8400

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process 66.d8 to_process <> waiting <> waiting_peering {}

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642
epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)

queued

Quoted 2 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process 66.d8 to_process <OpQueueItem(66.d8

PGPeeringEvent(epoch_sent:

Quoted 5 lines

72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642
epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)

pg

Quoted 2 lines

0xb579400

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch:

72642

Quoted 2 lines

pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206

les/c/f

Quoted 1 line

72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642

pi=[72206,72642)/1

Quoted 11 lines

crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]]
do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642

queue_want_up_thru want 72642 <= queued 72642, currently 72206

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1)

_process empty q, waiting

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642

add_map_bl 60196 50012 bytes

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642

get_map

Quoted 4 lines

60197 - loading and decoding 0x19da8880

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642

add_map_bl 60197 50012 bytes

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642

get_map

Quoted 4 lines

60198 - loading and decoding 0x19da9180

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]>

Quoted 2 lines · wrote:
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

osd_find_best_info_ignore_history_les is a dangerous

option and

Quoted 2 lines

you should

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

only use it in very specific circumstances when directed

by a

Quoted 2 lines

developer.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

In such cases it will allow a stuck PG to peer. But

you're not

Quoted 2 lines

getting to

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

that point...you're seeing some sort of resource

exhaustion.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

The noup trick works when OSDs are way behind on maps and

all

Quoted 2 lines

need to

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

catch up. The way to tell if they are behind is by

looking at

Quoted 4 lines

the 'ceph

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

daemon osd.NNN status' output and comparing to the latest

OSDMap epoch tha

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

t the mons have. Were they really caught up when you

unset

Quoted 3 lines

noup?

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I'm just catching up and haven't read the whole thread but

I

Quoted 2 lines

haven't seen

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

anything that explains why teh OSDs are dong lots of disk

IO.

Quoted 2 lines

Catching up

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

on maps could explain it but not why they wouldn't peer

once

Quoted 9 lines

they were all

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les =

true

Quoted 2 lines

?

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Is that be usefull here? There is such a less information

about

Quoted 3 lines

it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Goktug Yildirim <[email protected]> şunları yazdı

(2

Quoted 5 lines

Eki 2018 22:11):

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi,

Indeed I left ceph-disk to decide the wal and db

partitions

Quoted 3 lines

when I read somewhere that that will do the proper sizing.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

For the blustore cache size I have plenty of RAM. I will

increase 8GB for each and decide a more calculated number after

cluster

Quoted 3 lines

settles.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

For the osd map loading I’ve also figured it out. And it

is in

Quoted 1 line

loop. For that reason I started cluster with noup flag and waited

OSDs to

Quoted 1 line

reach the uptodate epoch number. After that I unset noup. But I did

not pay

Quoted 3 lines

attention to manager logs. Let me check it, thank you!

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I am not forcing jmellac or anything else really. I have a

very

Quoted 4 lines

standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

On 2 Oct 2018, at 21:53, Darius Kasparavičius

<[email protected]>

Quoted 8 lines
Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi,

I can see some issues from the osd log file. You have an

extremely low

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

size db and wal partitions. Only 1GB for DB and 576MB for

wal.

Quoted 2 lines

I would

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

recommend cranking up rocksdb cache size as much as

possible.

Quoted 2 lines

If you

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

have RAM you can also increase bluestores cache size for

hdd.

Quoted 2 lines

Default

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

is 1GB be as liberal as you can without getting OOM kills.

You

Quoted 2 lines

also

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

have lots of osd map loading and decoding in the log. Are

you

Quoted 2 lines

sure all

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

monitors/managers/osds are up to date? Plus make sure you

aren't

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

forcing jemalloc loading. I had a funny interaction after

upgrading to

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f

query” does stucks and wait forever since OSD is unresponsive.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

We are certain that OSD gets unresponsive as soon as it

UP. And

Quoted 1 line

we are certain that OSD responds again after its disk utilization

stops.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts.

It

Quoted 2 lines

takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* While OSD1 is “up" start OSD2. As soon as OSD2 starts

OSD1 &

Quoted 2 lines

OSD2 starts %95 disk utilization. This takes 17 minutes to finish.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* Now start OSD3 and it is the same. All OSDs start high

I/O

Quoted 2 lines

and it takes 25 mins to settle.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

* If you happen to start 5 of them at the same all of the

OSDs

Quoted 3 lines

start high I/O again. And it takes 1 hour to finish.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

So in the light of these findings we flagged noup, started

all

Quoted 1 line

OSDs. At first there was no I/O. After 10 minutes we unset noup. All

of 168

Quoted 1 line

OSD started to make high I/O. And we thought that if we wait long

enough it

Quoted 1 line

will finish & OSDs will be responsive again. After 24hours they did

not

Quoted 2 lines

because I/O did not finish or even slowed down.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

One can think that is a lot of data there to scan. But it

is

Quoted 3 lines

just 33TB.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

So at short we dont know which PG is stuck so we can

remove it.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

However we met an weird thing half an hour ago. We

exported the

Quoted 1 line

same PG from two different OSDs. One was 4.2GB and the other is

500KB! So

Quoted 1 line

we decided to export all OSDs for backup. Then we will delete strange

sized

Quoted 1 line

ones and start the cluster all over. Maybe then we could solve the

stucked

Quoted 6 lines

or unfound PGs as you advise.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius

<[email protected]>

Quoted 9 lines
Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hello,

Currently you have 15 objects missing. I would recommend

finding them

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

and making backups of them. Ditch all other osds that are

failing to

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

start and concentrate on bringing online those that have

missing

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

objects. Then slowly turn off nodown and noout on the

cluster

Quoted 2 lines

and see

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

if it stabilises. If it stabilises leave these setting if

not

Quoted 3 lines

turn

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

them back on.
Now get some of the pg's that are blocked and querry the

pgs to

Quoted 2 lines

check

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

why they are blocked. Try removing as much blocks as

possible

Quoted 2 lines

and then

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

remove the norebalance/norecovery flags and see if it

starts to

Quoted 9 lines

fix

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat

preview tech

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

(as for Redhat).
So it could be best to checkout bluestore and rocksdb.

There

Quoted 2 lines

are some

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

tools to check health and also repair. But there are

limited

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018

Pzt,

Quoted 7 lines

22:55

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s

been 6

Quoted 2 lines

days since this cluster is offline. The long short story is here:

http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

I’ve also CC’ed developers since I believe this is a bug.

If

Quoted 4 lines

this is not to correct way I apology and please let me know.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

For the 6 days lots of thing happened and there were some

outcomes about the problem. Some of them was misjudged and some of

them are

Quoted 2 lines

not looked deeper.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

However the most certain diagnosis is this: each OSD

causes

Quoted 1 line

very high disk I/O to its bluestore disk (WAL and DB are fine). After

that

Quoted 1 line

OSDs become unresponsive or very very less responsive. For example

"ceph

Quoted 3 lines

tell osd.x version” stucks like for ever.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

So due to unresponsive OSDs cluster does not settle. This

is

Quoted 3 lines

our problem!

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is the one we are very sure of. But we are not sure

of the

Quoted 6 lines

reason.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24

hours

Quoted 2 lines

ago.

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Some of the OSDs are not started. However it didnt make

any

Quoted 3 lines

difference when all of them was online.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Here is the debug=20 log of an OSD which is same for all

others:

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it

wont

Quoted 4 lines

caught from eye.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This the full log the same OSD.

https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Quoted 20 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

Recently we hear more to uprade mimic. I hope none get

hurts as

Quoted 1 line

we do. I am sure we have done lots of mistakes to let this happening.

And

Quoted 1 line

this situation may be a example for other user and could be a

potential bug

Quoted 14 lines

for ceph developer.

Quoted 13 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): f9cf0773-cce5-4989-8f78-de3a01080450-2ueSQiBKiTY7tOexoI0I+QC/[email protected]

#42 lore raw

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 269 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 224 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour. I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK. OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones. With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should only use it in very specific circumstances when directed by a developer. In such cases it will allow a stuck PG to peer. But you're not getting to that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to catch up. The way to tell if they are behind is by looking at the 'ceph daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen anything that explains why teh OSDs are dong lots of disk IO. Catching up on maps could explain it but not why they wouldn't peer once they were all marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ? Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low size db and wal partitions. Only 1GB for DB and 576MB for wal. I would recommend cranking up rocksdb cache size as much as possible. If you have RAM you can also increase bluestores cache size for hdd. Default is 1GB be as liberal as you can without getting OOM kills. You also have lots of osd map loading and decoding in the log. Are you sure all monitors/managers/osds are up to date? Plus make sure you aren't forcing jemalloc loading. I had a funny interaction after upgrading to mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim <[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive. We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down. One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them and making backups of them. Ditch all other osds that are failing to start and concentrate on bringing online those that have missing objects. Then slowly turn off nodown and noout on the cluster and see if it stabilises. If it stabilises leave these setting if not turn them back on.
Now get some of the pg's that are blocked and querry the pgs to check why they are blocked. Try removing as much blocks as possible and then remove the norebalance/norecovery flags and see if it starts to fix itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin <[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55 tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 5FBAA21A-8B48-4B22-9FE8-0E0766C363D9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#44 lore raw
Quoted 2 lines · Göktuğ Yıldırım

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Excellent, thanks. That looks like it confirms the problem is that teh recovery tool didn't repopulate the creating pgs properly.

If you take that 30 byte file I sent earlier (as hex) and update the osdmap epoch to the latest on the mon, confirm it decodes and dumps properly, and then inject it on the 3 mons, that should get you past this hump (and hopefully back up!).

sage

Quoted 432 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 269 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 224 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810031936110.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#46 lore raw

This is our cluster state right now. I can reach rbd list and thats good! Thanks a lot Sage!!! ceph -s: https://paste.ubuntu.com/p/xBNPr6rJg2/

As you can see we have 2 unfound pg since some of our OSDs can not start. 58 OSD gives different errors. How can I fix these OSD's? If I remember correctly it should not be so much trouble.

These are OSDs' failed logs.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

Quoted 9 lines · Sage Weil
Quoted 2 lines · Göktuğ Yıldırım

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Excellent, thanks. That looks like it confirms the problem is that teh recovery tool didn't repopulate the creating pgs properly.

Quoted 439 lines

If you take that 30 byte file I sent earlier (as hex) and update the osdmap epoch to the latest on the mon, confirm it decodes and dumps properly, and then inject it on the 3 mons, that should get you past this hump (and hopefully back up!).

sage

Quoted 431 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines
{
   "last_scan_epoch": 0,
   "creating_pgs": [],
   "queue": [],
   "created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
  "last_scan_epoch": 16,   <--- but with a recent epoch here
  "creating_pgs": [],
  "queue": [],
  "created_pools": [
      66
  ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 269 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph
config file. "osd crush update on start = false". This should remove
and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700 1
mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune
enabled

On Wed, Oct 3, 2018 at 3:16 PM Goktug Yildirim
<[email protected]> wrote:

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 53664F54-EB52-4E9B-A46C-26C8E27CFE24-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#48 lore raw
Quoted 2 lines · Goktug Yildirim

This is our cluster state right now. I can reach rbd list and thats good! Thanks a lot Sage!!! ceph -s: https://paste.ubuntu.com/p/xBNPr6rJg2/

Progress! Not out of the woods yet, though...

Quoted 6 lines

As you can see we have 2 unfound pg since some of our OSDs can not start. 58 OSD gives different errors. How can I fix these OSD's? If I remember correctly it should not be so much trouble.

These are OSDs' failed logs.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/

These are both failing in rocksdb code, with something like

Can't access /032949.sst: NotFound:

Can you check whether that .sst file actually exists? Might be a weird path issue.

Quoted 2 lines

https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/

These are failing in the rocksdb CheckConstency code. Not sure what to make of that.

Quoted 2 lines

https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

These are failing in BlueStore code. The ceph-blustore-tool fsck may help here, can you give it a shot?

sage

Quoted 442 lines
Quoted 442 lines · Sage Weil
Quoted 2 lines · Göktuğ Yıldırım

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Excellent, thanks. That looks like it confirms the problem is that teh recovery tool didn't repopulate the creating pgs properly.

If you take that 30 byte file I sent earlier (as hex) and update the osdmap epoch to the latest on the mon, confirm it decodes and dumps properly, and then inject it on the 3 mons, that should get you past this hump (and hopefully back up!).

sage

Quoted 424 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 421 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 417 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 407 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 393 lines
{
   "last_scan_epoch": 0,
   "creating_pgs": [],
   "queue": [],
   "created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 379 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
  "last_scan_epoch": 16,   <--- but with a recent epoch here
  "creating_pgs": [],
  "queue": [],
  "created_pools": [
      66
  ]
}

sage

Quoted 346 lines
Quoted 346 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 288 lines
Quoted 288 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 265 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

On 3 Oct 2018, at 14:27, Darius Kasparavičius <[email protected]> wrote:

Hello,

You can also reduce the osd map updates by adding this to your ceph
config file. "osd crush update on start = false". This should remove
and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700 1
mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune
enabled

On Wed, Oct 3, 2018 at 3:16 PM Goktug Yildirim
<[email protected]> wrote:

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

Quoted 9 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): alpine.DEB.2.11.1810040414290.31802-qHenpvqtifaMSRpgCs4c+g@public.gmane.org

#50 lore raw

This is ceph-object-store tool logs for OSD.0.

https://paste.ubuntu.com/p/jNwf4DC46H/

There is something wrong. But we are not sure if we cant use the tool or there is something wrong with OSD.

Quoted 28 lines · Sage Weil
Quoted 2 lines · Goktug Yildirim

This is our cluster state right now. I can reach rbd list and thats good! Thanks a lot Sage!!! ceph -s: https://paste.ubuntu.com/p/xBNPr6rJg2/

Progress! Not out of the woods yet, though...

Quoted 6 lines

As you can see we have 2 unfound pg since some of our OSDs can not start. 58 OSD gives different errors. How can I fix these OSD's? If I remember correctly it should not be so much trouble.

These are OSDs' failed logs.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/

These are both failing in rocksdb code, with something like

Can't access /032949.sst: NotFound:

Can you check whether that .sst file actually exists? Might be a weird path issue.

Quoted 2 lines

https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/

These are failing in the rocksdb CheckConstency code. Not sure what to make of that.

Quoted 459 lines
Quoted 2 lines

https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

These are failing in BlueStore code. The ceph-blustore-tool fsck may help here, can you give it a shot?

sage

Quoted 450 lines
Quoted 449 lines · Sage Weil
Quoted 2 lines · Göktuğ Yıldırım

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Excellent, thanks. That looks like it confirms the problem is that teh recovery tool didn't repopulate the creating pgs properly.

If you take that 30 byte file I sent earlier (as hex) and update the osdmap epoch to the latest on the mon, confirm it decodes and dumps properly, and then inject it on the 3 mons, that should get you past this hump (and hopefully back up!).

sage

Quoted 431 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines

{
"last_scan_epoch": 0,
"creating_pgs": [],
"queue": [],
"created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
 "last_scan_epoch": 16,   <--- but with a recent epoch here
 "creating_pgs": [],
 "queue": [],
 "created_pools": [
     66
 ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883
66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196
66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196
66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is
one of the last remaining places where the OSDs need to look at a full
history of map changes between then and the current map epoch. In this
case, the pool was created in 60196 and it is now 72883, ~12k epochs
later.

What is this new pool for? Is it still empty, and if so, can we delete
it? If yes, I'm ~70% sure that will then get cleaned out at the mon end
and restarting the OSDs will make these pg_creates go away.

s

On Wed, 3 Oct 2018, Goktug Yildirim wrote:

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

On 3 Oct 2018, at 14:27, Darius Kasparavičius <[email protected]> wrote:

Hello,

You can also reduce the osd map updates by adding this to your ceph
config file. "osd crush update on start = false". This should remove
and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700 1
mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune
enabled

On Wed, Oct 3, 2018 at 3:16 PM Goktug Yildirim
<[email protected]> wrote:

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

A message that is not in the archive (sent off-list or not yet received): 71B2ECD8-EECF-48D5-844C-7C80EDD24028-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

#52 lore raw

Quick update here:

The problem with the OSDs that are throwing rocksdb errors (missing SST files) is that ceph-kvstore-tool bluestore-kv ... repair was run on OSDs, and it looks like the rocksdb repair function actually broke the (non-broken) rocksdb instance. I'm not quite sure why that is the case--seems like a pretty big problem for a repair to be unsafe--so that is something we need to follow up on with the rocksdb folks.

The (possible) good news is that the structure of bluefs is such that it looks like we can limit replay of the internal journal and effectively roll back the changes made by repair. That seems to have worked on one OSD at least; need to see if it works on others too.

However, even if all those are fixed, various other low-level ceph-objectstore-tool commands were run on the OSDs and I have a feeling those are going to prevent recovery. :(

Moral of the story: don't run random low-level *-tool commands on your system if you don't know what they do or whether they are needed!

sage

Quoted 496 lines · Goktug Yildirim

This is ceph-object-store tool logs for OSD.0.

https://paste.ubuntu.com/p/jNwf4DC46H/

There is something wrong. But we are not sure if we cant use the tool or there is something wrong with OSD.

Quoted 487 lines · Sage Weil
Quoted 2 lines · Goktug Yildirim

This is our cluster state right now. I can reach rbd list and thats good! Thanks a lot Sage!!! ceph -s: https://paste.ubuntu.com/p/xBNPr6rJg2/

Progress! Not out of the woods yet, though...

Quoted 6 lines

As you can see we have 2 unfound pg since some of our OSDs can not start. 58 OSD gives different errors. How can I fix these OSD's? If I remember correctly it should not be so much trouble.

These are OSDs' failed logs.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/

These are both failing in rocksdb code, with something like

Can't access /032949.sst: NotFound:

Can you check whether that .sst file actually exists? Might be a weird path issue.

Quoted 2 lines

https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/

These are failing in the rocksdb CheckConstency code. Not sure what to make of that.

Quoted 2 lines

https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

These are failing in BlueStore code. The ceph-blustore-tool fsck may help here, can you give it a shot?

sage

Quoted 450 lines
Quoted 449 lines · Sage Weil
Quoted 2 lines · Göktuğ Yıldırım

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Excellent, thanks. That looks like it confirms the problem is that teh recovery tool didn't repopulate the creating pgs properly.

If you take that 30 byte file I sent earlier (as hex) and update the osdmap epoch to the latest on the mon, confirm it decodes and dumps properly, and then inject it on the 3 mons, that should get you past this hump (and hopefully back up!).

sage

Quoted 431 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines

{
"last_scan_epoch": 0,
"creating_pgs": [],
"queue": [],
"created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
 "last_scan_epoch": 16,   <--- but with a recent epoch here
 "creating_pgs": [],
 "queue": [],
 "created_pools": [
     66
 ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 23 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago.
ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2}
legacy client fscid: -1

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines

On 3 Oct 2018, at 16:46, Sage Weil <[email protected]> wrote:

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883
66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196
66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196
66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is
one of the last remaining places where the OSDs need to look at a full
history of map changes between then and the current map epoch. In this
case, the pool was created in 60196 and it is now 72883, ~12k epochs
later.

What is this new pool for? Is it still empty, and if so, can we delete
it? If yes, I'm ~70% sure that will then get cleaned out at the mon end
and restarting the OSDs will make these pg_creates go away.

s

On Wed, 3 Oct 2018, Goktug Yildirim wrote:

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

On 3 Oct 2018, at 14:27, Darius Kasparavičius <[email protected]> wrote:

Hello,

You can also reduce the osd map updates by adding this to your ceph
config file. "osd crush update on start = false". This should remove
and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700 0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700 0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700 1
mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune
enabled

On Wed, Oct 3, 2018 at 3:16 PM Goktug Yildirim
<[email protected]> wrote:

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

#53 lore raw
In reply to a message not in the archive

Also you was asking the RAW output.
I've been trying to fix it for days and I didn't sleep. Forgive the dumb mistakes.

RAW dump output: https://drive.google.com/file/d/1SzFNNjSK9Q_j4iyYJTRqOYuLWJcsFX9C/view?usp=sharing

Göktuğ Yıldırım <[email protected]> şunları yazdı (3 Eki 2018 21:34):

Quoted 4 lines

I'm so sorry about that I missed "out" parameter. My bad.. This is the output: https://paste.ubuntu.com/p/KwT9c8F6TF/

Quoted 430 lines

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 21:13):

Quoted 428 lines

I bet the kvstore output it in a hexdump format? There is another option to get the raw data iirc

Quoted 424 lines · Goktug YILDIRIM

I changed the file name to make it clear.
When I use your command with "+decode" I'm getting an error like this:

ceph-dencoder type creating_pgs_t import DUMPFILE decode dump_json
error: buffer::malformed_input: void creating_pgs_t::decode(ceph::buffer::list::iterator&) no longer understand old encoding version 2 < 111

My ceph version: 13.2.2

3 Eki 2018 Çar, saat 20:46 tarihinde Sage Weil <[email protected]> şunu yazdı:

Quoted 414 lines · Göktuğ Yıldırım
Quoted 6 lines

If I didn't do it wrong, I got the output as below.

ceph-kvstore-tool rocksdb /var/lib/ceph/mon/ceph-SRV-SBKUARK14/store.db/ get osd_pg_creating creating > dump

2018-10-03 20:08:52.070 7f07f5659b80  1 rocksdb: do_open column families: [default]

ceph-dencoder type creating_pgs_t import dump dump_json

Sorry, should be

ceph-dencoder type creating_pgs_t import dump decode dump_json

s

Quoted 400 lines
{
    "last_scan_epoch": 0,
    "creating_pgs": [],
    "queue": [],
    "created_pools": []
}

You can find the "dump" link below.

dump: https://drive.google.com/file/d/1ZLUiQyotQ4-778wM9UNWK_TLDAROg0yN/view?usp=sharing

Sage Weil <[email protected]> şunları yazdı (3 Eki 2018 18:45):

Quoted 384 lines
Quoted 4 lines · Goktug Yildirim

We are starting to work on it. First step is getting the structure out and dumping the current value as you say.

And you were correct we did not run force_create_pg.

Great.

So, eager to see what the current structure is... please attach once you have it.

The new replacement one should look like this (when hexdump -C'd):

00000000  02 01 18 00 00 00 10 00  00 00 00 00 00 00 01 00  |................|
00000010  00 00 42 00 00 00 00 00  00 00 00 00 00 00        |..B...........|

0000001e

...except that from byte 6 you want to put in a recent OSDMap epoch, in hex, little endian (least significant byte first), in place of the 0x10 that is there now. It should dump like this:

$ ceph-dencoder type creating_pgs_t import myfile decode dump_json
{
   "last_scan_epoch": 16,   <--- but with a recent epoch here
   "creating_pgs": [],
   "queue": [],
   "created_pools": [
       66
   ]
}

sage

Quoted 351 lines
Quoted 350 lines · Sage Weil
Quoted 15 lines · Goktug Yildirim

Sage,

Pool 66 is the only pool it shows right now. This a pool created months ago. ceph osd lspools
66 mypool

As we recreated mon db from OSDs, the pools for MDS was unusable. So we deleted them.
After we create another cephfs fs and pools we started MDS and it stucked on creation. So we stopped MDS and removed fs and fs pools. Right now we do not have MDS running nor we have cephfs related things.

ceph fs dump
dumped fsmap epoch 1 e1
enable_multiple, ever_enabled_multiple: 0,0
compat: compat={},rocompat={},incompat={1=base v0.20,2=client writeable ranges,3=default file layouts on dirs,4=dir inode in separate object,5=mds uses versioned encoding,6=dirfrag is stored in omap,8=no anchor table,9=file layout v2,10=snaprealm v2} legacy client fscid: -1

Quoted 8 lines

No filesystems configured

ceph fs ls
No filesystems enabled

Now pool 66 seems to only pool we have and it has been created months ago. Then I guess there is something hidden out there.

Is there any way to find and delete it?

Ok, I'm concerned that the creating pg is in there if this is an old pool... did you perhaps run force_create_pg at some point? Assuming you didn't, I think this is a bug in the process for rebuilding the mon store.. one that doesn't normally come up because the impact is this osdmap scan that is cheap in our test scenarios but clearly not cheap for your aged cluster.

In any case, there is a way to clear those out of the mon, but it's a bit dicey.

1. stop all mons
2. make a backup of all mons
3. use ceph-kvstore-tool to extract the prefix=osd_pg_creating key=creating key on one of the mons
4. dump the object with ceph-dencoder type creating_pgs_t import FILE dump_json
5. hex edit the structure to remove all of the creating pgs, and adds pool 66 to the created_pgs member.
6. verify with ceph-dencoder dump that the edit was correct...
7. inject the updated structure into all of the mons
8. start all mons

4-6 will probably be an iterative process... let's start by getting the structure out and dumping the current value?

The code to refer to to understand the structure is src/mon/CreatingPGs.h encode/decode methods.

sage

Quoted 292 lines
Quoted 292 lines · Sage Weil

Oh... I think this is the problem:

2018-10-03 16:37:04.284 7efef2ae0700 20 slow op osd_pg_create(e72883 

66.af:60196 66.ba:60196 66.be:60196 66.d8:60196 66.f8:60196 66.124:60196 66.14c:60196 66.1ac:60196 66.223:60196 66.248:60196 66.271:60196 66.2d1:60196 66.47a:68641) initiated 2018-10-03 16:20:01.915916

You are in the midst of creating new pgs, and unfortunately pg create is one of the last remaining places where the OSDs need to look at a full history of map changes between then and the current map epoch. In this case, the pool was created in 60196 and it is now 72883, ~12k epochs later.

What is this new pool for? Is it still empty, and if so, can we delete it? If yes, I'm ~70% sure that will then get cleaned out at the mon end and restarting the OSDs will make these pg_creates go away.

s

Quoted 269 lines · Goktug Yildirim

Hello,

It seems nothing has changed.

OSD config: https://paste.ubuntu.com/p/MtvTr5HYW4/ <https://paste.ubuntu.com/p/MtvTr5HYW4/>
OSD debug log: https://paste.ubuntu.com/p/7Sx64xGzkR/ <https://paste.ubuntu.com/p/7Sx64xGzkR/>

Quoted 259 lines · Darius Kasparavičius

Hello,

You can also reduce the osd map updates by adding this to your ceph config file. "osd crush update on start = false". This should remove and update that is generated when osd starts.

2018-10-03 14:03:21.534 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush
set-device-class", "class": "hdd", "ids": ["47"]} v 0) v1
2018-10-03 14:03:21.534 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush set-device-class", "class": "hdd", "ids": ["47"]}]:
dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0 mon.SRV-SBKUARK14@0(leader)
e14 handle_command mon_command({"prefix": "osd crush create-or-move",
"id": 47, "weight":3.6396, "args": ["host=SRV-SEKUARK8",
"root=default"]} v 0) v1
2018-10-03 14:03:21.538 7fe15eddb700  0 log_channel(audit) log [INF] :
from='osd.47 10.10.112.17:6803/64652' entity='osd.47' cmd=[{"prefix":
"osd crush create-or-move", "id": 47, "weight":3.6396, "args":
["host=SRV-SEKUARK8", "root=default"]}]: dispatch
2018-10-03 14:03:21.538 7fe15eddb700  0
mon.SRV-SBKUARK14@0(leader).osd e72601 create-or-move crush item name
'osd.47' initial_weight 3.6396 at location
{host=SRV-SEKUARK8,root=default}
2018-10-03 14:03:22.250 7fe1615e0700  1

mon.SRV-SBKUARK14@0(leader).osd e72601 do_prune osdmap full prune enabled

Quoted 224 lines · Goktug Yildirim

Hi Sage,

Thank you for your response. Now I am sure this incident is going to be resolved.

The problem started when 7 server crashed same time and they came back after ~5 minutes.

Two of our 3 mon services were restarted in this crash. Since mon services are enabled they should be started nearly at the same time. I dont know if this makes any difference but some of the guys on IRC told it is required that they start in order not at the same time. Otherwise it could break things badly.

After 9 days we still see 3400-3500 active+clear PG. But in the end we have so many STUCK request and our cluster can not heal itself.

When we set noup flag, OSDs can catch up epoch easily. But when we unset the flag we see so many STUCKS and SLOW OPS in 1 hour.
I/O load on all of my OSD disks are at around %95 utilization and never ends. CPU and RAM usage are OK.
OSDs get stuck that we even can't run “ceph pg osd.0 query”.

Also we tried to change RBD pool replication size 2 to 1. Our goal was the eliminate older PG's and leaving cluster with good ones.
With replication size=1 we saw "%13 PGS not active”. But it didn’t solve our problem.

Of course we have to save %100 of data. But we feel like even saving %50 of our data will be make us very happy right now.

This is what happens when the cluster starts. I believe it explains the whole story very nicely.
https://drive.google.com/file/d/1-HHuACyXkYt7e0soafQwAbWJP1qs8-u1/view?usp=sharing

This is our ceph.conf:
https://paste.ubuntu.com/p/8sQhfPDXnW/

This is the output of "osd stat && osd epochs && ceph -s && ceph health”:
https://paste.ubuntu.com/p/g5t8xnrjjZ/

This is pg dump:
https://paste.ubuntu.com/p/zYqsN5T95h/

This is iostat & perf top:
https://paste.ubuntu.com/p/Pgf3mcXXX8/

This strace output of ceph-osd:
https://paste.ubuntu.com/p/YCdtfh5qX8/

This is OSD log (default debug):
https://paste.ubuntu.com/p/Z2JrrBzzkM/

This is leader MON log (default debug):
https://paste.ubuntu.com/p/RcGmsVKmzG/

These are OSDs failed to start. Total number is 58.
https://paste.ubuntu.com/p/ZfRD5ZtvpS/
https://paste.ubuntu.com/p/pkRdVjCH4D/
https://paste.ubuntu.com/p/zJTf2fzSj9/
https://paste.ubuntu.com/p/xpJRK6YhRX/
https://paste.ubuntu.com/p/SY3576dNbJ/
https://paste.ubuntu.com/p/smyT6Y976b/

This is OSD video with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1UHHocK3Wy8pVpgZ4jV8Rl1z7rqK3bcJi/view?usp=sharing

This is OSD logfile with debug osd = 20 and debug ms = 1 and debug_filestore = 20.
https://drive.google.com/file/d/1gH5Z0dUe36jM8FaulahEL36sxXrhORWI/view?usp=sharing

As far as I understand OSD catchs up with the mon epoch and exceeds mon epoch somehow??

2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 mkpg 66.f8 e60196@2018-09-28 23:57:08.251119
2018-10-03 14:55:08.653 7f66c0bf9700 10 osd.150 72642 build_initial_pg_history 66.f8 created 60196
2018-10-03 14:55:08.653 7f66c0bf9700 20 osd.150 72642 get_map 60196 - loading and decoding 0x19da8400
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) queued
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process 66.d8 to_process <OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642)> waiting <> waiting_peering {}
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process OpQueueItem(66.d8 PGPeeringEvent(epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info) prio 255 cost 10 e72642) pg 0xb579400
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 pg_epoch: 72642 pg[66.d8( v 39934'8971934 (38146'8968839,39934'8971934] local-lis/les=72206/72212 n=2206 ec=50786/50786 lis/c 72206/72206 les/c/f 72212/72212/0 72642/72642/72642) [150] r=0 lpr=72642 pi=[72206,72642)/1 crt=39934'8971934 lcod 0'0 mlcod 0'0 peering mbc={} ps=[1~11]] do_peering_event: epoch_sent: 72642 epoch_requested: 72642 NullEvt +create_info
2018-10-03 14:55:08.653 7f66a6bc5700 10 log is not dirty
2018-10-03 14:55:08.653 7f66a6bc5700 10 osd.150 72642 queue_want_up_thru want 72642 <= queued 72642, currently 72206
2018-10-03 14:55:08.653 7f66a6bc5700 20 osd.150 op_wq(1) _process empty q, waiting
2018-10-03 14:55:08.665 7f66c0bf9700 10 osd.150 72642 add_map_bl 60196 50012 bytes
2018-10-03 14:55:08.665 7f66c0bf9700 20 osd.150 72642 get_map 60197 - loading and decoding 0x19da8880
2018-10-03 14:55:08.669 7f66c0bf9700 10 osd.150 72642 add_map_bl 60197 50012 bytes
2018-10-03 14:55:08.669 7f66c0bf9700 20 osd.150 72642 get_map 60198 - loading and decoding 0x19da9180

On 3 Oct 2018, at 05:14, Sage Weil <[email protected]> wrote:

osd_find_best_info_ignore_history_les is a dangerous option and you should
only use it in very specific circumstances when directed by a developer.
In such cases it will allow a stuck PG to peer. But you're not getting to
that point...you're seeing some sort of resource exhaustion.

The noup trick works when OSDs are way behind on maps and all need to
catch up. The way to tell if they are behind is by looking at the 'ceph
daemon osd.NNN status' output and comparing to the latest OSDMap epoch tha
t the mons have. Were they really caught up when you unset noup?

I'm just catching up and haven't read the whole thread but I haven't seen
anything that explains why teh OSDs are dong lots of disk IO. Catching up
on maps could explain it but not why they wouldn't peer once they were all
marked up...

sage

On Tue, 2 Oct 2018, Göktuğ Yıldırım wrote:

Anyone heart about osd_find_best_info_ignore_history_les = true ?
Is that be usefull here? There is such a less information about it.

Goktug Yildirim <[email protected]> şunları yazdı (2 Eki 2018 22:11):

Hi,

Indeed I left ceph-disk to decide the wal and db partitions when I read somewhere that that will do the proper sizing.
For the blustore cache size I have plenty of RAM. I will increase 8GB for each and decide a more calculated number after cluster settles.

For the osd map loading I’ve also figured it out. And it is in loop. For that reason I started cluster with noup flag and waited OSDs to reach the uptodate epoch number. After that I unset noup. But I did not pay attention to manager logs. Let me check it, thank you!

I am not forcing jmellac or anything else really. I have a very standard installation and no tweaks or tunings. All we ask for the stability versus speed from the begining. And here we are :/

On 2 Oct 2018, at 21:53, Darius Kasparavičius <[email protected]> wrote:

Hi,

I can see some issues from the osd log file. You have an extremely low
size db and wal partitions. Only 1GB for DB and 576MB for wal. I would
recommend cranking up rocksdb cache size as much as possible. If you
have RAM you can also increase bluestores cache size for hdd. Default
is 1GB be as liberal as you can without getting OOM kills. You also
have lots of osd map loading and decoding in the log. Are you sure all
monitors/managers/osds are up to date? Plus make sure you aren't
forcing jemalloc loading. I had a funny interaction after upgrading to
mimic.
On Tue, Oct 2, 2018 at 9:02 PM Goktug Yildirim
<[email protected]> wrote:

Hello Darius,

Thanks for reply!

The main problem is we can not query PGs. “ceph pg 67.54f query” does stucks and wait forever since OSD is unresponsive.
We are certain that OSD gets unresponsive as soon as it UP. And we are certain that OSD responds again after its disk utilization stops.

So we have a small test like that:
* Stop all OSDs (168 of them)
* Start OSD1. %95 osd disk utilization immediately starts. It takes 8 mins to finish. Only after that “ceph pg 67.54f query” works!
* While OSD1 is “up" start OSD2. As soon as OSD2 starts OSD1 & OSD2 starts %95 disk utilization. This takes 17 minutes to finish.
* Now start OSD3 and it is the same. All OSDs start high I/O and it takes 25 mins to settle.
* If you happen to start 5 of them at the same all of the OSDs start high I/O again. And it takes 1 hour to finish.

So in the light of these findings we flagged noup, started all OSDs. At first there was no I/O. After 10 minutes we unset noup. All of 168 OSD started to make high I/O. And we thought that if we wait long enough it will finish & OSDs will be responsive again. After 24hours they did not because I/O did not finish or even slowed down.
One can think that is a lot of data there to scan. But it is just 33TB.

So at short we dont know which PG is stuck so we can remove it.

However we met an weird thing half an hour ago. We exported the same PG from two different OSDs. One was 4.2GB and the other is 500KB! So we decided to export all OSDs for backup. Then we will delete strange sized ones and start the cluster all over. Maybe then we could solve the stucked or unfound PGs as you advise.

Any thought would be greatly appreciated.

On 2 Oct 2018, at 18:16, Darius Kasparavičius <[email protected]> wrote:

Hello,

Currently you have 15 objects missing. I would recommend finding them
and making backups of them. Ditch all other osds that are failing to
start and concentrate on bringing online those that have missing
objects. Then slowly turn off nodown and noout on the cluster and see
if it stabilises. If it stabilises leave these setting if not turn
them back on.
Now get some of the pg's that are blocked and querry the pgs to check
why they are blocked. Try removing as much blocks as possible and then
remove the norebalance/norecovery flags and see if it starts to fix
itself. On Tue, Oct 2, 2018 at 5:14 PM by morphin
<[email protected]> wrote:

One of ceph experts indicated that bluestore is somewhat preview tech
(as for Redhat).
So it could be best to checkout bluestore and rocksdb. There are some
tools to check health and also repair. But there are limited
documentation.
Anyone who has experince with it?
Anyone lead/help to a proper check would be great.
Goktug Yildirim <[email protected]>, 1 Eki 2018 Pzt, 22:55
tarihinde şunu yazdı:

Hi all,

We have recently upgraded from luminous to mimic. It’s been 6 days since this cluster is offline. The long short story is here: http://lists.ceph.com/pipermail/ceph-users-ceph.com/2018-September/030078.html

I’ve also CC’ed developers since I believe this is a bug. If this is not to correct way I apology and please let me know.

For the 6 days lots of thing happened and there were some outcomes about the problem. Some of them was misjudged and some of them are not looked deeper.
However the most certain diagnosis is this: each OSD causes very high disk I/O to its bluestore disk (WAL and DB are fine). After that OSDs become unresponsive or very very less responsive. For example "ceph tell osd.x version” stucks like for ever.

So due to unresponsive OSDs cluster does not settle. This is our problem!

This is the one we are very sure of. But we are not sure of the reason.

Here is the latest ceph status:
https://paste.ubuntu.com/p/2DyZ5YqPjh/.

This is the status after we started all of the OSDs 24 hours ago.
Some of the OSDs are not started. However it didnt make any difference when all of them was online.

Here is the debug=20 log of an OSD which is same for all others:
https://paste.ubuntu.com/p/8n2kTvwnG6/
As we figure out there is a loop pattern. I am sure it wont caught from eye.

This the full log the same OSD.
https://www.dropbox.com/s/pwzqeajlsdwaoi1/ceph-osd.90.log?dl=0

Here is the strace of the same OSD process:
https://paste.ubuntu.com/p/8n2kTvwnG6/

Recently we hear more to uprade mimic. I hope none get hurts as we do. I am sure we have done lots of mistakes to let this happening. And this situation may be a example for other user and could be a potential bug for ceph developer.

Any help to figure out what is going on would be great.

Best Regards,
Goktug Yildirim

_______________________________________________
ceph-users mailing list
[email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

_______________________________________________
ceph-users mailing list [email protected]
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com