How To Install Ocfs2 On Redhat 7
Last year we had a project which required us to build out a KVM environment which used shared storage. Most often that would be NFS all the way and very occasionally Ceph. This time however the client already had a Fibre Channel over Ethernet (FCoE) SAN which had to be used, and the hosts were HP blades using shared converged adaptors in the chassis- just add a bit more fun. A small crowbar and a large hammer later, the LUNs from the SAN were being presented to the hosts. So far so good. But Clustered File Systems If you need to have a volume shared between two or more hosts, you can provision the disk to all the machines, and everything might appear to work, but each host will be maintaining its own inode table and so will be unaware of changes other hosts are making to the file system, and in the event that writes ever happened to the same areas of the disk at the same time you will end up with data corruption. The key is that you need a way to track locks from multiple nodes. This is called a Distributed Locking Manager or DLM and for this you need a Clustered File System.

Options There are dozens of clustered file systems out there, proprietary and open source. For this project we needed a file system which; • Supported on CentOS6.7 • Open source • Supports multi-path • Easy to configure not a complex group of Distributed Parallel Filesystems • Need to support concurrent file access and deliver the utmost performance • No management node over head, so more cluster drive space. So we opted for OCFS2 (Oracle Clustered File System 2) Once you have the ‘knack’, installation isn’t that arduous, and it goes like this These steps should be repeated on each node. Installing the OCFS file system binaries In order to use OCFS2, we need to install the kernel modules and OCFS2-tools.
7. China Imei Changer Software Free Download. Populous Tribal Conquest Free there. 2.9 Mounting OCFS2 Volumes 7.2.10 Querying and Changing Volume Parameters The procedures in the following sections describe how to set up a cluster to use OCFS2. This manual explains how to boot the Red Hat Enterprise Linux 7.4 installation program (Anaconda) and how to install Red Hat Enterprise Linux 7.4 on AMD64 and Intel.
First we need to download and install the OCFS2 kernel modules for CentOS 6. Oracle now bundles the OCFS2 kernel modules in its Unbreakable Kernel, but they also used to be shipped with CloudStack 3.x so we used those. Wget rpm -i ocfs2-kmod-1.5.0-1.el6.x86_64.rpm Next we copy the OCFS2 kernel modules into the current running kernel directory for CentOS 6.7 cp -Rpv /lib/modules/2.6.32-71.el6.x86_64/extra/ocfs2/ /lib/modules/2.6.32-573.3.1.el6.x86_64/extra/ocfs2 Next we update the running kernel with the newly installed modules. Depmod –a Add the Oracle yum repo for el6 (CentOS 6.7) for the OCFS2-tools cd /etc/yum.repos.d wget And add the PKI keys for the Oracle el6 YUM repo cd /etc/pki/rpm-gpg/ wget rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle-ol6 Now we can install the OCFS2 tools to be used to administrate the OCFS2 Cluster. Yum install -y ocfs2-tools Finally we add the OCFS2 modules into the init script to load OCFS2 at boot.

Sed -i '/online ' $1 '/a /sbin /modprobe -f ocfs2 nmount -a' /etc/init.d/o2cb 2. Configure the OCFS2 Cluster. OCFS2 cluster nodes are configured through a file (/etc/ocfs2/cluster.conf). This file has all the settings for the OCFS2 cluster. An example configuration file might look like this: cd /etc/ocfs2/ vim cluster.conf node: ip_port = 7777 ip_address = 192.168.100.1 number = 0 name = host1.domain.com cluster = ocfs2 node: ip_port = 7777 ip_address = 192.168.100.2 number = 1 name = host2.domain.com cluster = ocfs2 node: ip_port = 7777 ip_address = 192.168.100.3 number = 2 name = host3.domain.com cluster = ocfs2 cluster: node_count = 3 name = ocfs2 We will need to run the o2cb service from the /etc/init.d/ directory to configure the OCFS2 cluster. © Copyright - ShapeBlue Ltd 2013-17. All rights reserved. Designed By Blinkered Media CloudStack and the CloudStack logo are trademarks of the Apache Software Foundation. Shape Blue Ltd is a company incorporated in England & Wales.
ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.
Welcome to LinuxQuestions.org, a friendly and active Linux Community. Convert Tib File To Iso more. You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features.
Registration is quick, simple and absolutely free. Note that registered members see fewer ads, and ContentLink is completely disabled once you log in. Are you new to LinuxQuestions.org? Visit the following links: If you have any problems with the registration process or your account login, please.