Configure OCFS2 shared storage in Oracle Enterprise Linux 5.9

Source: Internet
Author: User

1. Prepare the environment
1.1. Software Information
Virtual Machine: VirtualBox 4.2
Operating System: Oracle Linux Server release 5.9
OCFS2: ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm
 
1.2. Host Configuration
1.2.1. Hosts file
[Root @ skynode1 ~] # More/etc/hosts
# Do not remove the following line, or various programs
# That require network functionality will fail.
127.0.0.1 localhost
# Skynode1
192.168.1.241 skynode1
Skynode1-vip 192.168.1.242
# Skynode2
192.168.1.245 skynode2
192.168.1.246 skynode2-vip
192.168.1.250 sky-cluster-scan
10.11.11.11 skynode1-priv
10.11.11.12 skynode2-priv
The current host is used in a simulated rac environment. Therefore, we use a private Nic as the communication address of the ocfs2 cluster. Of course, this cannot be done in the production environment, which will bring serious performance pressure to the private Nic. We recommend that you add a separate Nic as the communication Nic of the ocfs2 cluster.
 
1.2.2. Disk Space
Add an independent disk for ocfs2 cluster Testing

 
1.3. Install ocfs2
After the operating system is installed, the ocfs2-tools has been installed by default, You need to manually install ocfs2. Each node that uses the ocfs2 shared file system must be installed.
[Oracle @ skynode1 ~] $ Rpm-qa | grep ocfs
Ocfs2-tools-1.8.0-10.el5
 
Select yum for ocfs2 installation.
[Root @ skynode1 Server] # yum list | grep ocfs2
This system is not registered with ULN.
You can use up2date -- register to register.
ULN support will be disabled.
Ocfs2-tools.x86_64 1.8.0-10. el5 installed
Ocfs2-2.6.18-348.el5.x86_64 1.4.10-1. el5 oel5
Ocfs2-2.6.18-348.el5debug.x86_64 1.4.10-1. el5 oel5
Ocfs2-2.6.18-348.el5xen.x86_64 1.4.10-1. el5 oel5
Ocfs2-tools-devel.x86_64 1.8.0-10. el5 oel5
 
[Root @ skynode1 Server] # yum install ocfs2-2.6.18-348.el5.x86_64
Loaded plugins: rhnplugin, security
This system is not registered with ULN.
You can use up2date -- register to register.
ULN support will be disabled.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ocfs2-2.6.18-348.el5.x86_64. 4.10-1. el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
========================================================== ======================================
Package Arch Version Repository Size
========================================================== ======================================
Installing:
Ocfs2-2.6.18-348.el5 x86_64 1.4.10-1. el5 oel5 323 k
Transaction Summary
========================================================== ======================================
Install 1 Package (s)
Upgrade 0 Package (s)
Total download size: 323 k
Is this OK [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ocfs2-2.6.18-348.el5 1/1
Installed:
Ocfs2-2.6.18-348.el5.x86_64. 4.10-1. el5
Complete!
 
There are not many dependencies, and the installation is smooth.
 
Note:
In the new version of the OEL system, the graphical tool of ocfs2-console is no longer provided for ocfs configuration.
Ocfs2-tools is a character interface tool. Therefore, we configure an ocfs2 cluster through the ocfs2-tools command line.
USER's guide for release 1.6
The ocfs2-tools (CLI) and ocfs2console (GUI ).
Select rpm for installation for other nodes
[Root @ skynode2 ~] # Rpm-ivh ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm
Warning: ocfs2-2.6.18-348.el5-1.4.10-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing... ######################################## ### [100%]
1: ocfs2-2.6.18-348.el5 ####################################### #### [100%]

Recommended reading:

How to install Oracle 11g on Linux

Detailed description of the installation process of Oracle 11g Database in Linux

How to install Oracle 11g R2 single-instance database on CentOS 5.6

To install Oracle Clusterware on an Oracle vmvm

Install Oracle 11 GB single-instance database on Linux under vmvm

  • 1
  • 2
  • 3
  • 4
  • Next Page

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.