接前面几篇xCAT的文章,今天看看xCAT怎样安装与升级软件,我们分安装更新发行版包和非发行版包两种情况。
首先使用 lsdef 命令来查看一下 osimage 的信息,比如
lsdef -t osimage centos6.6-x86_64-install-compute ... pkgdir=/install/centos6.6/x86_64 pkglist=/opt/xcat/share/xcat/install/centos/compute.centos6.pkglist otherpkgdir=/install/custom/centos6.6/x86_64/ otherpkglist=/install/custom/centos6.6/x86_64/mypkgs.pkglist ...
安装更新发行版包
1. 要安装或更新发行版中的包,只需要把要安装或更新的包添加到pkglist定义的文件里
2. 运行 “updatenode <noderange> -S” 命令
安装更新非发行版包
1. 首先创建一个目录用来放附加软件包,比如
mkdir -p /install/custom/centos6.6/x86_64/
cp helloworld-1.0.0-1.el6.x86_64.rpm /install/custom/centos6.6/x86_64/
cd /install/custom/centos6.6/x86_64/ createrepo .
helloworld
chdef -t osimage centos6.6-x86_64-install-compute \ otherpkgdir=/install/custom/centos6.6/x86_64/ \ otherpkglist=/install/custom/centos6.6/x86_64/mypkgs.pkglist
7. 如果要更新软件包,只要将新的rpm包放到/install/custom/centos6.6/x86_64/目录下,然后再次运行 "updatenode <noderange> -S" 命令即可。
参考
http://sourceforge.net/p/xcat/wiki/Using_Updatenode/
转载请以链接形式标明本文地址
本文地址:http://blog.csdn.net/kongxx/article/details/44132613