<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Lucian!<br>
    <br>
    I can and will only speak about question#1. If I correctly read your
    past mails, you're trying to implement DRBD for some VMware
    platform, right ? and then your actual question is "How can I
    DRBDize only selected VM's vmdk files, not all VMs ?" right ?. If
    so, IMHO I believe the immediate answer is "No", AFAIK there's no
    mean to implement DRBD at the vSphere hypervisor level, even a
    Service Console, which is what you would need to make it work.
    However I see 2 ways that would provide you with kind of a solution
    :<br>
    1) You can implement DRBD within your VMs. This does not sound the
    best solution as it will require an equivalent "secondary VM" on the
    other side, plus you will have to manage replication traffic within
    both VMs : Complicated, and personnally I figure out data
    replication as an infrastructure task, not an application task.<br>
    2) You can give Raw Device Mappings to your VMs instead of regular
    VMDK files. In such case, you woud present one or several LUNs from
    your DRBD storage platform to your VM via iSCSI for instance. RDM
    will make them appear just like if they were regular VMDK files,
    except it's not a file, it's a LUN formatted with whatever format
    you require. Then, it's no big deal to replicate such a LUN using
    standard and supported&nbsp; DRBD ways.<br>
    <br>
    However, if you chose solution 2), you could ask yourself if, while
    replicating some LUNs, it wouldn't worth replicate a complete VMFS
    LUN storing VMDKs, rather classic LUNs containing ext3 or something.
    Unless replicated volume size is too big, because of your
    replication network bandwitdh or something, when your replicating,
    why not replicating everything ? Well, this choice is up to you...<br>
    <br>
    Hope this helps.<br>
    <br>
    Best regards,<br>
    <br>
    Pascal.<br>
    <br>
    Le 12/07/2011 10:51, Lucian Torje a &eacute;crit&nbsp;:
    <blockquote
cite="mid:CAOEF67omSEnLOJhzbpRvT1-1MmmXAE05sSDdJx3SfMCfX8tRXA@mail.gmail.com"
      type="cite">Hello,<br>
      I'm trying to configure DRBD &amp; Pacemaker &amp; Corosync &amp;
      RabbitMQ and I need some help in the following areas:<br>
      <br>
      1) Is it possible to configure to use a file containing a
      filesystem in DRBD ( filesystem within another filesystem file) ?<br>
      2) Pacemaker automatically mounts the drdb device on the master
      node (the cluster contains a primary-secondary nodes) while the
      slave doesn't have access in order not to corrupt the data, right?<br>
      <br>
      I have the following configuration and the filesystem was not
      mounted for some reason (although DRBD management console displays
      that drbd:r0 block device is synchronized and configured as
      primary-secodary):<br>
      <br>
      $crm configure show<br>
      node ha-node1
      <br>
      node ha-node2
      <br>
      primitive bunny ocf:rabbitmq:rabbitmq-server \
      <br>
      &nbsp;&nbsp;&nbsp; params mnesia_base="/mnt/drbd1"
      <br>
      primitive drbd ocf:linbit:drbd \
      <br>
      &nbsp;&nbsp;&nbsp; params drbd_resource="drbd1" \
      <br>
      &nbsp;&nbsp;&nbsp; op monitor interval="60s" \
      <br>
      &nbsp;&nbsp;&nbsp; meta is-managed="true"
      <br>
      primitive drbd_fs ocf:heartbeat:Filesystem \
      <br>
      &nbsp;&nbsp;&nbsp; params device="/dev/drbd0" directory="/mnt/drbd1"
      fstype="ext3"
      <br>
      ms drbd_ms drbd \
      <br>
      &nbsp;&nbsp;&nbsp; meta master-max="1" master-node-max="1" clone-max="2"
      clone-node-max="1" notify="true"
      <br>
      colocation bunny_on_fs inf: bunny drbd_fs
      <br>
      colocation fs_on_drbd inf: drbd_fs drbd_ms:Master
      <br>
      order bunny_after_fs inf: drbd_fs bunny
      <br>
      order fs_after_drbd inf: drbd_ms:promote drbd_fs:start
      <br>
      property $id="cib-bootstrap-options" \
      <br>
      &nbsp;&nbsp;&nbsp; dc-version="1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd" \
      <br>
      &nbsp;&nbsp;&nbsp; cluster-infrastructure="openais" \
      <br>
      &nbsp;&nbsp;&nbsp; expected-quorum-votes="2" \
      <br>
      &nbsp;&nbsp;&nbsp; last-lrm-refresh="1310458848"
      <br>
      <br>
      <br>
      $ crm_mon<br>
      ============
      <br>
      Last updated: Tue Jul 12 01:30:55 2011
      <br>
      Stack: openais
      <br>
      Current DC: ha-node1 - partition with quorum
      <br>
      Version: 1.0.8-042548a451fce8400660f6031f4da6f0223dd5dd
      <br>
      2 Nodes configured, 2 expected votes
      <br>
      3 Resources configured.
      <br>
      ============
      <br>
      &nbsp;<br>
      Online: [ ha-node1 ha-node2 ]
      <br>
      <br>
      3) How can I mount a shared folder instead of DRDB just to test
      the rest of configuration?<br>
      <br>
      Thank you<br>
      <br>
      Best regards,<br>
      Lucian-Paul Torje<br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
drbd-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:drbd-user@lists.linbit.com">drbd-user@lists.linbit.com</a>
<a class="moz-txt-link-freetext" href="http://lists.linbit.com/mailman/listinfo/drbd-user">http://lists.linbit.com/mailman/listinfo/drbd-user</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>