-
Notifications
You must be signed in to change notification settings - Fork 72
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
Officially document the format of names under /dev/mapper
#68
Comments
Each device type has it's own set of rules - whoever writes any generic tool needs to learn about them - no way around this. For lvm2 - we present /dev/vgname/lvname as the mechanism to tell apart 'public' LVs (those users should be using) and 'private' (those users should not try to access - i.e. individual raid legs, metadada device). Other subsystems like dm-multipath, dm-crypto, stratis,.... have their own rules... Yes we would like to see other user-space tools to be complaint with our /dev/vg/lv naming for LVs - however we have no control over them... |
To do that, the author need to know what the rules are, and have a reasonable expectation that those rules will not change out from under them. qubesd already hard-codes its believe as to what the rules are for LVM, because I did not find a better option.
The rules for dm-crypt are simple ( |
It's hard task - I've already seen myself about 20 projects trying to make universal device managing software....
dm-crypt is more simple with it's device usage and doesn't resolve all issues as lvm2 does (i.e. private/public) and has no concept of volume management... And yeah we would also like to see some well written project handling all sorts of block devices.... |
On further thought, the main reason I need to know the format of names under |
lvm2 strictly uses 'vgname-lvname' where '-' in name is escaped in '--' way. While device is 'active' - it can be renamed - but it can't change its UUID - for that change device must There are many ways, how to generate non-colliding names... although usually such names are not readable for humans ;) But I think here you are looking for problems which do not really exist in practice.... |
That is enough information for me, thanks! |
To quote
man 8 lvm
(formatting mine):However, this presents a serious problem for writers of generic tools, which may not necessarily know anything about LVM2. Such software will likely use the kernel’s name under
/dev/mapper
. For instance, lsblk displays the names under/dev/mapper
, not the ones inVG/LV
format.The text was updated successfully, but these errors were encountered: