Extend Root Filesystem Ubuntu 20.04

ajaxpain

New Member
Joined
Jun 22, 2022
Messages
4
Reaction score
2
Credits
28
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
 


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,387
Reaction score
1,015
Credits
8,518
Can you send output of ..
df -h
 

SlowCoder

Gold Member
Gold Supporter
Joined
May 2, 2022
Messages
286
Reaction score
212
Credits
2,342
I'm not too familiar with LVM, but it looks like your partition is only 50% full. Why do you need to expand it?
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,387
Reaction score
1,015
Credits
8,518
Now can you give output of
vgs

and

fdisk -l (lowercase L)
 

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,387
Reaction score
1,015
Credits
8,518
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.
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,618
Reaction score
3,325
Credits
33,512
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]
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Latest posts

Top