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
 


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
4,900
Reaction score
3,526
Credits
35,667
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:
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top