March 24, 2015 Hatem Ben Yacoub

Resize LVM partition on the fly

I used to limit my Ubuntu partition size for many reasons, for example if my HD is 1TB, my Ubuntu partition is about 100G only. But this partition might get full quickly as you can see below I have used 94% of my storage :

To resize this on the fly, let’s add 50G :

That’s it, we just need to tell our filesystem that the volume size changed :

Now if we run df again we can see that I have now 53G available but not 55.5G, since before I had 5.5G available. The reason is that I was working in the same time on that partition and used 2.5G in the meantime.

The end.

Tagged:

About the Author

Hatem Ben Yacoub Energy Engineer, Entrepreneur, ICT & eGov Consultant with over 15 years experience. Independent Open Data expert.

(HBY) Consultancy