Chinaunix首页 | 论坛 | 博客
  • 博客访问: 429338
  • 博文数量: 79
  • 博客积分: 8385
  • 博客等级: 中将
  • 技术积分: 3625
  • 用 户 组: 普通用户
  • 注册时间: 2005-09-26 14:42
文章分类

全部博文(79)

文章存档

2011年(10)

2010年(40)

2009年(21)

2008年(8)

分类: LINUX

2008-11-05 12:29:55

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

 
阅读(661) | 评论(0) | 转发(1) |
0

上一篇:trap

下一篇:如何使用rpmbuild编译源码RPM包?

给主人留下些什么吧!~~