1. Install rhed5.1 with xen IP 9.125.53.162(dtx162)
2. setup yum server on dtx162
A: cp rhel5.1 dvd file to /var/www/html/rhel51/
B: create create_repo.sh script
#vi /var/www/html/create_repo.sh
以下是脚本内容
####################################################
cd /var/www/html/rhel51
for name in Server VT Cluster ClusterStorage
do
cp $name/repodata/comps-rhel5-*.xml /tmp
done
# Server
cd /var/www/html/rhel51/Server
rm -rf repodata
createrepo -g /tmp/comps-rhel5-server-core.xml .
# VT
cd /var/www/html/rhel51/VT
rm -rf repodata
createrepo -g /tmp/comps-rhel5-vt.xml .
# Cluster
cd /var/www/html/rhel51/Cluster
rm -rf repodata
createrepo -g /tmp/comps-rhel5-cluster.xml .
# ClusterStorage
cd /var/www/html/rhel51/ClusterStorage
rm -rf repodata
createrepo -g /tmp/comps-rhel5-cluster-st.xml .
####################################################
c: Create IBM.repo script
vi /etc/yum.repos.d/IBM.repo
以下是脚本内容
####################################################
[base]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
####################################################
3. #service httpd start
#chkconfig --level 345 httpd start
4. Install xen guest "test01" 9.125.53.189(test01)
install xen guest "test01" 9.125.53.190(test02)
5. #yum source config: /etc/yum.repos.d/IBM.repo
6. install cluster packages on physical and two VMs
#yum groupinstall 'Clustering'
#yum install libvirt
7. modify /etc/hosts file
#vi /etc/hosts
9.125.53.162 dtx162
9.125.53.189 test01
9.125.53.190 test02
8. start cluster config services
on physical OS:
#luci_admin init
please input your password
#/etc/init.d/luci start
on VMs:
#/etc/init.d/ricci start
9. setup fence devices
on physical OS ###need in GUI terminal
#system-config-cluster
阅读(716) | 评论(0) | 转发(1) |