暂无图片
暂无图片
暂无图片
暂无图片
暂无图片
修改priv-ip.txt
279
4页
1次
2022-02-06
5墨值下载
1. 确认所有节点 CRS 服务启动
# olsnodes -s -n –i
2. ---查看 Private IP 配置
oifcfg getif
[grid@rac1 ~]$ oifcfg getif
eth0 11.1.1.0 global public
eth1 192.168.168.0 global cluster_interconnect
ifconfig eth1
[grid@rac1 ~]$ ifconfig eth1
eth1 Link encap:Ethernet HWaddr 6C:92:BF:BF:FD:11
inet addr:192.168.168.3 Bcast:192.168.168.255 Mask:255.255.255.0
inet6 addr: fe80::6e92:bfff:febf:fd11/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32749981 errors:0 dropped:0 overruns:0 frame:0
TX packets:30409206 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:22188866182 (20.6 GiB) TX bytes:19250886408 (17.9 GiB)
Memory:c7600000-c761ffff
--添加新的 private 配置(注意这里是错误的,正确的应该是 192.168.200.0)
----修改私网 ip
oifcfg setif -global eth1/192.168.200.0:cluster_interconnect
--删除旧配置
oifcfg delif -global eth1/192.168.168.0 //删除 eth1 旧的 Private IP
----再次验证:
oifcfg getif //查看 Private IP 配置
11.2.0.2 以后的版本,是无法直接删除最后一个 private IP ,如果要删除,必须先添加一个。然后重
CRS,再删除旧的 private 信息即可。
3. 关闭 CRS 服务(所有节点都要执行):
-- root 停止所有节点上的 clusterware
cd /home/grid/u02/product/grid/bin
[root@racl ~]# ./crsctl stop crs -f
[root@rac2 ~]# ./crsctl stop crs -f
参考命令:
#crsctl stop crs -f
--check crs 时也报错
[root@rac1 rac1]# crsctl check crs
4. 修改私有网络物理网卡 IP 地址和/etc/hosts 文件(所有节点都要执行):
参考命令:
# vi /etc/sysconfig/network-scripts/tfcfg-eth1
#vi /etc/hosts
5. 启动和查看 CRS 服务
参考命令:
./crsctl start crs
启动
root 另外开一个窗口,每个节点执行
nohup /bin/dd if=/var/tmp/.oracle/npohasd of=/dev/null bs=1024 count=1 &
#crsctl start crs
#crs_stat -t
[root@rac1 network-scripts]# cd /home/grid/u02/product/grid/bin
[root@rac1 bin]# ./gpnptool get
Warning: some command line parameters were defaulted. Resulting command line:
./gpnptool.bin get -o-
<?xml version="1.0" encoding="UTF-8"?><gpnp:GPnP-Profile Version="1.0"
xmlns="http://www.grid-pnp.org/2005/11/gpnp-profile"
xmlns:gpnp="http://www.grid-pnp.org/2005/11/gpnp-profile"
xmlns:orcl="http://www.oracle.com/gpnp/2005/11/gpnp-profile"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.grid-pnp.org/2005/11/gpnp-profile gpnp-
profile.xsd" ProfileSequence="7" ClusterUId="66c54dd88ba67f71ffd041253c783295"
ClusterName="rac-cluster" PALocation=""><gpnp:Network-Profile><gpnp:HostNetwork
id="gen" HostName="*"><gpnp:Network id="net1" IP="11.1.1.0" Adapter="eth0"
Use="public"/><gpnp:Network id="net2" IP="192.168.168.0" Adapter="eth1"
Use="cluster_interconnect"/></gpnp:HostNetwork></gpnp:Network-Profile><orcl:CSS-
Profile id="css" DiscoveryString="+asm" LeaseDuration="400"/><orcl:ASM-Profile
id="asm" DiscoveryString="/dev/mapper/asm*" SPFile="+VOTE/rac-
cluster/asmparameterfile/registry.253.1095104065"/><ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><ds:SignedInfo><ds:Canonicalizatio
nMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/><ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference
URI=""><ds:Transforms><ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/><ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"> <InclusiveNamespaces
xmlns="http://www.w3.org/2001/10/xml-exc-c14n#" PrefixList="gpnp orcl
xsi"/></ds:Transform></ds:Transforms><ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>Ch5coA943thB
4Pq0CJ1omvbGFC8=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureVal
ue>DymkPK3zzwdI2pFa1uFIMrmcA6WgLu/s1212nL/fipYJ0ThU+xAXhk0Ee3DcKxcLt3oYMeazMBGy+
EtgKS7CtoqkGgV8knuPbWIJIqcy7l2EoKvG5/gSVEsF/PPRO/UgX+ZQ/cv5j+Y/zeishMzk0WA+Jbk6e
XLssmFqjqkrPJY=</ds:SignatureValue></ds:Signature></gpnp:GPnP-Profile>
Success.
[root@rac1 bin]# mkdir /home/oracle/gpnp
[root@rac1 bin]# export GPNPDIR=/home/oracle/gpnp
[root@rac1 bin]# gpnptool get -o=$GPNPDIR/profile.xml
-bash: gpnptool: command not found
[root@rac1 bin]# ./gpnptool get -o=$GPNPDIR/profile.xml
Resulting profile written to "/home/oracle/gpnp/profile.xml".
Success.
[root@rac1 bin]# cp $GPNPDIR/profile.xml $GPNPDIR/p.xml
[root@rac1 bin]# gpnptool getpval -p=$GPNPDIR/p.xml -prf_sq -o-
-bash: gpnptool: command not found
[root@rac1 bin]# ./gpnptool getpval -p=$GPNPDIR/p.xml -prf_sq -o-
7
--查看 crs 配置信息
cd /home/grid/u02/product/grid/bin
[root@rac1 ~]# gpnptool get
--修改备份的 CRS 配置信息
--备份配置文件
[root@rac1 ~]# cp $GPNPDIR/profile.xml $GPNPDIR/p.xml
of 4
5墨值下载
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文档的来源(墨天轮),文档链接,文档作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论

关注
最新上传
暂无内容,敬请期待...
下载排行榜
Top250 周榜 月榜