diff options
author | Daniel Hansson <github@hanssonit.se> | 2020-06-08 12:59:45 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 12:59:45 +0300 |
commit | 4a9579a580a72f04e9404a9924e701a9e4affbcd (patch) | |
tree | bd711f0a1acfdab995a88e93bf26757886e3825f /nextcloud_install_production.sh | |
parent | 0d6f382182be0c765a525ce0230e3b54a456e290 (diff) |
change LVM extending
Diffstat (limited to 'nextcloud_install_production.sh')
-rw-r--r-- | nextcloud_install_production.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index f26d6bd3..d98a4c21 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -103,8 +103,9 @@ then if ! lvextend -l 100%FREE --resizefs /dev/ubuntu-vg/ubuntu-lv then print_text_in_color "$ICyan" "Extending LVM, this may take a long time..." - while lvdisplay | grep "Size" | awk '{print $3}' && lvextend -L +1M /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 + while : do + lvdisplay | grep "Size" | awk '{print $3}' if ! lvextend -L +10G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 then if ! lvextend -L +1G /dev/ubuntu-vg/ubuntu-lv >/dev/null 2>&1 @@ -122,6 +123,7 @@ then done fi fi + # Check if it's a clean server stop_if_installed postgresql stop_if_installed apache2 |