所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

华为 SAP HANA 一体机 CH121&CH242&2288H&2488H&9008 V5 双机安装指南 11

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
初始化集群主节点

初始化集群主节点

在初始化集群主节点前必须已完成SSH免密码互联和NTP。

  1. 以root用户登录服务器节点1(配置为主节点)。
  2. 添加默认路由,命令中eth0为本主节点的OS网口,实际的OS网口请根据实际情况进行,再运行/sbin/ip route命令路由信息。

    hw00001:#ip route add default via 192.126.126.131 dev eth0
    hw00001:/home # /sbin/ip route

  3. 执行命令ha-cluster-init初始化集群主节点。

    hw00001:# ha-cluster-init
    /root/.ssh/id_rsa already exists - overwrite (y/n)? n //输入“N”,表示不覆盖id_rsa。
    Configuring csync2
    csync2 is already configured - overwrite (y/n)? y //输入“Y”,表示该服务之前配置过,覆盖原有配置。“SLES 12 SP1 For SAP”没有该提示信息。
    Generating csync2 shared key (this may take a while)...done
    csync2 checking files...done
    /etc/corosync/authkey already exists - overwrite (y/n)? n
     
    Configure Corosync:
    This will configure the cluster messaging layer.  You will need
    to specify a network address over which to communicate (default
    is eth3's network, but you can use the network address of any
    active interface).
    
    Network address to bind to (e.g.: 192.168.1.0) [192.126.126.0] //输入本机OS维护网段
    Multicast address (e.g.: 239.x.x.x) [239.135.255.93] //默认不修改,请记录下这个IP地址,在后续配置集群基础参数时会用到
    Multicast port [5405] //默认不修改
    
    Configure SBD:
    If you have shared storage, for example a SAN or iSCSI target,
    you can use it avoid split-brain scenarios by configuring SBD.
    This requires a 1 MB partition, accessible to all nodes in the
    cluster.  The device path must be persistent and consistent
    across all nodes in the cluster, so /dev/disk/by-id/* devices
    are a good choice.  Note that all data on the partition you
    specify here will be destroyed.
    
    Do you wish to use SBD (y/n)? n //输入“n”,表示不使用SBD模式。如果使用SBD模式,请输入“Y”。
    ! Not configuring SBD - STONITH will be disabled.
    Hawk cluster interface is now running. To see cluster status, open:
    https://192.168.29.138:7630/
    Log in with username 'hacluster', password 'linux'//请记住登录用户为“hacluster”密码为“linux”。
    ! You should change the hacluster password to something more secure!
    Waiting for cluster........done
    Loading initial cluster configuration
      
    Configure Administration IP Address:
    Optionally configure an administration virtual IP
    address. The purpose of this IP address is to
    provide a single IP that can be used to interact
    with the cluster, rather than using the IP address
    of any specific cluster node.
    
    Do you wish to configure an administration IP? [y/N] y //完成初始化,输入“y”,表示配置管理IP。
    Administration Virtual IP []192.168.1.*//输入规划好的HA管理IP
         Waiting for Admin Address....done
    Done (log saved to /var/log/ha-cluster-bootstrap.log)

翻译
下载文档
更新时间:2019-11-07

文档编号:EDOC1100011658

浏览量:17472

下载量:639

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页