Skip to content

Commit

Permalink
Slightly streamline DRBD config process and provide details on skippi…
Browse files Browse the repository at this point in the history
…ng initial sync. Edit README too.
  • Loading branch information
lwade committed Oct 25, 2012
1 parent feb36d7 commit 6410d71
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -30,7 +30,7 @@ the following tasks:

* Make sure that you have Java and ANT.

* Create environment variables for DOC_HOME (path to the euca/content/en_us directory
* Create environment variables for DOC_HOME (path to the euca/content/ directory
is), DITA_HOME (path to the euca/tools/DITA-OT directory), JAVA_HOME, and
ANT_HOME.

Expand Down
5 changes: 3 additions & 2 deletions content/en_us/ig/config_drbd.dita
Expand Up @@ -153,8 +153,7 @@ include "/etc/eucalyptus/drbd.conf";</codeblock>
partition allocated for Walrus (<filepath>/dev/sdb1</filepath>).</cmd>
<info>
<codeblock>drbdmeta --force /dev/drbd1 v08 /dev/sdb1 internal create-md
drbdadm attach r0
drbdadm connect r0</codeblock>
drbdadm up r0</codeblock>
<note type="important">Repeat this step on the secondary Walrus.</note>
</info>
</step>
Expand Down Expand Up @@ -199,3 +198,5 @@ euca-modify-property -p walrus.resource=r0</codeblock>
</taskbody>

</task>


29 changes: 29 additions & 0 deletions content/en_us/ig/config_drbd_sync.dita
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--This work by Eucalyptus Systems is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. See the accompanying LICENSE file for more information.-->
<!DOCTYPE task PUBLIC "-//OASIS//DTD DITA Task//EN" "task.dtd">
<task outputclass="docs one-sidebar sidebar-first" id="config_drbd">
<title>Skipping Initial Device Synchronisation</title>
<shortdesc/>
<taskbody>
<context>
<note type="restriction">Only perform these steps if you have no existing data on your DRBD devices. It is assumed you have completed step 11 in the DRBD configuration section.</note>
</context>
<steps>
<step>
<cmd>Before promoting the DRBD resource to primary, generate a new UUID and clear the bitmap on the primary Walrus ONLY.</cmd>
<info>
<codeblock>drbdadm -- --clear-bitmap new-current-uuid r0</codeblock>
</info>
</step>
<step>
<cmd>On the same Walrus, promote the resource to primary:</cmd>
<info>
<codeblock>drbdadm primary r0</codeblock>
</info>
</step>
<step>
<cmd>Resume the configuration at Step 13 of the previous section</cmd>
</step>
</steps>
</taskbody>
</task>

0 comments on commit 6410d71

Please sign in to comment.