This file is indexed.

/usr/share/doc/drbd-doc/users-guide/ch-ocfs2.html is in drbd-doc 8.4~20151102-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Chapter 12. Using OCFS2 with DRBD</title><link rel="stylesheet" type="text/css" href="default.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="home" href="drbd-users-guide.html" title="The DRBD User’s Guide" /><link rel="up" href="p-apps.html" title="Part IV. DRBD-enabled applications" /><link rel="prev" href="_using_your_gfs2_filesystem_with_pacemaker.html" title="11.5. Using your GFS2 filesystem with Pacemaker" /><link rel="next" href="s-ocfs2-create-resource.html" title="12.2. Creating a DRBD resource suitable for OCFS2" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 12. Using OCFS2 with DRBD</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="_using_your_gfs2_filesystem_with_pacemaker.html">Prev</a> </td><th width="60%" align="center">Part IV. DRBD-enabled applications</th><td width="20%" align="right"> <a accesskey="n" href="s-ocfs2-create-resource.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h2 class="title"><a id="ch-ocfs2"></a>Chapter 12. Using OCFS2 with DRBD</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="section"><a href="ch-ocfs2.html#s-ocfs2-primer">12.1. OCFS2 primer</a></span></dt><dt><span class="section"><a href="s-ocfs2-create-resource.html">12.2. Creating a DRBD resource suitable for OCFS2</a></span></dt><dt><span class="section"><a href="s-ocfs2-create.html">12.3. Creating an OCFS2 filesystem</a></span></dt><dt><span class="section"><a href="s-ocfs2-pacemaker.html">12.4. Pacemaker OCFS2 management</a></span></dt><dd><dl><dt><span class="section"><a href="s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-drbd">12.4.1. Adding a Dual-Primary DRBD resource to Pacemaker</a></span></dt><dt><span class="section"><a href="s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-mgmtdaemons">12.4.2. Adding OCFS2 management capability to Pacemaker</a></span></dt><dt><span class="section"><a href="s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-fs">12.4.3. Adding an OCFS2 filesystem to Pacemaker</a></span></dt><dt><span class="section"><a href="s-ocfs2-pacemaker.html#s-ocfs2-pacemaker-constraints">12.4.4. Adding required Pacemaker constraints to manage OCFS2 filesystems</a></span></dt></dl></dd><dt><span class="section"><a href="s-ocfs2-legacy.html">12.5. Legacy OCFS2 management (without Pacemaker)</a></span></dt><dd><dl><dt><span class="section"><a href="s-ocfs2-legacy.html#s-ocfs2-enable">12.5.1. Configuring your cluster to support OCFS2</a></span></dt><dt><span class="section"><a href="s-ocfs2-legacy.html#s-ocfs2-use">12.5.2. Using your OCFS2 filesystem</a></span></dt></dl></dd></dl></div><p><a id="idm45883813527664" class="indexterm"></a><a id="idm45883813526784" class="indexterm"></a>This chapter
outlines the steps necessary to set up a DRBD resource as a block
device holding a shared Oracle Cluster File System, version 2 (OCFS2).</p><div class="important" style="margin-left: 0.5in; margin-right: 0.5in;"><table border="0" summary="Important"><tr><td rowspan="2" align="center" valign="top" width="25"><img alt="[Important]" src="images/important.png" /></td><th align="left">Important</th></tr><tr><td align="left" valign="top"><p>All cluster file systems <span class="emphasis"><em>require</em></span> fencing - not only via the DRBD
resource, but STONITH! A faulty member <span class="emphasis"><em>must</em></span> be killed.</p><p>You’ll want these settings:</p><pre class="literallayout">disk {
        fencing resource-and-stonith;
}
handlers {
        # Make sure the other node is confirmed
        # dead after this!
        fence-peer "/sbin/kill-other-node.sh";
}</pre><p>There must be <span class="emphasis"><em>no</em></span> volatile caches!
You might take a few hints of the page at <a class="ulink" href="https://fedorahosted.org/cluster/wiki/DRBD_Cookbook" target="_blank">https://fedorahosted.org/cluster/wiki/DRBD_Cookbook</a>,
although that’s about GFS2, not OCFS2.</p></td></tr></table></div><div class="section"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="s-ocfs2-primer"></a>12.1. OCFS2 primer</h2></div></div></div><p>The Oracle Cluster File System, version 2 (OCFS2) is a concurrent
access shared storage file system developed by Oracle
Corporation. Unlike its predecessor OCFS, which was specifically
designed and only suitable for Oracle database payloads, OCFS2 is a
general-purpose filesystem that implements most POSIX semantics. The
most common use case for OCFS2 is arguably Oracle Real Application
Cluster (RAC), but OCFS2 may also be used for load-balanced NFS
clusters, for example.</p><p>Although originally designed for use with conventional shared storage
devices, OCFS2 is equally well suited to be deployed on
<a class="link" href="s-dual-primary-mode.html" title="2.2. Dual-primary mode">dual-Primary DRBD</a>. Applications reading from
the filesystem may benefit from reduced read latency due to the fact
that DRBD reads from and writes to local storage, as opposed to the
SAN devices OCFS2 otherwise normally runs on. In addition, DRBD adds
redundancy to OCFS2 by adding an additional copy to every filesystem
image, as opposed to just a single filesystem image that is merely
shared.</p><p>Like other shared cluster file systems such as <a class="link" href="ch-gfs.html" title="Chapter 11. Using GFS2 with DRBD">GFS</a>, OCFS2
allows multiple nodes to access the same storage device, in read/write
mode, simultaneously without risking data corruption. It does so by
using a Distributed Lock Manager (DLM) which manages concurrent access
from cluster nodes. The DLM itself uses a virtual file system
(<code class="literal">ocfs2_dlmfs</code>) which is separate from the actual OCFS2 file systems
present on the system.</p><p>OCFS2 may either use an intrinsic cluster communication layer to
manage cluster membership and filesystem mount and unmount operation,
or alternatively defer those tasks to the
<a class="link" href="ch-pacemaker.html" title="Chapter 8. Integrating DRBD with Pacemaker clusters">Pacemaker</a>cluster infrastructure.</p><p>OCFS2 is available in SUSE Linux Enterprise Server (where it is the
primarily supported shared cluster file system), CentOS, Debian
GNU/Linux, and Ubuntu Server Edition. Oracle also provides packages
for Red Hat Enterprise Linux (RHEL). This chapter assumes running
OCFS2 on a SUSE Linux Enterprise Server system.</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="_using_your_gfs2_filesystem_with_pacemaker.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="p-apps.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="s-ocfs2-create-resource.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">11.5. Using your GFS2 filesystem with Pacemaker </td><td width="20%" align="center"><a accesskey="h" href="drbd-users-guide.html">Home</a></td><td width="40%" align="right" valign="top"> 12.2. Creating a DRBD resource suitable for OCFS2</td></tr></table></div></body></html>