Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to find thin_id of a volume using libblockdev #702

Open
sulakshm opened this issue Feb 4, 2022 · 1 comment
Open

How to find thin_id of a volume using libblockdev #702

sulakshm opened this issue Feb 4, 2022 · 1 comment

Comments

@sulakshm
Copy link

sulakshm commented Feb 4, 2022

Sorry, did not know how to reach you all.

I wanted to find the thin_id of a thin volume given its volume group and lv_name.
Using the cli it is as simple as lvs -o thin_id "vg"/"lv"

How to find it using libblockdev apis?
Calling bd_lvm_lvinfo does give out BDLVMLVdata.
But "BDLVMLVdata" does not have the thin_id info.

Thanks.

@vojtechtrefny
Copy link
Member

We unfortunately don't support getting the thin_id value through our API. libblockdev doesn't cover 100 % of LVM CLI, we can add this in the future, but as it would be an API change, we'd need to wait for next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants