Extending the Disk storage on Linux vm servers on VMware

champ885

New Member
Joined
Dec 20, 2021
Messages
5
Reaction score
3
Credits
40
Hi all,

What would be the best way to extend disk storage in Linux?
Kind of like how you extend storage using disk manager in windows?

Really appreciate any help.

Thanks
 


Thanks, but LVMs only extend logical volumes, they do not extend the physical storage itself.

Or

Would LVM be the best way to do it in Linux?

I have tried using Fdisk, but it doesn't achieve what I want.
 
Lvm works with physical volumes(pv), volume groups(vg) and logical volumes(lv). In short
you create a physical volume from a disk, then create a volume group and then you can create logical volumes from the the space available in the volume group. If you need more space in your volume group, you add another disk to your system, then create a physical volume of that disk, extend your volume group with the new physical volume and then you have more space.

fdisk is only used for creating partitions, normally you create a partition and on top of a partition you create a fileystem or you can use the partition with for an lvm setup after which you create the filesystem on the logical volume(s). Yes that's the best way to do it because that way you can extend your filesystems while your system is online without having mess around with resizing partings using fdisk or parted/gparted.
Linux Logical Volume Manager (LVM) tutorial
 
Last edited:

Members online


Latest posts

Top