5/18/2019 0 Comments How To Install Ocfs2 On Redhat 7Your Red Hat account gives you access to your profile, preferences, and services, depending on your status. Register If you are a new customer, register now for access to product evaluations and purchasing capabilities. » RE: ocfs2/oracleasm on Red Hat 4 - QuijadaReina, Julio C » RE: ocfs2/oracleasm on Red Hat 4 - Matthew Zito » RE: ocfs2/oracleasm on Red Hat 4 - QuijadaReina, Julio C. |||||||||||| » » » Here OCFS2 On Linux The Oracle Cluster File System (OCFS2) is an open source general-purpose file system that allows files to be shared between nodes of a cluster, including RAC. Although OCFS2 can be used to share datafiles between RAC nodes, the current recommendation is to avoid this and use ASM to control the shared disks directly as raw devices, or via the ASMLib software. Even so, OCFS2 has some uses in a RAC environment, like providing a shared location for UTL_FILE and external table operations for the whole RAC. The following article illustrates the installation and basic configuration of OCFS2. Perform all of the following operations on all nodes in the cluster, unless instructed otherwise. Create a mount point for the cluster file system. # mkdir /u02 Check the kernel version using the 'uname -r' command. ![]() # uname -r 2.6.9-22.EL # Download the appropriate version of the OCFS2 kernel module and tools from the following locations: • • Install the software. # rpm -Uvh ocfs2-2.6.9-22.EL-1.2.1-1.i686.rpm ocfs2console-1.2.1-1.i386.rpm ocfs2-tools-1.2.1-1.i386.rpm ocfs2-tools-debuginfo-1.2.1-1.i386.rpm Preparing. ########################################### [100%] 1:ocfs2-tools ########################################### [ 25%] 2:ocfs2-2.6.9-22.EL ########################################### [ 50%] 3:ocfs2console ########################################### [ 75%] 4:ocfs2-tools-debuginfo ########################################### [100%] # Start the OCFS2 Console by issuing the following command as the root user. # ocfs2console The image below shows the console window. Select the 'Cluster > Configure Nodes.' Menu option and ignore the subsequent information message by clicking the 'Close' button. On the 'Node Configuration' screen, click the '+ Add' button. Enter the server name and IP address for the first node, then click the 'OK' button. Add the second node, then click the 'Apply' button followed by the 'Close' button on the 'Node Configuration' screen. Edit the '/etc/init.d/o2cb' script, removing the following entries. ### BEGIN INIT INFO ## Provides: o2cb ## Required-Start: $network ## Should-Start: ## Required-Stop: ## Default-Start: 2 3 5 ## Default-Stop: ## Description: Load O2CB cluster services at system boot. ### END INIT INFO Reregister the o2cb service using the following commands. # chkconfig --del o2cb # chkconfig --add o2cb # chkconfig --list o2cb o2cb 0:off 1:off 2:on 3:on 4:on 5:on 6:off # Configure the o2cb service using the following commands. # /etc/init.d/o2cb offline ocfs2 Cleaning heartbeat on ocfs2: OK Stopping cluster ocfs2: OK # # /etc/init.d/o2cb unload Unmounting ocfs2_dlmfs filesystem: OK Unloading module 'ocfs2_dlmfs': OK Unmounting configfs filesystem: OK Unloading module 'configfs': OK # # /etc/init.d/o2cb configure Configuring the O2CB driver. Softube plugins free. This will configure the on-boot properties of the O2CB driver. The following questions will determine whether the driver is loaded on boot. The current values will be shown in brackets ('[]'). Hitting without typing an answer will keep that current value. Ctrl-C will abort. Load O2CB driver on boot (y/n) [y]: Cluster to start on boot (Enter 'none' to clear) [ocfs2]: Writing O2CB configuration: OK Loading module 'configfs': OK Mounting configfs filesystem at /config: OK Loading module 'ocfs2_nodemanager': OK Loading module 'ocfs2_dlm': OK Loading module 'ocfs2_dlmfs': OK Mounting ocfs2_dlmfs filesystem at /dlm: OK Starting cluster ocfs2: OK Other available commands include: • ' /etc/init.d/o2cb load' - Loads all OCFS2 modules. • ' /etc/init.d/o2cb online' - Brings the cluster online. • ' /etc/init.d/o2cb offline' - Takes the cluster offline. • ' /etc/init.d/o2cb unload' - Unloads all OCFS2 modules. Partition the shared disk(s) on a single node. The following example shows how the 'fdisk' command is used to partition the '/dev/sdb' disk. # cd /dev # ls sd* sda sda1 sda2 sdb # fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1305.
0 Comments
Leave a Reply. |