Build Oracle11gRAC in linux (2)

Source: Internet
Author: User

Establish Oracle11g RAC in linux (2)

1. Test IP address occupation configured for the network before installation

Go to windows, run cmd, and run the ping command to verify whether the network segment is occupied.

Note: You can use any CIDR block. Make sure that the CIDR block is not occupied by other devices.

Ping 192.168.4.71

Ping 192.168.4.72

Ping 192.168.4.73

Ping 192.168.4.74

Ping 192.168.4.75

Private Nic pre-allocation:

Node1: 10.10.10.71

Node2: 10.10.10.72

Modify host name

 

Configure node1 (node 1) Network

Eth0 and eth1 are not in the same network segment

Eth0 configuration (bridging network card)

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE = eth0

BOOTPROTO = static // modify it to static

ONBOOT = yes

IPADDR = 192.168.4.71 // Add a public IP

NETMASK = 255.255.255.0 // Add a subnet mask

GATEWAY = 192.168.4.1 // Add a GATEWAY

// Delete the broadcast address and MAC address

Eth1 configuration (Private Nic)

Vi/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE = eth1

BOOTPROTO = static

ONBOOT = yes

IPADDR = 10.10.10.71

NETMASK = 255.255.255.0

#Service network restart

Configure node2 (node 2) Network

Eth0 configuration (bridging network card)

Vi/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE = eth0

BOOTPROTO = static

ONBOOT = yes

IPADDR = 192.168.4.72

NETMASK = 255.255.255.0

GATEWAY = 192.168.4.1

// Delete the broadcast address and MAC address

Eth1 configuration (Private Nic)

Vi/etc/sysconfig/network-scripts/ifcfg-eth1

DEVICE = eth1

BOOTPROTO = static

ONBOOT = yes

IPADDR = 10.10.10.72

NETMASK = 255.255.255.0

#Service network restart

Linux New Hard Disk Partition

[Root @ node1 etc] #Df-h// View disk Information

Partition the disks in node1 and node2 respectively.

Partition the disk in node1

Sda1 indicates the first partition of the first disk.

Sda2 indicates the second partition of the first disk.

Sda indicates the first disk.

Sdb indicates the second disk

View under node1 (3 blocks should be displayed)

#Fdisk-l// View disk allocation

Disk/dev/sda: 21.4 GB, 21474836480 bytes

255 heads, 63 sectors/track, 2610 cylinders

Units = cylinders of 16065*512 = 8225280 bytes

DeviceBoot Start End Blocks Id System

/Dev/sda1*1 13 104391 83 Linux

/Dev/sda2 14 2610 20860402 + 8e Linux LVM

Disk/dev/sdb: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065*512 = 8225280 bytes

Disk/dev/sdb doesn' t contain a valid partition table

I. Partition node1 sdb

#Fdisk/dev/sdb

// Partition, indicating/sdb (second disk) Partition under/dev

Command (m for help ):M

Command action

A toggle a bootable flag

B edit bsd disklabel

C toggle the dos compatibility flag

D delete a partition // delete a partition

L list known partition types

M print this menu

N add a new partition // add a partition

O create a new empty DOS partition table

P print the partition table // print the partition table

Q quit without saving changes

S create a new empty Sun disklabel

T change a partition's system id

U change display/entry units

V verify the partition table

W write table to disk and exit // save and exit

X extra functionality (experts only)

Command (m for help ):N

Command action

E extended partition

P primary partition (1-4) primary partition

PCreate a primary Partition

Partition number (1-4 ):1

First cylinder (1-3916, default 1 ):

Last cylinder or + size or + sizeM or + sizeK (1-3916, default 3916 ):

Press enter because only one partition is located.

Command (m for help ):P// View the partition result and print the Partition Table

Command (m for help ):W// Save and exit

#Fdisk-l

Disk/dev/sdb: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065*512 = 8225280 bytes

DeviceBoot Start End Blocks Id System

/Dev/sdb1 1 3916 31455238 + 83 Linux

#Mkfs. ext3/dev/sdb1// Format sdb1 in ext3 format

#Mkdir/u01// Create a mount directory

#Mount/dev/sdb1/u01// Mount it to u01 and it will expire after manual mount restart

[Root @ node1 etc] #Df-h// View the disk information. The hard disk is mounted successfully.

 

#Vi/etc/fstab// Create an automatic mount to ensure it is still available after restart

Add:

/Dev/sdb1/u01 ext3 defaults 0 0

Directory system type file system access permission of the object to be mounted whether to detect whether to dump after startup

# Mount/u01// Mount

Ii. Partition the sdb disk of node2

#Fdisk/dev/sdb ------ m(Help) view help

Command (m for help ):N

Command action

E extended partition

P primary partition (1-4) primary partition

PCreate a primary Partition

Partition number (1-4 ):1

First cylinder (1-3916, default 1 ):1

Press enter because only one partition is located.

Command (m for help ):P

Command (m for help ):WSave Partition

# Fdisk-l

Disk/dev/sdb: 32.2 GB, 32212254720 bytes

255 heads, 63 sectors/track, 3916 cylinders

Units = cylinders of 16065*512 = 8225280 bytes

DeviceBoot Start End Blocks Id System

/Dev/sdb1 1 3916 31455238 + 83 Linux

Format partitions

# Mkfs. ext3/dev/sdb1 format sdb1

# Mkdir/u01// Create a mount directory

# Vi/etc/fstab// Create automatic mounting

Add:/dev/sdb1/u01 ext3 defaults 0 0

# Mount/u01// Mount

[Root @ node2 etc] #Df-h// View the hard disk information. The hard disk is mounted successfully.

Filesystem Size Used Avail Use % Mounted on

/Dev/sdb1 30G 173 M 28G 1%/u01

******** ******************************

Statement:


Original works, from "Deep Blue blog" blog, allow reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ). The author has the right to pursue legal liability for copyright issues.

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.