How to Extend LVM Logical Volume on Linux
How to Extend LVM Logical Volume on Linux
Option, create LVM partition.
echo -e "n\np\n1\n\n\nt\n8e\nw" | fdisk /dev/sdb |
Create PV.
pvcreate /dev/sdb1 |
Extend VG.
vgextend VolGroup /dev/sdb1 |
Extend LV.
lvextend -l +100%FREE /dev/mapper/VolGroup-LogVol |
Grow the filesystem.
# For xfs, the device must be mounted |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.





