I have a LVM (/dev/data/files) with 170G which is currently on a Physical volume (/dev/sdb1) Here is the structure, shown by lsblk command
lsblk
sdb 8:16 0 220G 0 disk
└─sdb1 8:17 0 170G 0 part
└─files 253:2 0 170G 0 lvm /mnt/data
What i did was:
I added 50G on Physical volume, as you can see above with 220G so now when i execute the command fdisk -l /dev/sdb it shows the new added size to it.
fdisk -l /dev/sdb
Disk /dev/sdb: 236.2 GB, 236223201280 bytes, 461373440 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
What i wanna do: I want to add that 50G size to the LVM /mnt/data Currently it has only 170G
lvdisplay -vm /dev/data/files
--- Logical volume ---
LV Path /dev/data/files
LV Name data
VG Name vgdata
LV UUID 5abc1M-yBeb-Vzxc-d6mK-yqwe-iyui-glkjL
LV Write Access read/write
LV Creation host, time myvm, 2020-04-09 12:27:06 -0300
LV Status available
LV Size <170.00 GiB
Current LE 43519
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:2
--- Segments ---
Logical extents 0 to 43518:
Type linear
Physical volume /dev/sdb1
Physical extents 0 to 43518
Also, the command fdisk on sdb1:
fdisk -l /dev/sdb1
Disk /dev/sdb1: 182.5 GB, 182535061504 bytes, 356513792 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 1048576 bytes
So... How do i extend the volume size to fit 220G instead of 170G? Thats my main objective and i do not know how to do that.
Thanks in advance for everyone that helps me!