Add Ubuntu bash script expand lvm partitions
This commit is contained in:
parent
2fa5897489
commit
498acf5e04
9
BashScripts/lvm-extend.sh
Normal file
9
BashScripts/lvm-extend.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user