RH401第二章 RHN卫星服务器的安装及频道导入 【练习一】 « Rednat Linux网络日志平台_linux集群_gfs文件系统_iscsi存储配置_ldap服务加密_rac负载均衡_data guard异地备份_ogg流复制技术_rman备份恢复 
首页 » 红帽培训 » RH401第二章 RHN卫星服务器的安装及频道导入 【练习一】

RH401第二章 RHN卫星服务器的安装及频道导入 【练习一】

时间:2011-07-16作者:felix.chan分类:红帽培训评论:1

RH401课程实验网络环境说明:

  Server:server1.example.com   提供X机redhat5.4系统的yum安装源,以及rhn装程序、RHN证书和频道文件,一个网卡eth0 IP为:192.168.0.254

  X机:   station14.example.com  该机为RHN服务器,redhat5.4的系统,网卡eth0 Ip为:192.168.0.14,和服务器网络通讯。网卡eth1 ip为:10.100.14.14,和Y机直连交叉线通讯

  Y机:   station1.private14.com 该机为RHN服务器管理的client,redhat5.1的系统,网卡eth0 ip为:10.100.14.1 和X机直接连接,未经过交换机。

 

在本章暂时未用到Y机,全部操作都是在X机上进行。

 

具体配置步骤如下:

 

[root@station14 ~]# showmount -e 192.168.0.254   #查看nfs服务器共享的目录

Export list for 192.168.0.254:

/DVD *

[root@station14 ~]# mount -t nfs 192.168.0.254:/DVD /mnt  #将server上的DVD目录挂载到本地/mnt目录

[root@station14 RH401]# cd /mnt/pub/RH401

[root@station14 RH401]# ls

redhat-gls-maximum-5.3.cert

redhat-gls-minimal-5.3.cert

redhat-rhn-satellite-5.3-server-i386-5-embedded-oracle.iso

sat-rhel5-dump

[root@station14 RH401]# cp redhat-rhn-satellite-5.3-server-i386-5-embedded-oracle.iso  redhat-gls-maximum-5.3.cert /     #将rhn的ISO安装包和证书复制到本机然后挂载ISO镜像文件

[root@station14 RH401]# mount -o loop /redhat-rhn-satellite-5.3-server-i386-5-embedded-oracle.iso  /media/

[root@station14 /]# cd /media/

[root@station14 media]# ls

EmbeddedDB  install  install.pl  README  Satellite  TRANS.TBL  updates

[root@localhost media]# ./install.pl –disconnected    #执行rnh安装脚本,开始进行安装

* Starting the Red Hat Network Satellite installer.

* Performing pre-install checks.

localhost.localdomain doesn’t have 3 fields (111.222.333). Can’t be FQDN.

Use –skip-fqdn-test to bypass this error.

Exiting…

[root@localhost media]# hostname station14.exampole.com  #注意主机名称要是fqdn格式,以后访问rhn也都是通过域名方式访问,不要用ip方式访问,否则会出问题

[root@localhost media]# ./install.pl –disconnected

* Starting the Red Hat Network Satellite installer.

* Performing pre-install checks.

* Pre-install checks complete.  Beginning installation.

* RHN Registration.

** Registration: Disconnected mode.  Not registering with RHN.

* Checking for uninstalled prerequisites.

** Checking if yum is available …

There are some packages from Red Hat Enterprise Linux that are not part

of the @base group that Satellite will require to be installed on this

system. The installer will try resolve the dependencies automatically.

However, you may want to install these prerequisites manually.

Do you want the installer to resolve dependencies [y/N]? y

* Applying updates.

* Installing RHN packages.

Could not install RHN packages.  Most likely your system is not configured with the @Base package group.  See the RHN Satellite Server Installation Guide for more information

about Software Requirements.  Exit value: 1.

Please examine /var/log/rhn/rhn-installation.log for more information.

 

#看到以上出错提示信息,新装的redhat5.4的系统应该是yum没有配置,配置如下:

 

[root@localhost yum.repos.d]# vi /etc/yum.repos.d/server1.repo

 

[rhel-base]

name=base

baseurl=ftp://192.168.0.254/Server

enabled=1

gpgcheck=0

 

[rhel-VT]

name=base

baseurl=ftp://192.168.0.254/VT

enabled=1

gpgcheck=0

 

[rhel-Cluster]

name=Cluster

baseurl=ftp://192.168.0.254/Cluster

enabled=1

gpgcheck=0

 

[rhel-ClusterStorage]

name=ClusterStorage

baseurl=ftp://192.168.0.254/ClusterStorage

enabled=1

gpgcheck=0

 

[root@localhost yum.repos.d]# yum clean all

Loaded plugins: rhnplugin, security

Cleaning up Everything

[root@localhost yum.repos.d]# yum list all

Loaded plugins: rhnplugin, security

This system is not registered with RHN.

RHN support will be disabled.

rhel-Cluster                                             | 1.1 kB     00:00    

rhel-Cluster/primary                                     | 5.8 kB     00:00    

rhel-Cluster                                                              32/32

rhel-ClusterStorage                                      | 1.1 kB     00:00     

rhel-ClusterStorage/primary                              | 8.5 kB     00:00    

