Skip to content

Commit d21f31d

Browse files
committed
Fix for bnc #874755 ([doc] [HA] rabbitmq and database files when using DRBD)
git-svn-id: http://svn.suse.de/svn/doc/trunk/cloud/en@59227 2463f871-af05-0410-bd21-ebfa852e3ce4
1 parent 3d85f0d commit d21f31d

1 file changed

Lines changed: 57 additions & 10 deletions

File tree

xml/depl_maintenance.xml

Lines changed: 57 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,63 @@ zypper install suse-cloud-upgrade</screen>
370370
<varlistentry>
371371
<term>database-server (Database &barcl;)</term>
372372
<listitem>
373+
<orderedlist>
374+
<listitem>
375+
<para>
376+
Stop the database on the node the Database &barcl; is deployed with
377+
the command:
378+
</para>
379+
<screen>rcpostgresql stop</screen>
380+
</listitem>
381+
<listitem>
382+
<para>
383+
Copy <filename>/var/lib/pgsql</filename> to a temporary location
384+
on the node, e.g.:
385+
</para>
386+
<screen>cp -ax /var/lib/pgsql /tmp</screen>
387+
</listitem>
388+
<listitem>
389+
<para>
390+
Redeploy the Database &barcl; to the cluster. The original node
391+
may also be part of this cluster.
392+
</para>
393+
</listitem>
394+
<listitem>
395+
<para>
396+
Log in to a cluster node and run the following command to
397+
determine which cluster node runs the <systemitem
398+
class="resource">postgresql</systemitem> service:
399+
</para>
400+
<screen>crm_mon -1</screen>
401+
</listitem>
402+
<listitem>
403+
<para>
404+
Log in to the cluster node running <systemitem
405+
class="resource">postgresql</systemitem>.
406+
</para>
407+
</listitem>
408+
<listitem>
409+
<para>
410+
Stop the <systemitem class="resource">postgresql</systemitem>
411+
service:
412+
</para>
413+
<screen>crm resource stop postgresql</screen>
414+
</listitem>
415+
<listitem>
416+
<para>
417+
Copy the data backed up earlier to the cluster node:
418+
</para>
419+
<screen>rsync -av --delete
420+
<replaceable>NODE_WITH_BACKUP</replaceable>:/backup/pgsql/ /tmp/pgsql/</screen>
421+
</listitem>
422+
<listitem>
423+
<para>
424+
Restart the <systemitem class="resource">postgresql</systemitem>
425+
service:
426+
</para>
427+
<screen>crm resource start postgresql</screen>
428+
</listitem>
429+
</orderedlist>
373430
<para>
374431
Copy the content of <filename>/var/lib/pgsql/data/</filename> from
375432
the original database node to the cluster node with DRBD or shared
@@ -393,16 +450,6 @@ zypper install suse-cloud-upgrade</screen>
393450
done</screen>
394451
</listitem>
395452
</varlistentry>
396-
<varlistentry>
397-
<term>rabbitmq-server (RabbitMQ &barcl;) </term>
398-
<listitem>
399-
<para>
400-
Copy the content of <filename>/var/lib/rabbitmq/</filename> from
401-
the original RabbitMQ node to the cluster node with DRBD or shared
402-
storage.
403-
</para>
404-
</listitem>
405-
</varlistentry>
406453
</variablelist>
407454
</step>
408455
</substeps>

0 commit comments

Comments
 (0)