<div class="gmail_quote">On Thu, Nov 12, 2009 at 4:49 PM, hans morbus2000 <span dir="ltr"><<a href="mailto:morbus2000@web.de">morbus2000@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
[snip]<br>
<div><div></div><div class="h5">
<br>
> Hello everyone, the first sorry about my poor english.<br>
><br>
> I have configured an drbd8 cluster with two nodes so I have got a<br>
> /dev/drbd1 device in both nodes. Later I sync the nodes with "drbdadm --<br>
> --overwrite-data-of-peer primary" and the last I did "pvcreate /dev/drbd1"<br>
> on primary node.<br>
><br></div></div>[snip]<br>
on this node<br>
# vgchange -a n vgontop<br>
# drbdadm secondary drbdx<br>
<br>
on the other node<br>
# drbdadm primary drbdx<br>
# vgchange -a y vgontop<br>
<br>
--> now, lv on top of drbd to be available on both nodes<br>
<br>
Regards<br>
Andreas<br>
<br>
<br></blockquote></div><br>For Juan Antonio:<br>which kind of cluster?<br>which kind of Linux distribution/release?<br>which kind of usage then of the LVs/FS to be created?<br><br>For Andreas:<br>this is ok for initialization.<br>
But then you have the same problems when you have to create LVs.<br>You need to de-activate VG on one node, demote drbd role, and activate on the other... because LVM itslef is not cluster aware.<br><br>Preferable, but depending also on the OS kind and licensing, to use drbd in dual primary mode AND Cluster LVM (with CLVMD that depends on cman and cluster-storage channel if using Red Hat, so with economical impact....)<br>
<br>Gianluca<br>