---
title: "Ubuntu resize LVM"
url: https://michalasobczak.pl/posts/ubuntu-resize-lvm.html
author: "Michał Sobczak"
description: "During installation Ubuntu will create LVM with half of the space available. In order to expand it to whole space available you need to extend logical volume and expand file system as…"
published: 2022-10-06T14:02:19.000Z
updated: 2022-10-06T14:02:19.000Z
language: en
categories: ["Technology"]
tags: ["Ubuntu"]
license: CC BY-NC-ND 4.0 (https://creativecommons.org/licenses/by-nc-nd/4.0/)
---
# Ubuntu resize LVM

During installation Ubuntu will create LVM with half of the space available. In order to expand it to whole space available you need to extend logical volume and expand file system as follow:s

```bash
lvextend -l +100%FREE /dev/maper/ubuntu--vg-ubuntu--lv
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
```
