Extend Root Filesystem Ubuntu 20.04

ajaxpain

New Member
Joined
Jun 22, 2022
Messages
10
Reaction score
2
Credits
78
Hi, sorry for my bad english
Im noob using ubuntu, im have a zimbra mail server, but I need increase the space of the root partition.

My hard drive is 2tb, but the installation only takes 100 gb.

Screenshot_2.png


I want to know if it is possible to do it without having to reinstall everything
 


Can you send output of ..
df -h
 
I'm not too familiar with LVM, but it looks like your partition is only 50% full. Why do you need to expand it?
 
Now can you give output of
vgs

and

fdisk -l (lowercase L)
 
Try this...

lvextend -L +700G /dev/mapper/ubuntu--vg-ubuntu--lv

then run this...

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

after this, do a df -h again to see how big your logical partition is now.
 
Try this...

lvextend -L +700G /dev/mapper/ubuntu--vg-ubuntu--lv

then run this...

resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

after this, do a df -h again to see how big your logical partition is now.
You can also do it in one command.
Code:
lvextend -L +700G /dev/mapper/ubuntu--vg-ubuntu--lv -r
[B][/[/B]CODE][B][/B]
 

Members online


Top