Linux – Is the fdisk partition type important when using lvm

fdisklinuxlvmpartition

I have inherited a few LVM volumes and I noticed that fdisk reports the disks that make up the volume group as partition type 83 (Linux) and not 8e (Linux LVM). Is this a problem and how important are the fdisk partion types? Do they affect anything or are they just labels for convenience sake? Thanks for your help.

Best Answer

LVM does not look at the partition table at all - it doesn't even knows it actually exist. So you can set whatever "partition type" value you want there and it won't change anything as far as LVM is concerned.

LVM uses regular expressions in its config file to know what block devices to check for physical volumes, see the filter keyword in lvm.conf(5).

Some other tools do look at partition types, the linux kernel itself being the first example:

  • partition type 0x05, "Extended", tells the kernel to go look for an Extended Boot Record in the given partition, to find so called "logical partitions"
  • partition type 0xfd, "Linux RAID", tells the md driver in the kernel to try to autostart that raid volume, if it finds a suitable superblock in the given partition