Created
April 10, 2021 14:25
-
-
Save andp97/211ca13758c02eddb113478bbc6c815f to your computer and use it in GitHub Desktop.
Extend LVM partition
This file contains 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
#!/bin/bash | |
NEW_PARTITION=$1 | |
LVM_PATH=$2 | |
VG_NAME=$3 | |
pvcreate $NEW_PARTITION && vgextend $VG_NAME $NEW_PARTITION && lvextend --resizefs -l +100%FREE $LVM_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment