Created
June 12, 2023 19:58
-
-
Save thiagopilz/d2df62c20c3f4d2777217220922999a7 to your computer and use it in GitHub Desktop.
extend linux hard disk on vm proxmox centos7
This file contains 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
pve_VM-aumentar_HD.txt | |
extend-linux-hard-disk.txt | |
Extend Linux hard disk - PROXMOX | |
Aumentando o disco virtual de uma VM do proxmox com linux centos7! | |
by tpilz! | |
CHECKLIST | |
Logar webgui proxmox | |
1) ADICIONAR NOVO TAMANHO HD VIRTUAL DA VM POR WEBGUI | |
em "Disk Action" e clicar em Resize e adicionar o tamanho de disco a ser adicionado na VM. | |
APOS ADICIONAR NOVO ESPAÇO NO HD VM | |
Ligar VM | |
Criar partição do novo espaço adicionado no HD | |
------- | |
# fdisk -l | |
# fdisk /dev/sda | |
CRIAÇÃO NOVA PARTIÇÃO | |
n (new partition) | |
p (primary) | |
(Press ENTER) (Use default partition number) | |
(Press ENTER) (Use default first sector) | |
(Press ENTER) (Use default last sector) | |
TROCAR TIPO DA PARTIÇÃO | |
t (change the partition type) | |
Númer da partição = 3 | |
8e (Linux LVM) | |
w (write) | |
--------- | |
obs> REINICIAR VM APOS CRIAR PARTIÇÃO | |
# init 6 | |
Initialize the physical volume | |
# lsblk | |
# pvcreate /dev/sda3 | |
COMANDO 1 | |
# vgextend centos /dev/sda3 | |
COMANDO 2: | |
# lvresize /dev/mapper/centos-root -r -l +100%FREE | |
CHECK NEW ESPAÇO: | |
# df -h |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment