Last active
March 10, 2023 09:12
-
-
Save miladrahimi/eef2cbc165a17693636144386691fb74 to your computer and use it in GitHub Desktop.
Extend LVM to use all the remained space on Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It is a few commands that you can run to configure LVM to use all the available space left on the device (server). | |
$ lvm | |
lvm> lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv | |
lvm> exit | |
$ resize2fs /dev/ubuntu-vg/ubuntu-lv | |
$ df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment