part of the sda not usable

semuli

New Member
Joined
Aug 12, 2022
Messages
2
Reaction score
0
Credits
18
part of the storage space on a Linux server is not used. Can anyone tell me how this problem happened and how to fix it and get this unused part back using?
As you can see sda is 160GB. But df shows only 77GB:
Code:
[email protected]:~$ lsblk -o NAME,FSTYPE,SIZE,LABEL,MOUNTPOINT
NAME          FSTYPE       SIZE LABEL MOUNTPOINT
sda                        160G       
├─sda1        ext4         487M       /boot
└─sda2        LVM2_member 79.5G       
  ├─vg00-lv01 ext4        77.6G       /
  └─vg00-lv00 swap         1.9G       [SWAP]
sr0                       1024M

and

Code:
[email protected]:~$ df -h  / 
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/vg00-lv01   77G   71G  2.4G  97% /

Thank you for your help.
 


OP
S

semuli

New Member
Joined
Aug 12, 2022
Messages
2
Reaction score
0
Credits
18
Solved using:
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,900
Reaction score
3,526
Credits
35,667
You probably did an install where you selected how big you want your root partition to be so then it doesn't use all the space. To add the space you have to create another partition using fdisk, then creating a physical volume of that partition and then adding it to the volume group vg00. After which you can expand your logical lv01 root volume with it.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Latest posts

Top