Re-claiming unused disk space
Here we can see that the disk size is 30G
but we only have usable space of 23.2G
inside the data partition where the remaining 5G
of space is still allocated on the disk and we will now allocate the space in the data partition using the following steps :
Step -1 : Resizing partition
we can extend the partition sda3
using the parted utility with the following commands :
Here we can type help
to get the manual and we can use the resize command to resize the partition
In our case the partition numner is 3
so the command will look like :
This will resize the partition to its 100% capacity & the updated output should look like :
The new size of sda3
is updated to 28.2G
and the unallocated space is now allocated to sda3, Now we will have to update the lvm to claim the space.
Step -2 Extending LVM
First we will see the lvm name using the following command :
This will display the output like :
We will note down the LV_NAME
and pass the command like :
Now we have successfully reclaimed to extended space on the ubuntu system.
Last updated