[pve-devel] LVM on top of DRBD for two node clustering

Francesco Ongaro francesco.ongaro at isgroup.it
Sun Apr 12 15:10:31 CEST 2015


Dear PVE users,

I followed the two node DRBD howto on the wiki and everything is fine
on Debian 7.0. The problem is that on the first rebook LVM fails to
activate the logical volumes on /dev/drbd0

# lvscan
  ACTIVE            '/dev/n1/root' [106.98 GiB] inherit
  ACTIVE            '/dev/n1/swap_1' [4.56 GiB] inherit
  inactive          '/dev/drbdvg/backup' [1.00 TiB] inherit
  inactive          '/dev/drbdvg/openvz' [1.00 TiB] inherit

A simple vgchange -a y drbdvg makes them active again and then a mount
-a loads the ext3 filesystems correctly.

I read about some /etc/rc.local, init.d and inittab (bound to md) fix
but wondering if this is a known problem for a Proxmox installation
over a Debian Wheezy system.

Thanks a lot,
Francesco

PS: What are your lvm.conf settings? DRBD docs with LVM on top says to
set write_cache_state to 0 (instead of 1) and locking_type to 3
(instead of 1).

-- 
Francesco Ongaro, Senior Security Researcher
ISGroup: Information Security Group (www.isgroup.it)
Tel       (+39) 045 4853232
Fax       (+39) 045 5111719
Voicemail (+39) 02 320624653

AVVISO PRIVACY

Il contenuto della presente e-mail ed i suoi allegati, sono diretti
esclusivamente al destinatario e devono ritenersi riservati, con
divieto di diffusione o di uso non conforme alle finalità per le quali
la presente e-mail è stata inviata.

Pertanto, ne è vietata la diffusione e la comunicazione da parte di
soggetti diversi dal destinatario, ai sensi degli artt. 616 e ss. c.p.
e D.lgs n. 196/03 Codice Privacy.

Se la presente e-mail ed i suoi allegati sono stati ricevuti per
errore, siete pregati di distruggere quanto ricevuto e di informare il
mittente al seguente recapito: isgroup at isgroup.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: francesco_ongaro.vcf
Type: text/x-vcard
Size: 375 bytes
Desc: not available
URL: <http://lists.proxmox.com/pipermail/pve-devel/attachments/20150412/e1e2bf55/attachment.vcf>


More information about the pve-devel mailing list