<font color='black' size='2' face='arial'><font color="black" face="arial" size="2">Hi <font size="2">All:<br>
<br>
<font size="2">We're new to pace<font size="2">maker (just got som<font size="2">e great help from this forum getting it working with <font size="2">LVM a<font size="2">s backing de<font size="2">vice), and would like to explore the Physical Volume option. <font size="2"><font size="2">W</font>e're trying <font size="2">configure on top of an existing <font size="2">Encrypted RAID1 set up and employ LVM<font size="2">.<br>
<br>
<font size="2">NOTE: our goal is to run <font size="2">many vir<font size="2">tual servers, eac<font size="2">h in <font size="2">its own logical volume<font size="2"> a<font size="2">nd it looks like putting LVM on top of the DRBD wo<font size="2">uld allow us to <font size="2">add logical volumes "on the fly"</font>, but al<font size="2">so have a "simpler" set<font size="2">up with one drbd device<font size="2"> <font size="2">for all the logical volumes a<font size="2">nd one related pacemaker config. Hence, exploring DRBD as <font size="2">a p<font size="2">hy<font size="2">sical volume.</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><br>
</font><br>
<font size="2">Q: For pacemaker to work, how do we do the <font size="2">DRBD disk/device mapping in th<font size="2">e <font size="2">drbd.conf file<font size="2">? An<font size="2">d should we set things up and encrypt last, or <font size="2">can we apply DRBD an<font size="2">d Pacema<font size="2">ker to an e<font size="2">xisting <font size="2">Encypted RAID1 setup?</font></font></font></font></font></font></font></font><br>
<br>
<font size="2"><font size="2">The examples we've seen show mapping between the dr<font size="2">bd device and </font>a physical disk<font size="2"> (e.g., sdb)<font size="2"> in the drbd.<font size="2">con<font size="2">f<font size="2">, and then "<font size="2">pvcreate /dev/d<font size="2">rbdnum"<font size="2"> and creating a volume group and logical volume on the drbd device.<br>
<br>
<font size="2"><font size="2">So <font size="2">for this type of set up, drbd.conf might look like:<br>
<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>device /dev/drbd1;
<br>
disk /dev/sd<font size="2">b</font>;<br>
address <font size="2">xx</font>.<font size="2">xx</font>.<font size="2">xx</font>.<font size="2">xx</font>:7789;
<br>
meta-disk internal;<font color="black" face="arial" size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><br>
<font size="2"><br>
In our case, because we have an existing RAID1 (md2) and it's encrypted (md2_crypt<font size="2"> or /dev/dm-7 </font>... we're unsure wh<font size="2">ich partition actually has the</font> data)<font size="2">, any thoughts on how to do th<font size="2">e DRBD mapping? E.g., <br>
<br>
<font size="2">device /dev/drbd1 minor 1;<br>
disk /dev<font size="2">/???????</font>;<br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font><font color="black" face="arial" size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2"><font size="2">address <font size="2">xx</font>.<font size="2">xx</font>.<font size="2">xx</font>.<font size="2">xx</font>:7789;
<br>
meta-disk internal;<br>
<br>
<font size="2">I.e., what <font size="2">goes in the "disk<font size="2"> /dev/?????<font size="2">;"? Would it be "disk /dev/md<font size="2">2</font>_crypt<font size="2">;"?</font><br>
<br>
<font size="2">An<font size="2">d <font size="2">can we do our setup on <font size="2">an existin<font size="2">g <font size="2">Encrypted RAID1 setup (if we do pvcreate on drbd1, we get <font size="2">errors)?<br>
<br>
<font size="2">Thanks!<br>
<br>
<font size="2">Ted</font><br>
</font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font></font>
</font></font>