progetti:cloud-areapd:ceph:slow_requests_debugging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
progetti:cloud-areapd:ceph:slow_requests_debugging [2019/02/05 13:33] – sgaravat@infn.it | progetti:cloud-areapd:ceph:slow_requests_debugging [2019/02/05 13:34] (current) – sgaravat@infn.it | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======= slow requests debugging ======= | ||
+ | <code bash> | ||
+ | ceph health detail | ||
+ | </ | ||
+ | |||
+ | da` gli OSD problematici. | ||
+ | |||
+ | Per debuggare gli OSD problematici: | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | ceph daemon osd.< | ||
+ | </ | ||
+ | |||
+ | da` la coda delle operazioni | ||
+ | |||
+ | |||
+ | ------------------------------ | ||
+ | <code bash> | ||
+ | ceph daemon osd.3 dump_blocked_ops | ||
+ | </ | ||
+ | |||
+ | mostra le operazioni bloccate, es: | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | |||
+ | [root@ceph-osd-01 ~]# ceph daemon osd.3 dump_blocked_ops | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | [root@ceph-osd-01 ~]# | ||
+ | |||
+ | </ | ||
+ | |||
+ | ---------------- | ||
+ | |||
+ | <code bash> | ||
+ | ceph daemon osd.< | ||
+ | </ | ||
+ | |||
+ | dice le operazioni piu` lente che ci sono state recentemente (ultimi 10 minuti ?) | ||
+ | |||
+ | Indica anche il client, la durata dell' | ||
+ | |||
+ | < | ||
+ | |||
+ | " | ||
+ | wn_if_redirected e1198650)", | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | </ | ||
+ | |||
+ | In questo caso il client e` 192.168.61.120 (cld-np-10) e l' | ||
+ | |||
+ | Per vedere qual e`: | ||
+ | |||
+ | <code bash> | ||
+ | [root@ceph-mon-01 ~]# for rbd in $(rbd ls -p volumes-prod); | ||
+ | rbd image ' | ||
+ | size 1000 GB in 256000 objects | ||
+ | order 22 (4096 kB objects) | ||
+ | block_name_prefix: | ||
+ | format: 2 | ||
+ | features: layering | ||
+ | </ | ||
+ | |||
+ | Quindi il volume cinder 24664fe3-a84c-41cd-b403-94adedc4adf2 che in effetti e` attaccato su una VM ospitata su cld-np-10: | ||
+ | |||
+ | |||
+ | <code bash> | ||
+ | [root@cld-ctrl-01 ~]# cinder list --all | grep 24664fe3-a84c-41cd-b403-94adedc4adf2 | ||
+ | | 24664fe3-a84c-41cd-b403-94adedc4adf2 | 1c587619a84f417eabc011321fd559ec | in-use | ||
+ | [root@cld-ctrl-01 ~]# nova show dfa2175b-8cdb-464d-a216-068b0cd8fc26 | grep cld | ||
+ | | OS-EXT-SRV-ATTR: | ||
+ | | OS-EXT-SRV-ATTR: | ||
+ | | flavor | ||
+ | [root@cld-ctrl-01 ~]# | ||
+ | </ | ||
+ | |||
+ | If you run ceph daemon osd.< |