LVM - Expand disk - New Partition - File System create or not

General support questions
Post Reply
kdpatil
Posts: 42
Joined: 2020/10/20 07:19:31

LVM - Expand disk - New Partition - File System create or not

Post by kdpatil » 2021/08/05 03:17:45

Hello

I have 2 servers, both have lvm
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2101247 2097152 1G Linux filesystem
/dev/sda3 2101248 33552383 31451136 15G Linux filesystem
/dev/sda4 33552384 314570751 281018368 134G Linux filesystem

#######################################

Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 2101247 2097152 1G Linux filesystem
/dev/sda3 2101248 33552383 31451136 15G Linux filesystem
/dev/sda4 33552384 314570751 281018368 134G Linux LVM

I created a new partition

in 1 server i did fdisk & 8e type

Other box i did partition & then created mkfs.ext4


then i did

pvcreate
vgextend
lvextend
resize2fs

Both worked.

So for lvm if we do not do 8e , does that make any diff ? is both way its ok ?

Thanks

Post Reply