Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
From my little experience with LVM, my doubt is, what is the significance of selecting the partition filesystem of a PV as 8e?. Even if the partition filesystem is selected as 83 and made as PV, it still works fine when being made part of a VG and then all other LVM operations work fine.
Well whilst the LVM drivers have the "right" to only look for 83 type partitions it's hardly a lot more work to read the first few sectors of all partitions just in case it's wrong. Clearly you should still make them 8e and there's nothing positive in making it report as any other filesystem type at all.
My understanding is that the lvm subsystem/commands work at a block device level, and so don't see or care about the partition type themselves, but from a correctness standpoint it's an interesting question.
What if you have your PV on a luks encrypted partition. I always create mine as type 8e, but technically speaking the raw partition isn't a LVM PV, it's a luks container so type 8e isn't strictly speaking correct.
Does the existence of type 8e have any point at all?
Apparently not. I had believed (hoped) the "destructive" tools (pvcreate, mkswap, mkfs ...) would check for an appropriate type before trashing the partition.
Wishful thinking.
A quick test shows they will all trash another type quite happily. The only query I got was when I did a pvcreate over the top of a swap partition - it recognised the swap header. Reply "y" and it goes right ahead - it ignores any type mismatch (as did mkswap).
Note: there was no equivalent query when I did a pvcreate over the top of an ext4 filesystem.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.