rhel-ClusterStorage                                                       39/39

rhel-VT                                                  | 1.1 kB     00:00    

rhel-VT/primary                                          | 8.8 kB     00:00    

rhel-VT                                                                   36/36

rhel-base                                                | 1.1 kB     00:00    

rhel-base/primary                                        | 814 kB     00:00    

rhel-base                                                             2292/229

Installed Packages

………………………

 

# yum安装源已经配置好了,再根据之前的出错提示,查看rhn安装日志错误具体信息:

 

[root@localhost media]# vi /var/log/rhn/rhn-installation.log

 

 xerces-j2                       i386  2.7.1-7jpp.2            rhel-base1.9 M

 xml-commons                     i386  1.3.02-0.b2.7jpp.10     rhel-base  19 k

 xml-commons-apis                i386  1.3.02-0.b2.7jpp.10     rhel-base 335 k

 xml-commons-resolver            i386   1.1-1jpp.12             rhel-base 148 k

 

Transaction Summary

================================================================================

Install    254 Package(s)

Update       0 Package(s)

Remove       0 Package(s)

 

Total size:1.1 G

Total download size:48 M

Downloading Packages:

——————————————————————————–

Total                                           6.7 MB/s |  48 MB     00:07

warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186

Public key for perl-Error-0.15-7.el5.noarch.rpm is not installed

 

# 这个错误提示是本地的GPG公钥不对,现在重新导入一次:

[root@localhost media]# rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

 

#在开一个终端监视输出的安装log

[root@station14 ~]# tail -f /var/log/rhn/rhn-installation.log

 

[root@localhost media]# ./install.pl –disconnected   #再次尝试安装rhn

 

* Starting the Red Hat Network Satellite installer.

* Performing pre-install checks.

* Pre-install checks complete.  Beginning installation.

* RHN Registration.

** Registration: Disconnected mode.  Not registering with RHN.

* Checking for uninstalled prerequisites.

** Checking if yum is available …

There are some packages from Red Hat Enterprise Linux that are not part

of the @base group that Satellite will require to be installed on this

system. The installer will try resolve the dependencies automatically.

However, you may want to install these prerequisites manually.

Do you want the installer to resolve dependencies [y/N]? y     #按y键确定要安装

* Applying updates.

* Installing RHN packages.

* Now running setup.

* Setting up Oracle environment.

* Setting up database.

** Database: Installing the database:

** Database: This is a long process that is logged in:

** Database:   /var/log/rhn/install_db.log

*** Progress: ###############################################################

** Database: Installation complete.

** Database: Setting up database connection.

** Database: Testing database connection.

** Database: Populating database.

*** Progress: ############################################################

* Setting up users and groups.

** GPG: Initializing GPG and importing key.

** GPG: Creating /root/.gnupg directory

You must enter an email address.

Admin Email Address? root@station14.example.com   #输入邮箱地址

* Performing initial configuration.

* Activating RHN Satellite.

Where is your satellite certificate file? /redhat-gls-maximum-5.3.cert  #输入rhn证书文件存放路径

** Loading RHN Satellite Certificate.

** Verifying certificate locally.

** Activating RHN Satellite.

* Enabling Monitoring.

* Configuring apache SSL virtual host.

Should setup configure apache’s default ssl server for you (saves original ssl.conf) y/n? y  #输入y,配置apache默认的ssl

** /etc/httpd/conf.d/ssl.conf has been backed up to ssl.conf-swsave

* Creating SSL certificates.

CA certificate password?

Re-enter CA certificate password?   #输入私钥(自己随便定义)

Organization? rednat.com             #组织,可以输入自己的名字 

Organization Unit [station14.exampole.com]?    #默认直接回车

Email Address [root@station14.example.com]?    #默认直接回车

City? ShenZhen    #城市

State? Guangdong  #

Country code (Examples: “US”, “JP”, “IN”, or type “?” to see a list)? CN  #国家代码

** SSL: Generating CA certificate.

** SSL: Deploying CA certificate.

** SSL: Generating server certificate.

** SSL: Storing SSL certificates.

* Deploying configuration files.

* Update configuration in database.

* Setting up Cobbler..

Cobbler requires tftp and xinetd services be turned on for PXE provisioning functionality. Enable these services (y/n, default = ‘y’)?Y   #默认开启cobbler,配置pxe

* Restarting services.

Tomcat failed to start properly or the installer ran out of tries.  Please check /var/log/tomcat5/catalina.out for errors.

Installation complete.

Visit https://station14.exampole.com to create the RHN Satellite administrator account.   #提示已经成功安装,可以通过这个地址https://station14.exampole.com 访问rhn

原创文章,转载请注明: 转载自红防联盟www.rednat.com

本文链接地址: RH401第二章 RHN卫星服务器的安装及频道导入 【练习一】

|2|right
1 条评论
  1. avatar
    star.chiang Taiwan; Republic of China (ROC) Google Chrome Windows 2011-11-03 22:51 回复

    為了找 redhat-gls-minimal-5.3.cert 花了很久的時間 , 不知道版主是否可以分享這個 key 給我 , 沒有這個 key 就不能練習了 , 如果可以的話 , 請寄到 fcu@ms93.url.com.tw
    thanks ~

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>