[drbd] Initialization fails at boot time

mvz

New Member
Mar 23, 2010
3
0
1
I have installed Proxmox VE 1.5 on my server. The server has two raid arrays. One for my System and one for die virtual machines.

Now I want to install drbd for life replication on a second server with the same hardware configuration. I used this Tutorial. It works fine at runtime. But at the next reboot, it fails. Because the LVM initialize his devices before the services of drbd are started.

The configuration is
Raid 10 /dev/sdb1
DRBD Device /dev/drbd0 -> run on /dev/sdb1
Virtual Group storage -> run on /dev/drbd0
Virtual Volume data -> run on vg storage
Mount Point /var/lib/vz -> run on lv data

The volume group storage is initialized before /dev/drbd0 is generated.


How I can change the order of initialization?
 
pls post your 'pveversion -v'
 
pve-manager: 1.5-8 (pve-manager/1.5/4674)
running kernel: 2.6.18-2-pve
proxmox-ve-2.6.18: 1.5-5
pve-kernel-2.6.18-2-pve: 2.6.18-5
qemu-server: 1.1-11
pve-firmware: 1.0-3
libpve-storage-perl: 1.0-10
vncterm: 0.9-2
vzctl: 3.0.23-1pve8
vzdump: 1.2-5
vzprocps: 2.0.11-1dso2
vzquota: 3.0.11-1
pve-qemu-kvm-2.6.18: 0.9.1-5
 
our DRBD howto does not describe to mount /var/lib/vz on a DRBD device. this is not tested and not supported from us.
 
Therefore I have installed, for testing, a fresh installation of Proxmox and did the same thing with a new directory /container. It didn't work. Then I got a basic Debian Lenny installation without anything. The same error.

On every time I use LVM in combination with DRBD, it fails at boot time, because LVM mount his LV's before the services of DRBD are started.

There are to choices
1) DRBD is corrupted by design and impossible to run with LV's
2) I forgott a parameter like --lvm-mount-later