ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Openfiler+RAC两个节点的安装之二--安装操作系统

Openfiler+RAC两个节点的安装之二--安装操作系统

原创 Linux操作系统 作者:jolly10 时间:2012-08-03 16:30:29 0 删除 编辑

首先要在vmware server 2上建立第一台Red Hat Enterprise Linux Server release 5.4。

两个网卡,一个是briged,一个是hostonly的。

[@more@]

安装时注意关闭防火墙。

安装以下程序包组:

Desktop Environments

    • GNOME Desktop Environment
  • Applications
    • Editors
    • Graphical Internet
    • Text-based Internet
  • Development
    • Development Libraries
    • Development Tools
    • Legacy Software Development
  • Servers
    • Server Configuration Tools
  • Base System
    • Administration Tools
    • Base
    • Java
    • Legacy Software Support
    • System Tools
    • X Window System

网络配置如下:

[root@racnode1 ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
172.17.61.131 racnode1
172.17.61.132 racnode2
10.10.10.31 racnode1-priv
10.10.10.32 racnode2-priv
172.17.61.121 racnode1-vip
172.17.61.122 racnode2-vip
172.17.61.135 racnode-cluster-scan
172.17.61.134 openfiler
10.10.10.34 openfiler-priv

配置hostname为racnode1

不出问题的话,下面就开始安装RAC所需要的包:

# From Enterprise Linux 5.4 (x86_64)- [CD #1]
mkdir -p /media/cdrom
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/Server
rpm -Uvh binutils-2.*
rpm -Uvh elfutils-libelf-0.*
rpm -Uvh glibc-2.*
rpm -Uvh glibc-common-2.*
rpm -Uvh ksh-2*
rpm -Uvh libaio-0.*
rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
cd /
eject

# From Enterprise Linux 5.4 (x86_64) - [CD #2]
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/Server
rpm -Uvh elfutils-libelf-devel-*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh glibc-headers-2.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh unixODBC-2.*
cd /
eject

# From Enterprise Linux 5.4 (x86_64) - [CD #3]
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33*
rpm -Uvh libaio-devel-0.*
rpm -Uvh unixODBC-devel-2.*
cd /
eject

# From Enterprise Linux 5.4 (x86_64) - [CD #4]
mount -r /dev/cdrom /media/cdrom
cd /media/cdrom/Server
rpm -Uvh sysstat-7.*
cd /
eject

确保 RAC 节点名没有出现在环回地址中

确保 /etc/hosts 文件的环回地址中包含节点名(racnode1racnode2)。如果计算机名出现在环回地址条目中,如下所示:

127.0.0.1 racnode1 localhost.localdomain localhost

最后需要关闭ntp服务,从而使用新的 Oracle 集群时间同步服务 (CTSS)。

[root@racnode1 ~]# service ntpd stop
Shutting down ntpd: [ OK ]
[root@racnode1 ~]# chkconfig ntpd off
[root@racnode1 ~]# mv /etc/ntp.conf /etc/ntp.conf.original
[root@racnode1 ~]# rm /var/run/ntpd.pid
rm: cannot lstat `/var/run/ntpd.pid': No such file or directory

两台机器的时间同步及ssh无密码的互通在后面再做。

至此第一台已安装好,复制racnode1为racnode2后,修改网络配置及hostname后就没有问题了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/271283/viewspace-1059081/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-02-20

  • 博文量
    263
  • 访问量
    767890