Add Ubuntu bash script expand lvm partitions

This commit is contained in:
Johan 2024-08-29 10:06:04 +02:00
parent 2fa5897489
commit 498acf5e04

View File

@ -0,0 +1,9 @@
# Make sure script is ran as root
if [[ $EUID -ne 0 ]]; then
exec sudo /bin/bash "$0" "$@"
fi
lvm lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lv
resize2fs /dev/ubuntu-vg/ubuntu-lv
df -h