mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
add better comand for expanding LVM (#1190)
This commit is contained in:
parent
8f5d65388f
commit
0bfec30ce6
@ -95,6 +95,13 @@ msg_box "Nextcloud repo is not available, exiting..."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Fix LVM on BASE image
|
||||
if grep -q "LVM" /etc/fstab
|
||||
then
|
||||
# Resize LVM (live installer is &%¤%/!
|
||||
lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
|
||||
fi
|
||||
|
||||
# Check if it's a clean server
|
||||
stop_if_installed postgresql
|
||||
stop_if_installed apache2
|
||||
|
||||
@ -16,8 +16,11 @@ debug_mode
|
||||
# Must be root
|
||||
root_check
|
||||
|
||||
# Resize LVM (somthing happened during installation)
|
||||
lvresize /dev/ubuntu-vg/ubuntu-lv /dev/sda3
|
||||
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
|
||||
# Fix LVM on BASE image
|
||||
if grep -q "LVM" /etc/fstab
|
||||
then
|
||||
# Resize LVM (live installer is &%¤%/!
|
||||
lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv
|
||||
fi
|
||||
|
||||
exit
|
||||
|
||||
Loading…
Reference in New Issue
Block a user