[SOLVED] Migration, LVM, Resize disk, DRBD

cfuchs

Renowned Member
Dec 7, 2015
22
8
68
Hi,

I don't get it. First I installed a two node cluster according to https://pve.proxmox.com/wiki/DRBD9, but I cannot resize the disk of a VM ("... not implemented ..."), migration works well. So I decided to change the setup according to https://pve.proxmox.com/wiki/DRBD . Now I can resize the disk but cannot migrate the VM to the other node ("... storage lvm not supported ..."). As I far as I can remember this was possible in PVE 3.4.

Another issue in the first installation was, that in the Datacenter GUI the DRBD space was shown with 4 TB space but 2 TB used and 2 TB free. That was not right, because I only have a 2 TB disk setup.

Thank for any help.

Regards,

Christian

--
Here are the packet versions:
proxmox-ve: 4.1-28 (running kernel: 4.2.6-1-pve)
pve-manager: 4.1-2 (running version: 4.1-2/78c5f4a2)
pve-kernel-4.2.6-1-pve: 4.2.6-28
lvm2: 2.02.116-pve2
corosync-pve: 2.3.5-2
libqb0: 0.17.2-1
pve-cluster: 4.0-29
qemu-server: 4.0-42
pve-firmware: 1.1-7
libpve-common-perl: 4.0-42
libpve-access-control: 4.0-10
libpve-storage-perl: 4.0-38
pve-libspice-server1: 0.12.5-2
vncterm: 1.2-1
pve-qemu-kvm: 2.4-18
pve-container: 1.0-35
pve-firewall: 2.0-14
pve-ha-manager: 1.0-16
ksm-control-daemon: 1.2-1
glusterfs-client: 3.5.2-2+deb8u1
lxc-pve: 1.1.5-5
lxcfs: 0.13-pve2
cgmanager: 0.39-pve1
criu: 1.6.0-1
zfsutils: 0.6.5-pve6~jessie

And here are the hardware specs:
2 x Dell PowerEdge T710, 128 GB RAM, 2 x 600 GB SAS (RAID 1, PVE), 6 x 600 GB SAS (RAID 6, DRBD), 10 Gbit NIC for DRBD
 
I've found a solution I can live with.
Example:
On both nodes
lvresize -L +2G /dev/drbdpool/vm-100-disk-1_00

Adjust size of disk in /var/lib/drbd.d/drbdmanage_vm-100-disk-1.res

Power up VM
On primary node
drbdadm resize vm-100-disk-1 -v
drbdadm adjust vm-100-disk-1

Shutdown VM, not only restart
Start VM
Resize disk (e. g. with gparted)
 
Hi,
Well, you mark it SOLVED, but in my Proxmox web management console my VM disk have the same size before. I grow the disk from 4G to 7G. I follow your procedure (which is perfect, but Proxmox management console MUST do that), but my disk is shown with a 4G size in Web management tool.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!