Last active
May 22, 2023 22:47
-
-
Save anselmobattisti/0bb7229a19b747928485907e8b892121 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Aumentar o tamanho do disco | |
virt-filesystems --long -h --all -a olddisk.qcow2 | |
qemu-img create -f qcow2 -o preallocation=metadata newdisk.qcow2 50G | |
# /dev/sda3 é o nome da partição do disco antigo que vai ser alterado | |
virt-resize --expand /dev/sda3 olddisk newdisk.qcow2 | |
# os dados são copiados para o disco novo, mova o disco novo sobre o antigo | |
# Aumentar o tamanho da partição lógica | |
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv | |
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment