Answer the question
In order to leave comments, you need to log in
LVM increasing disk size on VDS?
Greetings!
I have little experience with lvm, need help, please share your experience.
I read man, searched Google, but did not manage to figure out the situation.
There are several VMs on centos, lvm is configured on them. There was a need to expand the size of the additional disk.
Expanded the volume of the VM disk in the admin panel.
we see that the volume of the device has increased
[[email protected] opt]# fdisk -l
Disk /dev/vda: 20.4 GB, 20401094656 bytes, 39845888 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x00094fc6
Device Boot Start End Blocks Id System
/dev/vda1 * 2048 39845854 19921903+ 83 Linux
Disk /dev/vdb: 3221 MB, 3221225472 bytes, 6291456 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mapper/LVM-DATA: 2143 MB, 2143289344 bytes, 4186112 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
[[email protected] opt]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 19G 0 disk
└─vda1 253:1 0 19G 0 part /
vdb 253:16 0 2G 0 disk
└─vdb1 253:1 0 2G 0 part
└─LVM-DATA 252:0 0 2G 0 lvm
[[email protected] opt]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda 253:0 0 19G 0 disk
└─vda1 253:1 0 19G 0 part /
vdb 253:16 0 3G 0 disk
└─LVM-DATA 252:0 0 2G 0 lvm /opt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question