When we make a swap using a regular physical drive, we just use fdisk and make a partition with type
swap, using the swap code for that partition, followed by
But what if, in the case of lvm, we have to specify the partition type to be
lvm using the lvm code, and then just make a pv, vg and lv, and then
mkswap on that partition followed by
swapon (please correct me if I am wrong).
So my question is: why we don't need the partition to be of type
swap in the lvm case; what is the logic behind this?