Disk > Mdadm > LVM

lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT

mdadm -D /dev/md127

watch cat /proc/mdstat

# Create vg1

vgcreate vg1 /dev/md127

# Create lg disk

lvcreate -L 150M vg1 -n lv1
lvcreate -L 150M vg1 -n lv2
lvcreate -L 150M vg1 -n lv3

lvs

lvdisplay

mkfs.ext4 /dev/vg1/lv1

mkfs.ext4 /dev/vg1/lv2

mkfs.ext4 /dev/vg1/lv3

mkdir /home/lv1 && mount /dev/vg1/lv1 /home/lv1

mkdir /home/lv2 && mount /dev/vg1/lv2 /home/lv2

mkdir /home/lv3 && mount /dev/vg1/lv1 /home/lv3

#Extend lv disk, first check for free PE of PV disk with pvdisplay

lvextend -l +200 /dev/vg1/lv1

resize2fs /dev/vg1/lv1

lvextend -l +100 /dev/vg1/lv4

xfs_growfs /dev/vg1/lv4

lvextend -L50G -n /dev/vg1/lv4


xfs_growfs /media/root/87257771-0931-4d1c-b538-58e9c6b1e09b

###Note: fill all space of PV disk: lvextend -l +100%FREE /dev/vg1/lv4

lsblk

blkid