© Maxim Borovkov, 123RF.com

© Maxim Borovkov, 123RF.com

High-availability workshop: GFS with DRBD and Pacemaker

Simultaneous

Article from ADMIN 07/2012
By
Cl uster filesystems such as GFS2 and OCFS2 allow many clients simultaneous access to a storage device. Along with DRBD and Pacemaker, this offers a low-budget option for creating a redundant service – but you need to watch out for a couple of pitfalls.

Cluster filesystems are most frequently seen in the context of high-availability (HA) clusters. The most popular filesystems of this type are GFS2 and OCFS2 – although Lustre has attracted much attention – and NFS version 4 offers a similar service (pNFS). Of course, you can argue the pros and cons of cluster filesystems until the cows come home (see the "Risks of DRBD in Dual-Primary Mode" boxout), but once the decision is made for a cluster filesystem, Pacemaker and DRBD will help you ensure high availability for the system.

Risks of DRBD in Dual-Primary Mode

Running a DRBD resource in dual-primary mode is a mandatory requirement for using GFS2 with the resource. It is advisable not to underestimate the risks that emanate from this kind of DRBD use.

Standard Filesystems

Filesystems exist for a good reason: They make memory space manageable. Without a filesystem, it would be difficult to find data that you write to the storage medium when you need it. The filesystem structure makes it possible to retrieve and modify content on the storage medium. As long as nothing gets in the filesystem's way, this principle works well. And, as long as a storage medium is consistent, everything is well in the admin's universe.

Filesystems always assume that they are the only entity allowed to access a storage medium – or, to be more precise, that only the filesystem instance that belongs to a specific mount is allowed to do so. Simultaneous access by two filesystems to the same storage medium is not included in the concept of the standard filesystem on Linux. The filesystems in Linux thus go to great lengths to prevent simultaneous access by two or more instances of a filesystem to the same medium. You can't remount a filesystem at a different position if it is already

...
Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=