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
 


f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,926
Reaction score
4,415
Credits
43,547
OP
C

champ885

New Member
Joined
Dec 20, 2021
Messages
5
Reaction score
3
Credits
40
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.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
5,926
Reaction score
4,415
Credits
43,547
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:
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top