expanding a lvm after extending /dev/sdb in vmware
I have a lvm
tablogsvg currently 300gb I need it to be 600gb or more so I added
300gb to the sdb which shows now as 300gb (all of sdb) how do I extend tablogsvg mounted as
--- Logical volume ---
LV Path /dev/tablogsvg/tablogs
LV Name tablogs
VG Name tablogsvg
LV UUID HpbDcg-W5Ii-iFzf-La9C-bsgs-RB39-u43yhl
LV Write Access read/write
LV Creation host, time svt-tableau01, 2022-05-18 11:15:04 -0600
LV Status available
# open 1
LV Size <300.00 GiB
Current LE 76799
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 8192
Block device 253:9
and here is how it was created
101 vgreduce rootvg /dev/sdb
102 vgcreate tablogsvg /dev/sdb
103 lvcreate -l100%FREE -n tablogs tablogsvg
104 mkfs.ext4 /dev/mapper/tablogsvg-tablogs
118 mount /dev/mapper/tablogsvg-tablogs logs
[root@svt-tableau01 merritr]# vgs
VG #PV #LV #SN Attr VSize VFree
rootvg 1 9 0 wz--n- <138.97g 0
tablogsvg 1 1 0 wz--n- <300.00g 0
Disk /dev/mapper/tablogsvg-tablogs: 322.1 GB, 322118352896 bytes, 629137408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 2099199 1048576 83 Linux
/dev/sda2 2099200 293601279 145751040 8e Linux LVM
Disk /dev/sdb: 644.2 GB, 644245094400 bytes, 1258291200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
|