Extend LVM Disk Space

How to extend LVM disk space step by step?

Step-1

Create phiysicial partition to extend the LVM

image

Step-2

Pvscan command displays the created partition

image

Step-3
Check the Virtual Disk Group Name with command below

Step-4
vgextend cl /dev/sda3
First parameter : Virtual Disk Group Name
Second Parameter : File System Path

image

image

Step-5

image

Step-6

image

1 Like

Hello,

Unless I'm missing something here, you appear to have asked and answered your own question in the space of a few minutes. Is there anything further you actually need from us at this point ?

Hello I'm sharing for my friends who want help about this topic.

Ah, I see. OK, that's great, thanks. In that case I'll move this to the "Tips and Tutorials" section, since rather than being a question, it's information to help others who may be experiencing a particular issue.

that's great.Move please

That would be MS Windows :laughing:
Linux runs on a Virtual Machine.

I usually run the short commands
pvs; vgs; lvs
in favour of the long variants
pvdisplay; vgdisplay; lvdisplay

xfs_growfs grows the xfs file system.
resize2fs grows the ext file systems (ext3,ext4).
Run
df -hT
to display the file system type.

A very useful command is
lsblk
lsblk -p displays the correct path.
lsblk -f displays other info.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.