© Kheng Ho Toh, 123RF.com

© Kheng Ho Toh, 123RF.com

A simple approach to the OCFS2 cluster filesystem

Divide and Conquer

Article from ADMIN 01/2010
By
The vanilla kernel includes two cluster filesystems: OCFS2 has been around since 2.6.16 and is thus senior to GFS2. Although OCFS2 is non-trivial under the hood, it is fairly simple to deploy.

Wherever two or more computers need to access the same set of data, Linux and Unix systems will have multiple competing approaches. (For an overview of the various technologies, see the "Shared Filesystems" box.) In this article, I take a close look at OCFS2, the Oracle Cluster File System shared disk filesystem [1]. As the name suggests, this filesystem is mainly suitable for cluster setups with multiple servers.

Shared Filesystems

The shared filesystem family is a fairly colorful bunch. By definition, they all share the ability to grant multiple computers simultaneous access to certain data. The differences are in the way they implement these requirements.

On the one hand are network filesystems, in which the most popular representative in the Unix/Linux camp is Network Filesystem (NFS) [2]. NFS is available for more or less any operating system and to all intents and purposes only asks the operating system to provide a TCP/IP stack. The setup is also fairly simple. The Andrew filesystem (AFS) is another network filesystem that is available in a free implementation, OpenAFS [3].

On the other hand are cluster filesystems. Before computers can access "distributed" data, they first need to enter the cluster. The cluster setup requires additional infrastructure, such as additional I/O cards, cluster software, and, of course, a configuration. Cluster filesystems are also categorized by the way they store data. Those based on shared disks allow multiple computers to read and write to the same medium. I/O is handled via Fibre Channel ("classical SAN") or TCP/IP (iSCSI). The most popular representatives in the Linux camp here are OCFS2 and

...
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

Related content

  • High availability clustering on a budget with KVM
    High-availability clusters have become an important part of the system administration landscape. Tools like KVM bring the benefits of virtualization to HA clustering environments.
  • Managing Linux Filesystems
    Linux filesystems range from block-based network filesystems, to temporary filesystems in RAM, to pseudo filesystems. We explain how filesystems are set up and how to manage them.
  • Highly available Hyper-V in Windows Server 2016
    Microsoft has extended the failover options for Hyper-V in Windows Server 2016 to include two new cluster modes, as well as the ability to define an Azure Cloud Witness server. We look at how to set up a Hyper-V failover cluster.
  • High-availability workshop: GFS with DRBD and Pacemaker
    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.
  • Storage cluster management with LINSTOR
    LINSTOR is a toolkit for automated cluster management that takes the complexity out of DRBD management and offers a wide range of functions, including provisioning and snapshots.
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=