From: Aaron Lauterer <a.lauterer@proxmox.com>
To: Alwin Antreich <alwin@antreich.com>,
Proxmox VE development discussion <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH manager v4 1/3] api ceph osd: add OSD index, metadata and lv-info
Date: Wed, 7 Dec 2022 14:22:24 +0100 [thread overview]
Message-ID: <8ade6295-3a6a-8e98-3310-a2085274c94d@proxmox.com> (raw)
In-Reply-To: <1cfa70b807f858eea840bd040b9a83cd@antreich.com>
On 12/7/22 12:15, Alwin Antreich wrote:
> Hi,
>
>
> December 6, 2022 4:47 PM, "Aaron Lauterer" <a.lauterer@proxmox.com> wrote:
>
>> To get more details for a single OSD, we add two new endpoints:
>> * nodes/{node}/ceph/osd/{osdid}/metadata
>> * nodes/{node}/ceph/osd/{osdid}/lv-info
> As an idea for a different name for lv-info, `nodes/{node}/ceph/osd/{osdid}/volume`? :)
>
Could be done, as you would expect to get overall physical volume infos from it,
right? So that the endpoint won't change, once the underlying technology changes?
>>
[...]
>>
>> Possible volumes are:
>> * block (default value if not provided)
>> * db
>> * wal
>>
>> 'ceph-volume' is used to gather the infos, except for the creation time
>> of the LV which is retrieved via 'lvs'.
> You could use lvs/vgs directly, the ceph osd relevant infos are in the lv_tags.
IIRC, and I looked at it again, mapping the OSD ID to the associated LV/VG would
be a manual lookup via /var/lib/ceph/osd/ceph-X/block which is a symlink to the
LV/VG.
So yeah, would be possible, but I think a bit more fragile should something
change (as unlikely as it is) in comparsion to using ceph-volume.
I don't expect these API endpoints to be run all the time, and am therefore okay
if they are a bit more expensive regarding computation resources.
>
> `lvs -o lv_all,vg_all --reportformat=json`
> `vgs -o vg_all,pv_all --reportformat=json`
>
> Why do you want to expose the lv-info?
Why not? The LVs are the only thing I found for an OSD that contain some hint to
when it was created. Adding more general infos such as VG and LV for a specific
OSD can help users understand where the actual data is stored. And that without
digging even deeper into how things are handled internally and how it is mapped.
Cheers,
Aaron
next prev parent reply other threads:[~2022-12-07 13:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-06 15:47 [pve-devel] [PATCH manager v4 0/3] Ceph OSD: add detail infos Aaron Lauterer
2022-12-06 15:47 ` [pve-devel] [PATCH manager v4 1/3] api ceph osd: add OSD index, metadata and lv-info Aaron Lauterer
2022-12-06 15:47 ` [pve-devel] [PATCH manager v4 2/3] ui utils: add renderer for ceph osd addresses Aaron Lauterer
2022-12-06 15:47 ` [pve-devel] [PATCH manager v4 3/3] ui: osd: add details window Aaron Lauterer
[not found] ` <1cfa70b807f858eea840bd040b9a83cd@antreich.com>
2022-12-07 13:22 ` Aaron Lauterer [this message]
[not found] ` <efba3a351dbb0300cca8b46529888eea@antreich.com>
2022-12-09 14:05 ` [pve-devel] [PATCH manager v4 1/3] api ceph osd: add OSD index, metadata and lv-info Aaron Lauterer
[not found] ` <2b8a24468941bf597877b3ac10a95c22@antreich.com>
2022-12-12 11:19 ` Aaron Lauterer
2022-12-12 16:10 ` Aaron Lauterer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8ade6295-3a6a-8e98-3310-a2085274c94d@proxmox.com \
--to=a.lauterer@proxmox.com \
--cc=alwin@antreich.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox