Hi,I've a running website on a KVM guest that is built with Proxmox, but now I need to expand the hdd,
What's the best practice of resizing a Centos box on a KVM guest?
I don't know if it's on a lvm, I've installed Centos normally,Hi,
if you use lvm inside the guest, add a second hdd and add this hdd to the volumegroup. After that you can extend your logical volumes.
You can also extend your hdd-file (if in raw-format). Search for "dd + seek" in this forum.
Udo
Hi,I don't know if it's on a lvm, I've installed Centos normally,
fdisk -l
mount
vgdisplay
Yes - if the part for which you need more space is on the volume group. This should show mount - or lvdisplay.vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 24.88 GB
PE Size 32.00 MB
Total PE 796
Alloc PE / Size 796 / 24.88 GB
Free PE / Size 0 / 0
VG UUID neLtgB-9Aks-uxtR-0oz1-KDH9-ACVl-TQ9jqM
Does it means I can resize the partiotion?
pvcreate /dev/sdb
vgextend VolGroup00 /dev/sdb
I've successfully resized the VolGroup00 but df -h again shows the same size,Hi,
you must switch of the vm and start again. A reboot is not enough - the bios know only the old drives.
Udo
Hi,I've successfully resized the VolGroup00 but df -h again shows the same size,
vgextend
vgdisplay # look for Free extend
lvdisplay
lvextend
resize2fs
We use essential cookies to make this site work, and optional cookies to enhance your experience.