**************************
检查yum指向光盘的路径yum.repo文件
***************************************
检查发现,路径配置没有问题
[root@node1 yum.repos.d]# cat /etc/yum.repos.d/yum.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# All debug packages from all the various CentOS-5 releases
# are merged into a single repo, split by BaseArch
#
# Note: packages in the debuginfo repo are currently not signed
#
[debug]
name=CentOS-5 - Debuginfo
#baseurl=http://debuginfo.centos.org/5/$basearch/
baseurl=file:///cd1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
enabled=1
***************************************
检查光盘是否被mount到指定路径
***************************************
果然不出所料,没有对光盘进行mount,如下所示:
[root@node1 yum.repos.d]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 35G 8.4G 25G 26% /
/dev/sda1 487M 24M 438M 6% /boot
tmpfs 872M 0 872M 0% /dev/shm
none 872M 104K 872M 1% /var/lib/xenstored
/dev/hdc 4.0G 4.0G 0 100% /media/CentOS_5.6_Final
[root@node1 yum.repos.d]# mount /dev/hdc /cd1 --mount光盘
***************************************
安装缺失的包
***************************************
操作语句:
[root@node1 ~]# yum install libaio* -y
[root@node1 ~]# yum install syssta* -y
[root@node1 ~]# yum install unixO* -y
[root@node1 ~]# yum install pdk* -y
过程信息如下:
[root@node1 /]# yum install libaio* -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Package libaio-0.3.106-5.x86_64 already installed and latest version
Package libaio-0.3.106-5.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libaio-devel.i386 0:0.3.106-5 set to be updated
---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
libaio-devel i386 0.3.106-5 debug 12 k
libaio-devel x86_64 0.3.106-5 debug 11 k
Transaction Summary
================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 23 k
Downloading Packages:
--------------------------------------------------------------------------------
Total 1.1 MB/s | 23 kB 00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : libaio-devel 1/2
Installing : libaio-devel 2/2
Installed:
libaio-devel.i386 0:0.3.106-5 libaio-devel.x86_64 0:0.3.106-5
Complete!
[root@node1 /]# yum install syssta* -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package sysstat.x86_64 0:7.0.2-3.el5_5.1 set to be updated
--> Finished Dependency Resolution
Dependenci