I want to use all the space in /dev/mapper/ubuntu--vg-root
on typing df -h
Filesystem Size Used Avail Use% Mounted on
udev 1,5G 0 1,5G 0% /dev
tmpfs 300M 1,7M 298M 1% /run
/dev/mapper/ubuntu--vg-root 8,2G 7,5G 270M 97% /
tmpfs 1,5G 0 1,5G 0% /dev/shm
tmpfs 5,0M 4,0K 5,0M 1% /run/lock
tmpfs 1,5G 0 1,5G 0% /sys/fs/cgroup
/dev/loop0 347M 347M 0 100% /snap/gnome-3-38-2004/119
/dev/loop2 768K 768K 0 100% /snap/gnome-logs/115
/dev/loop1 64M 64M 0 100% /snap/core20/1695
/dev/loop3 62M 62M 0 100% /snap/core20/1081
/dev/loop4 92M 92M 0 100% /snap/gtk-common-themes/1535
/dev/loop5 73M 73M 0 100% /snap/core22/310
/dev/loop6 48M 48M 0 100% /snap/snapd/17336
/dev/loop7 1,5M 1,5M 0 100% /snap/gnome-system-monitor/181
/dev/loop8 56M 56M 0 100% /snap/core18/2128
/dev/loop9 242M 242M 0 100% /snap/gnome-3-38-2004/70
/dev/loop10 219M 219M 0 100% /snap/gnome-3-34-1804/77
/dev/loop11 219M 219M 0 100% /snap/gnome-3-34-1804/72
/dev/loop12 66M 66M 0 100% /snap/gtk-common-themes/1515
/dev/loop13 640K 640K 0 100% /snap/gnome-logs/106
/dev/loop14 415M 415M 0 100% /snap/gnome-42-2204/29
/dev/loop15 2,7M 2,7M 0 100% /snap/gnome-calculator/920
/dev/loop16 56M 56M 0 100% /snap/core18/2620
/dev/loop17 128K 128K 0 100% /snap/bare/5
/dev/loop18 512K 512K 0 100% /snap/gnome-characters/781
/dev/loop19 2,5M 2,5M 0 100% /snap/gnome-system-monitor/163
/dev/loop20 768K 768K 0 100% /snap/gnome-characters/726
/dev/loop21 2,5M 2,5M 0 100% /snap/gnome-calculator/884
/dev/sda1 704M 90M 563M 14% /boot
tmpfs 300M 32K 300M 1% /run/user/121
tmpfs 300M 76K 300M 1% /run/user/1000
/dev/sdb 16M 22K 16M 1% /media/swarnika/L4T-README
And then on Typing the command: sudo lvdisplay
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID 56FOza-tHjh-eJZY-dJBx-TDy1-3Dmq-AjeFcR
LV Write Access read/write
LV Creation host, time ubuntu, 2022-11-11 11:16:05 +0100
LV Status available
open 1
LV Size 8,32 GiB
Current LE 2130
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:1
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID YyIsGo-1EbS-IvW8-M1jl-WglJ-t8vX-sqJZB0
LV Write Access read/write
LV Creation host, time ubuntu, 2022-11-11 11:16:05 +0100
LV Status available
open 2
LV Size 980,00 MiB
Current LE 245
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
On typing this:
sudo lvextend -l +100%FREE /dev/ubuntu-vg/root
I get the following error:
New size (2130 extents) matches existing size (2130 extents).
I'm not sure how to rectify this issue?