1、找出osd的位置最简单的方法就是 ceph osd tree
2、但是如果osd down了, 你也可以使用 ceph health detail
$ ceph health detail
...
osd.10 is down since epoch 16952, last address 172.16.32.68:6804/628
3、还有一种方法就是使用 ceph osd find 10
[root@ceph-node2 ceph-10]# ceph osd find 10
{
"osd": 10,
"ip": "172.16.32.68:6816\/3475",
"crush_location": {
"host": "ceph-node2",
"root": "default"
}
}
4、通过获取到分区的UUID的方式,找到位置,你也可以使用 ceph osd dump (uuid在最后面)
[root@ceph-node2 ceph-10]# ceph osd dump | grep osd.10
osd.10 up in weight 1 up_from 147 up_thru 148 down_at 0 last_clean_interval [0,0) 172.16.32.68:6816/3475 172.16.32.68:6817/3475 172.16.32.68:6818/3475 172.16.32.68:6819/3475 exists,up 33bc8761-d7b8-4a33-9047-4538171b2fa9
[root@ceph-node2 ceph-10]# blkid | grep 33bc8761-d7b8-4a33-9047-4538171b2fa9
/dev/vdh1: UUID="97eecd47-2785-46e4-aa65-859ef51e5d10" TYPE="xfs" PARTLABEL="ceph data" PARTUUID="33bc8761-d7b8-4a33-9047-4538171b2fa9"