How to Increase the size of a Linux LVM by expanding the virtual machine disk in the fly.

Por: Dr. Delso Bonfante | May 13, 2014

How to Increase the size of a Linux LVM by expanding the virtual machine disk in the fly.

Olá, meu nome é Diego Luisi e no artigo de hoje demonstrarei como fazer extend dos discos no Linux in-the-fly usando VMware. Sem desligar a maquina, vá no VSphere:

1) Edit Settings…

2) Add

3) Hard Disk

4) Create a new virtual disk

5) SCSI

 Imagem

echo "- – – " > /sys/class/scsi_host/host2/scan 

echo "- – – " > /sys/class/scsi_host/host1/scan 

echo "- – – " > /sys/class/scsi_host/host0/scan 

fdisk /dev/sdg

n

p

1

t

8e

w

vgdisplay 

vgextend mysql_Database /dev/sdg1

lvextend /dev/mapper/mysql_Database-lv_mysql /dev/sdg1 

resize2fs /dev/mapper/mysql_Database-lv_mysql

df -h

Pronto, espero que tenham gostado!

 

 


LOREM

dluisi

🚀 Enthusiastic about the DevOps culture and focused on Open Source technologies, I am passionate about automation, with 20 years of experience as a SysAdmin, currently working as an SRE, always open to learning new technologies and procedures to improve every day more as a professional. 👀 I’m interested in Open Source projects (Linux, CNCF, GitOps and Tools) 📚 I’m currently increasing my skills on AWS, K8S, Python, Backstage and some automations tools like Argo (CD, Autopilot, Events, Rollouts and Workflows). 🌱 Goals: Increase my programming skills. 💞 I love old and good Rock and Roll, on weekends traveling on a Harley Davidson.