Friday, May 3, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1983  / 1 Year ago, thu, january 5, 2023, 3:40:37

Ubuntu 20.04.1 LTS Server
I increased the LVM PV partition with live gparted from 7 to 17 G but the system can't see yet the 17 G. Instead other disk utils (gparted, fdisk, etc) reports 17 G. How can I fix that? Thanks folks!


lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 498.2G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 1G 0 part /boot
└─sda3 8:3 0 17G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 7G 0 lvm /

vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <16.94 GiB
PE Size 4.00 MiB
Total PE 4336
Alloc PE / Size 1791 / <7.00 GiB
Free PE / Size 2545 / 9.94 GiB
VG UUID frHn5C-8jpB-Fq7N-SBiw-Hi60-ndAc-eFJQb0

lvdisplay
--- Logical volume ---
LV Path /dev/ubuntu-vg/ubuntu-lv
LV Name ubuntu-lv
VG Name ubuntu-vg
LV UUID pbJ92z-o62R-3iHv-Cj6F-9Z8W-SP9J-5K6QUl
LV Write Access read/write
LV Creation host, time ubuntu-server, 2020-12-11 22:33:57 +0000
LV Status available
# open 1
LV Size <7.00 GiB
Current LE 1791
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0

More From » partitioning

 Answers
5

With parted, fdisk, gdisk, etc. you only change the partition table on the disk. Since your old partitions are still in use by your system, it keeps using it with the information (start sector and size) it got at boot.


For your system to take into account your new partition table, you need to call partprobe. Then you will need to call pvresize and finally lvresize --resizefs.


Edit: hmmm, according to your vgdisplay output, apparently gparted took care of the partprobe and pvresize parts for you, then you just have to execute lvresize --resizefs on /dev/ubuntu-vg/ubuntu-lv.


[#2150] Saturday, January 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brasiplacar

Total Points: 314
Total Questions: 124
Total Answers: 97

Location: Dominican Republic
Member since Wed, Mar 17, 2021
3 Years ago
brasiplacar questions
Sat, Sep 4, 21, 13:11, 3 Years ago
Tue, Jan 10, 23, 06:22, 1 Year ago
Wed, Oct 13, 21, 15:19, 3 Years ago
Wed, May 4, 22, 00:06, 2 Years ago
Mon, Sep 13, 21, 14:46, 3 Years ago
;