Is it okay if the partition types of physical volumes that belong to the same volume group differ when using LVM?
Environment
- Red Hat Enterprise Linux
Issue
- Is it okay to mix partition types of physical volumes when using LVM? For example, having a volume group consisting of two volume groups with partition types set to
83
and8e:
Device Boot Start End Blocks Id System
/dev/sdc1 1 23497 188739621 83 Linux
/dev/sdc2 23498 41021 173158169 8e Linux LVM
Resolution
- This is fine when using LVM. Partition ID's are only required when the kernel needs to know how to identify the partition. However, with LVM, partitions aren't even required as a
pvcreate
can be ran on an actual block device, so a different partition type should not affect the volume group or physical volume in any way.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments