linux下Oracle11g RAC搭建(二)
2014-06-10 20:30
453 查看
linux下Oracle11g RAC搭建(二)
注:用哪个网段都行,一定保证不要被其它设备占用即可。
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
私有网卡预分配:
node1:10.10.10.71
node2:10.10.10.72
eth0配置(桥接网卡)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static //修改成静态
ONBOOT=yes
IPADDR=192.168.4.71 //添加公有IP
NETMASK=255.255.255.0 //添加子网掩码
GATEWAY=192.168.4.1 //添加网关
//删除掉广播地址、MAC地址
eth1配置(私有网卡)
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
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
//删除掉广播地址、MAC地址
eth1配置(私有网卡)
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
分别对node1 和 node2中的磁盘分区
对node1中的磁盘分区
sda1表示第一块磁盘的第一个分区
sda2表示第一块磁盘的第二个分区
sda表示第一块磁盘
sdb表示第二块磁盘
node1下查看(应该能看到3块)
# fdisk –l //查看磁盘分配情况
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
//分区,表示对/dev下的/sdb(第二块磁盘)分区
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 //删除分区
l list known partition types
m print this menu
n add a new partition //添加分区
o create a new empty DOS partition table
p 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 //保存退出
x extra functionality (experts only)
Command (m for help): n
Command action
e extended 扩展分区
p primary partition (1-4) 主分区
p 创建一个主分区
Partition number (1-4): 1
First cylinder (1-3916, default 1):
Last cylinder or +size or +sizeM or +sizeK (1-3916,default 3916):
按回车 因为只分一个区
Command (m for help): p //查看分区结果,打印分区表
Command (m for help): w //保存退出
#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 //格式化sdb1,格式成ext3格式文件系统
#mkdir /u01 //创建挂载目录
#mount /dev/sdb1 /u01 //挂载到u01下,手工mount重启后失效
[root@node1 etc]# df -h //查看磁盘信息,硬盘挂载成功
#vi /etc/fstab //创建自动挂载,保证重启后仍可用
添加:
/dev/sdb1 /u01 ext3 defaults 0 0
要挂载的对象 挂载的目录 系统类型 文件系统访问权限 开机后是否检测出问题后是否转储
# mount /u01 //挂载
Command (m for help): n
Command action
e extended 扩展分区
p primary partition (1-4) 主分区
p 创建一个主分区
Partition number (1-4): 1
First cylinder (1-3916, default 1): 1
按回车 因为只分一个区
Command (m for help): p
Command (m for help): w 保存分区
#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 对sdb1格式化
#mkdir /u01
//创建挂载目录
#vi /etc/fstab //创建自动挂载
添加:/dev/sdb1 /u01 ext3 defaults 0 0
# mount /u01 //挂载
[root@node2 etc]# df -h //查看硬盘信息, 硬盘挂载成功了
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 30G 173M 28G 1% /u01
一、安装前配置
网络的配置
IP占用测试
进入windows下,执行cmd,使用ping命令验证网段是否被占用。注:用哪个网段都行,一定保证不要被其它设备占用即可。
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
私有网卡预分配:
node1:10.10.10.71
node2:10.10.10.72
修改主机名
配置node1(节点1)网络
eth0和eth1不在同网段eth0配置(桥接网卡)
vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static //修改成静态
ONBOOT=yes
IPADDR=192.168.4.71 //添加公有IP
NETMASK=255.255.255.0 //添加子网掩码
GATEWAY=192.168.4.1 //添加网关
//删除掉广播地址、MAC地址
eth1配置(私有网卡)
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
配置node2(节点2)网络
eth0配置(桥接网卡)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
//删除掉广播地址、MAC地址
eth1配置(私有网卡)
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对新添加的硬盘分区
[root@node1 etc]# df -h //查看磁盘信息分别对node1 和 node2中的磁盘分区
对node1中的磁盘分区
sda1表示第一块磁盘的第一个分区
sda2表示第一块磁盘的第二个分区
sda表示第一块磁盘
sdb表示第二块磁盘
node1下查看(应该能看到3块)
# fdisk –l //查看磁盘分配情况
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
一、对node1 sdb分区
#fdisk /dev/sdb//分区,表示对/dev下的/sdb(第二块磁盘)分区
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 //删除分区
l list known partition types
m print this menu
n add a new partition //添加分区
o create a new empty DOS partition table
p 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 //保存退出
x extra functionality (experts only)
Command (m for help): n
Command action
e extended 扩展分区
p primary partition (1-4) 主分区
p 创建一个主分区
Partition number (1-4): 1
First cylinder (1-3916, default 1):
Last cylinder or +size or +sizeM or +sizeK (1-3916,default 3916):
按回车 因为只分一个区
Command (m for help): p //查看分区结果,打印分区表
Command (m for help): w //保存退出
#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 //格式化sdb1,格式成ext3格式文件系统
#mkdir /u01 //创建挂载目录
#mount /dev/sdb1 /u01 //挂载到u01下,手工mount重启后失效
[root@node1 etc]# df -h //查看磁盘信息,硬盘挂载成功
#vi /etc/fstab //创建自动挂载,保证重启后仍可用
添加:
/dev/sdb1 /u01 ext3 defaults 0 0
要挂载的对象 挂载的目录 系统类型 文件系统访问权限 开机后是否检测出问题后是否转储
# mount /u01 //挂载
二、对node2的sdb磁盘分区
#fdisk /dev/sdb------m (help)查看帮助Command (m for help): n
Command action
e extended 扩展分区
p primary partition (1-4) 主分区
p 创建一个主分区
Partition number (1-4): 1
First cylinder (1-3916, default 1): 1
按回车 因为只分一个区
Command (m for help): p
Command (m for help): w 保存分区
#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 对sdb1格式化
#mkdir /u01
//创建挂载目录
#vi /etc/fstab //创建自动挂载
添加:/dev/sdb1 /u01 ext3 defaults 0 0
# mount /u01 //挂载
[root@node2 etc]# df -h //查看硬盘信息, 硬盘挂载成功了
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 30G 173M 28G 1% /u01
**************************后续更新上传中敬请关注**************************************
声明:
原创作品,出自 “深蓝的blog” 博客,允许转载,转载时请务必注明出处(http://blog.csdn.net/huangyanlong)。关于涉及版权事宜,作者有权追究法律责任。
相关文章推荐
- Linux下搭建Oracle11g RAC(3)----创建用户及配置相关文件
- linux下Oracle11g RAC搭建(七)
- Linux下搭建Oracle11g RAC
- Linux下搭建Oracle11g RAC(4)----配置oracle,grid用户SSH对等性
- linux下Oracle11g RAC搭建(一)
- linux下Oracle11g RAC搭建(十)
- linux下Oracle11g RAC搭建(九)
- Linux下搭建Oracle11g RAC(6)----安装Grid Infrastructure
- oracle11g rac环境搭建中linux DNS Server搭建
- Linux下搭建Oracle11g RAC(8)----创建ASM磁盘组
- linux下Oracle11g RAC搭建(二)
- linux下Oracle11g RAC搭建(六)
- Linux下搭建Oracle11g RAC(7)----安装Oracle 软件
- linux下Oracle11g RAC搭建(六)
- linux下Oracle11g RAC搭建(七)
- linux下Oracle11g RAC搭建(八)
- linux下Oracle11g RAC搭建
- linux下Oracle11g RAC搭建(九)
- linux下Oracle11g RAC搭建(五)
- Linux下搭建Oracle11g RAC(5)----配置ASM磁盘