![instal imorotOracle4-RAC两节点集群环境搭建_第1页](http://file4.renrendoc.com/view/0b78ccec676f2002b8ae09b6d6cf63c6/0b78ccec676f2002b8ae09b6d6cf63c61.gif)
![instal imorotOracle4-RAC两节点集群环境搭建_第2页](http://file4.renrendoc.com/view/0b78ccec676f2002b8ae09b6d6cf63c6/0b78ccec676f2002b8ae09b6d6cf63c62.gif)
![instal imorotOracle4-RAC两节点集群环境搭建_第3页](http://file4.renrendoc.com/view/0b78ccec676f2002b8ae09b6d6cf63c6/0b78ccec676f2002b8ae09b6d6cf63c63.gif)
![instal imorotOracle4-RAC两节点集群环境搭建_第4页](http://file4.renrendoc.com/view/0b78ccec676f2002b8ae09b6d6cf63c6/0b78ccec676f2002b8ae09b6d6cf63c64.gif)
![instal imorotOracle4-RAC两节点集群环境搭建_第5页](http://file4.renrendoc.com/view/0b78ccec676f2002b8ae09b6d6cf63c6/0b78ccec676f2002b8ae09b6d6cf63c65.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Oracle10.2.0.4-RACOracle10.2.0.4-RAC共 服务端ISCSI配 来源:CSDN作者 这里使 ;安 NAS8系统,操作系统磁盘几个G就可以,这里我给了50G;(Xen虚拟化平台,NASLinux虚拟机1192.168.0.139192.168.100.139:登 NAS服务56All,要记住,我这里设置 1010、添加,;阅Oracle10.2.0.4-RACOracle10.2.0.4-RAC两节点集群环境搭共 客户端ISCSI配 来源 [字体:大中小11、这里我的OracleRACOracleLinux5.5-rpm-ivhiscsi-initiator-utils-6.2.0.868-iscsi服务端配置过的认证信息cat>>/etc/iscsi/iscsid.conf<<EOFnode.session.auth.authmethod=CHAPnode.session.auth.username=oraclenode.session.auth.password=oracle999discovery.sendtargets.auth.authmethod=CHAPdiscovery.sendtargets.auth.username=oraclediscovery.sendtargets.auth.password=oracle999这里oracle999是上文 NAS-iscsi服务中配置的账探测目标:iscsiadm--modediscovery--typesendtargets--portal NAS服务端的IP地址iscsi服务:serviceiscsi查看探测到的共 :iscsiadm-m查看共 是否挂载:fdisk-iscsi服务serviceiscsichkconfigiscsirpm-ivhiscsi-initiator-utils-4.0.3.0-cat>>/etc/iscsi.conf<<EOFserviceiscsi查看探测到的共 查看共 是否挂载:fdisk-iscsi服务serviceiscsirestartchkconfigiscsionrpm[root@localhost~]rpm-ivhiscsi-initiator-utils-6.2.0.868-warning:iscsi-initiator-utils-6.2.0.868-0.7.el5.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyIDePreparing...###########################################1:iscsi-initiator-utils###########################################[100%][root@localhost~]ll-rw-------1rootroot7341May252008[root@localhost~]ll-rw-r--r--1rootroot50Jan2022:39[root@localhost~]cat/etc/iscsi/initiatorname.iscsi [root@localhost~]#cat>>/etc/iscsi/iscsid.conf<<node.session.auth.authmethod=node.session.auth.username=node.session.auth.password=discovery.sendtargets.auth.authmethod=discovery.sendtargets.auth.username=discovery.sendtargets.auth.password=[root@localhost~]#iscsiadm--modediscovery--typesendtargets--portal192.168.0.iscsiadm:cannotconnecttoiSCSIdaemon(111)!iscsiadm:Couldnotscan/sys/class/iscsi_transport.iscsiadm:Couldnotscan/sys/class/iscsi_transport.iscsiadm:cannotconnecttoiSCSIdaemon(111)!iscsiadm:Cannotperformdiscovery.Initiatornamerequired.iscsiadm:Discoveryprocessto192.168.0.160:3260failedtocreateadiscoverysessioiscsiadm:CouldnotperformSendTargetsiscsi[root@localhost~]#serviceiscsiStopiSCSIiscsiddeadbutpidfileexists[OK]iSCSIdaemon:[OK][OK]SettingupiSCSItargets:iscsiadm:Norecordsfound![OK][root@localhost~]#iscsiadm--modediscovery--typesendtargets--portal192.168.0.192.168.0.160:3260,1 [root@localhost~]#iscsiadm-mnode192.168.0.160:3260,1iqn.oracle.rac1024iscsi[root@localhost~]#serviceiscsirestart iSCSIdaemon:iscsiddeadbutpidfileexists[OK]iSCSIdaemon:[OK][OK]SettingupiSCSItargets:Logginginto[iface:default,target:iqn.oracle.rac1024,portal:192.168.0.160,3260]Loginto[iface:default,target:iqn.oracle.rac1024,portal:192.168.0.160,3260]:succ[OK[root@localhost~]#fdisk-lDisk/dev/hda:37.5GB,37580963840255heads,63sectors/track,4568Units=cylindersof16065*512 DeviceBootStartEndBlocksId/dev/hda1*11310439183/dev/hda214 +8eLinuxDisk/dev/sda:53.6GB,5368709120064heads,32sectors/track,51200Units=cylindersof2048*512 系统版本:OracleLinux5.5-Server-x86_x64-dvdoracle-database版本:Oracle10.2.0.1x64oracle-cluster版本:ClusterWare10.2.0.1x64oracle-clusterdatabase补丁版本:Oracle10.2.0.42、IPIP:192.168.100.161VIP:192.168.100.163dbcc1-IP:192.168.0.161dbcc1-IP:192.168.100.162VIP:192.168.100.164dbcc2-IP:192.168.0.162dbcc2-34、网卡:eth05数据文件ASM/dev/sda110GDATAoracle/dev/sda210G+BACK表决磁盘 设备(voting/dev/raw/raw5/dev/sda5/dev/raw/raw6/dev/sda6/dev/raw/raw7/dev/sda7OCR(oracle集 表)/dev/raw/raw8/dev/sda8/dev/raw/raw9/dev/sda9Linux12 2、关闭SELINUX67Oracle12、oracle1、关 和chkconfigiptableschkconfigsendmail2[root@dbcc1~]#cat#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinux is #permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-SELinuxisfullydisabled.#SELINUXTYPE=typeofinuse.Possiblevaluesare:#targeted-Onlytargetednetworkdaemonsareprotected.#strict-FullSELinuxprotection.[root@dbcc1~]#cat#ThisfilecontrolsthestateofSELinuxonthesystem.#SELINUX=cantakeoneofthesethreevalues:#enforcing-SELinux is #permissive-SELinuxprintswarningsinsteadofenforcing.#disabled-SELinuxisfullydisabled.#SELINUXTYPE=typeofinuse.Possiblevaluesare:#targeted-Onlytargetednetworkdaemonsareprotected.#strict-FullSELinuxprotection.3[root@dbcc2~]#ll/etc|greprelase[root@dbcc2~]#ll/etc|greprelease-rw-r--r--1rootroot64Feb1923:17enterprise-drwxr-xr-x2rootroot4096Feb1920:39lsb--rw-r--r--1rootroot54Feb1923:16RedHat-5.54.5即可;[root@dbcc2~]#cat/etc/enterprise-EnterpriseLinuxEnterpriseLinuxServerrelease4.5[root@dbcc2~]#cat/etc/redhat-RedHatEnterpriseLinuxServerrelease4.5rpm-qbinutilscompat-libstdc++elfutils-libelfelfutils-libelf-develgccgcc-c++glibc monglibc-develglibc-headerskshlibaiolibaio-devellibgcclibstdc++makenumactl-develsysstatunixODBCunixODBC-develelfutils-libelf-devel-statickernel-headers[root@localhost~]#rpm-qbinutilscompat-libstdc++elfutils-libelfelfutils-libelf-develgccgcc-c++glibc monglibc-develglibc-headerskshlibaiolibaio-devellibgcclibstdc++makenumactl-develsysstatunixODBCunixODBC-develelfutils-libelf-devel-statickernel-headerslibgomppackagecompat-libstdc++isnotinstalled packagelibaio-develisnotinstalledpackagenumactl-develisnotinstalledpackagesysstatisnotinstalledpackageunixODBCisnotinstalledpackageunixODBC-develisnotinstalled[root@localhostrpm]lltotal3472-rw-r--r--1rootroot11790Feb182010libaio-devel-0.3.106--rw-r--r--1rootroot11675Feb182010libaio-devel-0.3.106--rw-r--r--1rootroot16772Apr12010numactl-devel-0.9.8--rw-r--r--1rootroot16839Apr12010numactl-devel-0.9.8--rw-r--r--1rootroot178400Jan222009sysstat-7.0.2--rw-r--r--1rootroot850413Jan222009unixODBC-2.2.11--rw-r--r--1rootroot854883Jan222009unixODBC-2.2.11--rw-r--r--1rootroot761234Jan222009unixODBC-devel-2.2.11--rw-r--r--1rootroot818106Jan222009unixODBC-devel-2.2.11-[root@localhostrpm]#rpm-qbinutilscompat-libstdc++elfutils-libelfelfutils-libelf-develgccgcc-c++glibc monglibc-develglibc-headerskshlibaiolibaio-devellibgcclibstdc++makenumactl-develsysstatunixODBCunixODBC-develelfutils-libelf-devel-statickernel-headerslibgomppackagecompat-libstdc++isnotinstalled [root@dbcc1~]#rpm-qa|grepcompat-libstdc++libXp也装上:root@localhostrpmlltotal80-rw-r--r--1rootroot22852Jan222009libXp-1.0.0--rw-r--r--1rootroot23561Jan222009libXp-1.0.0--rw-r--r--1rootroot15103Jan222009libXp-devel-1.0.0--rw-r--r--1rootroot15072Jan222009libXp-devel-1.0.0-[root@localhostrpm]#rpm-ivhwarning:libXp-1.0.0-8.1.el5.i386.rpm:HeaderV3DSAsignature:NOKEY,keyIDPreparing...###########################################1:libXp###########################################[2:libXp###########################################[3:libXp-devel###########################################[75%]4:libXp-devel###########################################[root@localhostrpm]#lltotal7404-rw-r--r--1root Apr22010glibc-2.5--rw-r--r--1root Apr22010glibc-devel-2.5-[root@localhostrpm]#rpm-qa|grepglibc[root@localhostrpm]#rpm-qa|greplibstdc[root@localhostrpm]#rpm-qa|grepgccgroupaddoinstall;groupadddba;useradd-goinstall-Gdba-d/home/oracle-m-s/bin/bash-c"ORACLE"mkdirp/oracle;mkdir-p/oracle/oraInventory;chown-Roracle:oinstall/oracle;od-R7757oracleecho"oracle"|passwd--stdinkernel.shmall=kernel.shmmax=kernel.shmmni=kernel.sem=25032000100fs.file-max=net.ipv4.ip_local_port_range=1024net.core.rmem_default=net.core.rmem_max=net.core.wmem_default=net.core.wmem_max=262144sysctlpcat>>/etc/security/limits.conf<EOForaclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536sessionrequired/lib64/security/pam_limits.sosessionrequiredpam_limits.so11、cat>>/etc/profile<<if[\$USER="oracle"];if[$S ="/bin/ksh"];thenulimit-p16384ulimit-n65536ulimit-u16384-n6553612、oraclecat>>/home/oracle/.bashrc<<EOFexportexportexportexportORACLE_SIDexportPATHexport_节点[root@localhostrpm]#rpm-qa|grepreadlinetar-zxvfrlwrap-0.37.tar.gzcdrlwrap-0.37makecat>>/home/oracle/.bashrc<<EOFaliassqlplus='rlwrapsqlplus'aliasrman='rlwrap阅Oracle10.2.0.4-RACOracle10.2.0.4-RAC两节点集群环境搭host-ssh-ntp配 来源 [字体:大中小1、hostcat>>/etc/hosts<<192.168.100.161192.168.100.162192.168.100.163dbcc1-192.168.100.164dbcc2-192.168.0.161dbcc1-192.168.0.162dbcc2-122、SSH在主节点上以oracle用户生成用户的公匙和私12rm-rf~/.ssh/mkdir~/.sshod700~/.ssh/ssh-keygen-trsassh-keygen-t1cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keyscat~/.ssh/id_dsa.pub>>sshdbcc2cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keyssshdbcc2cat~/.ssh/id_dsa.pub>>1scp~/.ssh/authorized_keys12sshdbcc1datesshdbcc2datesshdbcc1-pipdatesshdbcc2-pip每条命令执行1次后,再次执行,就不需要输 ,说明信任配置成功[root@localhost~]#su-oracle[oracle@localhost~]$rm-rf~/.ssh/[oracle@localhost~]$mkdir~/.ssh[oracle@localhost~]$ od700~/.ssh/[oracle@localhost~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_rsa.pub.Thekeyfingerprintis:4f:58:d4:a8:04:2e:ba:63:bc:8e:c5:c2:16:63:7f:e6oracle@localhost.local[oracle@localhost~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeyEnterfileinwhichtosavethekey(/home/oracle/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_dsa.pub.Thekeyfingerprintis:9c:1b:a4:97:27:3e:cb:30:5f:8f:27:e3:48:24:1c:17[root@localhost~]#su-oracle[oracle@localhost~]$rm-rf~/.ssh/[oracle@localhost~]$mkdir~/.ssh[oracle@localhost~]$ od700~/.ssh/[oracle@localhost~]$ssh-keygen-trsaGeneratingpublic/privatersakeypair.Enterfileinwhichtosavethekey(/home/oracle/.ssh/id_rsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_rsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_rsa.pub.Thekeyfingerprintis:1e:31:9b:11:69:34:68:11:56:79:f5:66:9a:8f:9c:2eoracle@localhost.local[oracle@localhost~]$ssh-keygen-tdsaGeneratingpublic/privatedsakeyEnterfileinwhichtosavethekey(/home/oracle/.ssh/id_dsa):Enterpassphrase(emptyfornopassphrase):EntersamepassphraseYouridentificationhasbeensavedin/home/oracle/.ssh/id_dsa.Yourpublickeyhasbeensavedin/home/oracle/.ssh/id_dsa.pub.Thekeyfingerprintis:e6:77:99:64:50:c5:be:78:88:d9:f9:7e:0e:61:9b:5e[oracle@localhost~]$cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys[oracle@localhost~]$cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys[oracle@localhost~]$sshdbcc2cat~/.ssh/id_rsa.pub>>~/.ssh/authorized_keysTheauthenticityofhost'dbcc2(192.168.100.162)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'dbcc2,192.168.100.162'(RSA)tothelistofknownhosoracle@dbcc2's[oracle@localhost~]$sshdbcc2cat~/.ssh/id_dsa.pub>>~/.ssh/authorized_keysoracle@dbcc2'spassword:[oracle@localhost~]$scp~/.ssh/authorized_keysdbcc2:~/.ssh/authorized_keysoracle@dbcc2'spassword:authorized_keys100%17121.7KB/s[oracle@localhost~]$sshdbcc1Theauthenticityofhost'dbcc1(192.168.100.161)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'dbcc1,192.168.100.161'(RSA)tothelistofknownhosWedFeb1914:25:28CST[oracle@localhost~]$sshdbcc1dateWedFeb1914:25:29CST2014[oracle@localhost~]$sshdbcc2dateWedFeb1914:25:31CST2014[oracle@localhost~]$sshdbcc2dateWedFeb1914:25:34CST2014[oracle@localhost~]$sshdbcc1WedFeb1914:25:38CST公有IP已经不需 验证了[oracle@localhost~]$sshdbcc1-pipTheauthenticityofhost'dbcc1-pip(192.168.0.161)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?Warning:Permanentlyadded'dbcc1-pip,192.168.0.161'(RSA)tothelistofknownhoWedFeb1914:25:51CST[oracle@localhost~]$sshdbcc1-pipdateWedFeb1914:25:52CST2014[oracle@localhost~]$sshdbcc2-pipTheauthenticityofhost'dbcc2-pip(192.168.0.162)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?Warning:Permanentlyadded'dbcc2-pip,192.168.0.162'(RSA)tothelistofknownhoWedFeb1914:25:56CST[oracle@localhost~]$sshdbcc2-pipdateWedFeb1914:25:57CST2014[oracle@localhost~]$sshdbcc1-pipdateWedFeb1914:26:00CST2014私有IP之间也不需 验证了[root@localhost~]#su-oracle[oracle@localhost~]$sshdbcc1dateTheauthenticityofhost'dbcc1(192.168.100.161)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'dbcc1,192.168.100.161'(RSA)tothelistofknownhosWedFeb1914:26:32CST[oracle@localhost~]$sshdbcc1dateWedFeb1914:26:34CST2014[oracle@localhost~]$sshdbcc2Theauthenticityofhost'dbcc2(192.168.100.162)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?yesWarning:Permanentlyadded'dbcc2,192.168.100.162'(RSA)tothelistofknownhosWedFeb1914:26:37CST[oracle@localhost~]$sshdbcc2WedFeb1914:26:38CST公有IP已经不需 验证了[oracle@localhost~]$sshdbcc1-pipTheauthenticityofhost'dbcc1-pip(192.168.0.161)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?Warning:Permanentlyadded'dbcc1-pip,192.168.0.161'(RSA)tothelistofknownhoWedFeb1914:26:47CST[oracle@localhost~]$sshdbcc1-pipdateWedFeb1914:26:49CST2014[oracle@localhost~]$sshdbcc2-pipTheauthenticityofhost'dbcc2-pip(192.168.0.162)'can'tbeestablished.RSAkeyfingerprintis9e:9d:a7:a2:e2:4d:09:89:a2:bf:dd:ca:02:3f:f3:09.Areyousureyouwanttocontinueconnecting(yes/no)?Warning:Permanentlyadded'dbcc2-pip,192.168.0.162'(RSA)tothelistofknownhoWedFeb1914:26:53CST[oracle@localhost~]$sshdbcc2-pipdateWedFeb1914:26:54CST2014私有IP已经不需 验证了3ntp11NTP服务器,让两个节NTP服务器同步、配置hackecho"modprobehangcheck-timerhangcheck-tick=30hangcheck_margin=180">>/ethackntpcp/etc/ntp.conf/etc/ntp_`datecat/dev/null>/etc/ntp.confcat>>/etc/ntp.conf<<EOFserver127.127.1.0fudge127.127.1.0stratum11driftfile/var/lib/ntp/driftbroadcastdelay0.008cat/etc/init.d/ntpdrestartntpq-pchkconfigntpdcp/etc/ntp.conf/etc/ntp_`date+%Y%m%d_%H%M%S`.confcat/dev/null>/etc/ntp.confcat>>/etc/ntp.conf<<EOFserver192.168.100.161preferdriftfile/var/lib/ntp/driftbroadcastdelay0.008catntpdate/etc/init.d/ntpdrestartntpq-pchkconfigntpdservicentpdstopntpdate192.168.100.161servicentpd4、NTP[root@localhostasm]#cp/etc/ntp.conf/etc/ntp_`date+%Y%m%d_%H%M%S`.conf[root@localhostasm]#cat/dev/null>/etc/ntp.conf[root@localhostasm]#cat>>/etc/ntp.conf<<serverfudge127.127.1.0stratumdriftfilebroadcastdelay[root@localhostasm]#cat/etc/ntp.confserver127.127.1.0fudge127.127.1.0stratum11driftfile/var/lib/ntp/driftbroadcastdelay0.008[root@localhostasm]#/etc/init.d/ntpdrestartShuttingdownntpd:[FAILED]Startingntpd:[OK[root@localhostasm]#ntpq-remoterefidsttwhenpollreachdelayoffsetLOCAL(0)LOCAL(0)11l66410.0000.000[root@localhostasm]#chkconfigntpdon[root@localhostasm]#chkconfig--list|grepntpntpd0:off1:off2:on3:on4:on5:on6:off[root@localhostasm]#cp/etc/ntp.conf/etc/ntp_`date+%Y%m%d_%H%M%S`.conf[root@localhostasm]#[root@localhostasm]#cat/dev/null>/etc/ntp.conf[root@localhostasm]#[root@localhostasm]#cat>>/etc/ntp.conf<<server192.168.100.161driftfilebroadcastdelay[root@localhostasm]#cat/etc/ntp.confserver192.168.100.161preferdriftfilebroadcastdelay[root@localhostasm]#/etc/init.d/ntpdrestartShuttingdownntpd:ntpq-p[chkconfigntpdStartingntpd:[OK[root@localhostasm]#chkconfigntpdon[root@localhostasm]#ntpq-premoterefidsttwhenpollreachdelayoffsetdbcc1.INIT.16u86400.0000.000[root@localhostasm]#servicentpdstopShuttingdownntpd:[OK][root@localhostasm]#ntpdate19Feb14:47:12ntpdate[3322]:steptimeserver192.168.100.161offset29.177440[root@localhostasm]#servicentpdstartStartingntpd:[OK]数据:ASM20G/dev/sda110G+DATAforOracle/dev/sda210G+BACKfor表决磁盘(votingdisk)/dev/raw/raw5/dev/sda5/dev/raw/raw6/dev/sda6/dev/raw/raw7/dev/sda7OCR(oracle表)/dev/raw/raw8/dev/sda8/dev/raw/raw9/dev/sda918G2[root@localhostasm]#fdiskThenumberofcylindersforthisdiskissettoThereisnothingwrongwiththat,butthisislargerthan1024,andcouldincertainsetupscauseproblemswith:softwarethatrunsatboottime(e.g.,oldversionsofbootingandpartitioningsoftwarefromotherOSs(e.g.,DOSFDISK,OS/2FDISK)Command(mforhelp):nCommandactionepprimarypartition(1-4)Partitionnumber(1-4):Firstcylinder(1-51200,default1):Lastcylinderor+sizeor+sizeMor+sizeK(1-51200,default Command(mforhelp):nCommandactionepprimarypartition(1-4)Partitionnumber(1-4):Firstcylinder(9768-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(9768-51200,default Command(mforhelp):nCommandactionepprimarypartition(1-4)Partitionnumber(1-4):Firstcylinder(19535-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(19535-51200,default51200):Usingdefaultvalue51200Command(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(19535-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(19535-51200,defaultCommand(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(19631-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(19631-51200,defaultCommand(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(19727-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(19727-51200,defaultCommand(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(19823-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(19823-51200,defaultCommand(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(20015-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(20015-51200,defaultCommand(mforhelp):nCommandactionllogical(5orpprimarypartition(1-4)Firstcylinder(20207-51200,defaultUsingdefaultvalueLastcylinderor+sizeor+sizeMor+sizeK(20207-51200,default Command(mforhelp):ThepartitiontablehasbeenCallingioctl()tore-readpartitiontable.Syncingdisks.[root@localhostasm]#partprobe[root@localhostasm]#ls-l/dev/sda*brw- 1rootdisk8,0Feb1922:34brw- 1rootdisk8,1Feb1922:34brw- 1rootdisk8,10Feb1922:34brw- 1rootdisk8,2Feb1922:34brw- 1rootdisk8,3Feb1922:34brw- 1rootdisk8,5Feb1922:34brw- 1rootdisk8,6Feb1922:34brw- 1rootdisk8,7Feb1922:34brw- 1rootdisk8,8Feb1922:34brw- 1rootdisk8,9Feb1922:343、创建raw/dev/raw/raw5/dev/sda5raw/dev/raw/raw6/dev/sda6raw/dev/raw/raw7/dev/sda7raw/dev/raw/raw8/dev/sda8raw/dev/raw/raw9[root@localhostasm]#raw-/dev/raw/raw5:boundtomajor8,minor/dev/raw/raw6:boundtomajor8,minor/dev/raw/raw7:boundtomajor8,minor/dev/raw/raw8:boundtomajor8,minor/dev/raw/raw9:boundtomajor8,minor4[root@localhostasm]#rpm-Uvhwarning:kernel-debug-2.6.18-194.el5.x86_64.rpm:HeaderV3DSAsignature:NOKEY,keyID1e5e0159 ###########################################[13%] [25%]194.el###########################################[38%] [50%]194.el###########################################[63%]194.el###########################################[75%]194.el###########################################[88%] 5[root@localhostasm]#oracleasmconfigure[root@localhostasm]#/etc/init.d/oracleasmconfigureConfiguringtheOracleASMlibrarydriver.Thiswillconfiguretheon-bootpropertiesoftheOracleASMlibrarydriver.Thefollowingquestionswilldeterminewhetherthedriverisloadedonbootandwhatpermissionsitwillhave.Thecurrentvalueswillbeshowninbrackets('[]').Hitting<ENTER>withoutty answerwillkeepthatcurrentvalue.Ctrl-Cwillabort.Defaultusertoownthedriverinterface[]:oracleDefaultgrouptoownthedriverinterface[]:dbaStartOracleASMlibrarydriveronboot(y/n)[n]:yScanforOracleASMdisksonboot(y/n)[y]:yWritingOracleASMlibrarydriverconfiguration:doneInitializingtheOracleASMLibdriver:[OK]ScanningthesystemforOracleASMLibdisks:[OK][root@localhostasm]#oracleasmconfigure6ASM/etc/init.d/oracleasmcreatediskdata/etc/init.d/oracleasmcreatediskback[root@localhostasm]#/etc/init.d/oracleasmcreatediskdata/dev/sda1Markingdisk"data"asanASMdisk:[OK][root@localhostasm]#/etc/init.d/oracleasmcreatediskbackMarkingdisk"back"asanASMdisk:[OK[root@localhostasm]#/etc/init.d/oracleasmscandisksScanningthesystemforOracleASMLibdisks:[OK][root@localhostasm]#/etc/init.d/oracleasmlistdisks7 [root@asprac1~]#cat/etc/udev/rules.d/60-raw.rules#Thisfileandinterfacearedeprecated.#Applicationsneedingrawdeviceaccessshouldopenregular#blockdeviceswithO_DIRECT.##Enterrawdevicebindingshere.#Anexamplewould#ACTION=="add",KERNEL=="sda",RUN+="/bin/raw/dev/raw/raw1%N"#tobind/dev/raw/raw1to/dev/sda,or /dev/raw/raw2%M#tobind/dev/raw/raw2tothedevicewithmajor8,minorACTION=="add",KERNEL=="sda5",RUN+="/bin/raw/dev/raw/raw5%N"ACTION=="add",KERNEL=="sda6",RUN+="/bin/raw/dev/raw/raw6%N"ACTION=="add",KERNEL=="sda7",RUN+="/bin/raw/dev/raw/raw7%N"ACTION=="add",KERNEL=="sda8",RUN+="/bin/raw/dev/raw/raw8%N"ACTION=="add",KERNEL=="sda9",RUN+="/bin/raw/dev/raw/raw9%N" /dev/raw/raw5%M /dev/raw/raw6%M /dev/raw/raw7%M /dev/raw/raw8%M /dev/raw/raw9%M8oraclechownoracle:oinstall/dev/raw/*od+xwr/dev/raw/*od+xrwcat>>/etc/rc.local<<EOFchownoracle:oinstall/dev/raw/*od+xwr/dev/raw/*od+xrw/dev/raw/9partprobe1[root@dbcc2~]#raw-/dev/raw/raw5:boundtomajor8,minor/dev/raw/raw6:boundtomajor8,minor/dev/raw/raw7:boundtomajor8,minor/dev/raw/raw8:boundtomajor8,minor/dev/raw/raw9:boundtomajor8,minorasmlib,1一样,rpm-Uvhasmlib:/etc/init.d/oracleasmASM磁盘,asm[root@localhostasm]#/etc/init.d/oracleasmScanningthesystemforOracleASMLibdisks:[OK[root@localhostasm]#/etc/init.d/oracleasmlistdisksASM234Oracle-oraclegunzipcpio-集群件gunzipcpio-10.2.0.4补丁 _10204_Linux-x86-unzip _10204_Linux-x86-[oracle@dbcc1~]$/home/oracle/clusterware/cluvfy/runcluvfy.shstage-precrsinst-ndbcPerformingpre-checksforclusterservicesCheckingnodeCheck:NodereachabilityfromnodeDestinationNodedbcc1yesdbcc2Result:NodereachabilitycheckpassedfromnodeCheckinguserequivalence...Check:Userequivalenceforuser"oracle"NodeNameCommentdbcc2passeddbcc1Result:UserequivalencecheckpassedforuserCheckingadministrativeprivileges...Check:Existenceofuser"oracle"NodeNameUserExistsCommentdbcc2yespasseddbcc1yesResult:UserexistencecheckpassedforCheck:Existenceofgroup"oinstall"NodeNameStatusGroupIDdbcc2existsdbcc1existsResult:GroupexistencecheckpassedforCheck:Membershipofuser"oracle"ingroup"oinstall"[asPrimary]NodeNameUserExistsGroupExistsUserinGroupPrimaryCommentdbcc2yesyesyesyespasseddbcc1yesyesyesyesResult:Membershipcheckforuser"oracle"ingroup"oinstall"[asPrimary]AdministrativeprivilegesCheckingnodeInterfaceinformationfornode"dbcc2"InterfaceNameIPAddressSubneteth0192.168.100.162eth2192.168.0.162Interfaceinformationfornode"dbcc1"InterfaceNameIPAddressSubneteth0192.168.100.161eth2192.168.0.161Check:Nodeconnectivityofsubnet"192.168.100.0"SourceDestinationConnected?dbcc2:eth0dbcc1:eth0Result:Nodeconnectivitycheckpassedforsubnet"192.168.100.0"withnode(s)dbcc2,dbcCheck:Nodeconnectivityofsubnet"192.168.0.0"SourceDestinationConnected?dbcc2:eth2dbcc1:eth2Result:Nodeconnectivitycheckpassedforsubnet"192.168.0.0"withSuitableinterfacesfortheprivateinterconnectonsubnet"192.168.100.0":dbcc2eth0:192.168.100.162dbcc1Suitableinterfacesfortheprivateinterconnectonsubnet"192.168.0.0":dbcc2eth2:192.168.0.162dbcc1CouldnotfindasuitablesetofinterfacesforResult:NodeconnectivityCheckingsystemrequirementsNochecksregisteredforPre-checkforclusterservicessetupwasunsuccessfulonalltheVIPoracle2、oracle选择 CRS2配置PublicIP配置OCR磁盘,之前已经建立好了对应 设备,这里直接输入即VOT[root@dbcc1~]#FriFeb2117:21:38CST[root@dbcc2~]#FriFeb2117:21:38CST网上查阅资料,在这里先忽略,‘Yes’,继续(改天再具体研究一下到了执行 的时ChangingpermissionsofChanginggroupnameof/oracle/oraInventorytoTheexecutionofthescriptisWARNING:directory'/oracle/product/10.2.0'isnotownedbyWARNING:directory'/oracle/product'isnotownedbyWARNING:directory'/oracle'isnotownedbyCheckingtoseeifOracleCRSstackisalready/etc/oracledoesnotexist.CreatingitSettingthepermissionsonOCRbackupSettingupNSOracleClusterRegistryconfigurationupgradedWARNING:directory'/oracle/product/10.2.0'isnotownedbyWARNING:directory'/oracle/product'isnotownedbyWARNING:directory'/oracle'isnotownedbySuccessfullyaccumulatednecessaryOCRUsingports:CSS=49895CRS=49896EVMC=49898andnode<nodenumber>:<nodename><privateinterconnectname>node1:dbcc1dbcc1-pipnode2:dbcc2dbcc2-pipCreatingOCRkeysforuser'root',OperationNowformattingvotingNowformattingvotingNowformattingvotingFormatof3votingdevicesStartupwillbequeuedtoinitAddingdaemonsExpectingtheCRSdaemonstobeupwithin600CSSisactiveontheseCSSisinactiveontheseLocalnodecheckingRunroot.shonremainingnodestostartCRSCRS-0184:CannotcommunicatewiththeCRSCRSWARNING:directory'/oracle/product/10.2.0'isnotownedbyWARNING:directory'/oracle/product'isnotownedbyWARNING:directory'/oracle'isnotownedbyCheckingtoseeifOracleCRSstackisalreadySettingthepermissionsonSettingupNSOracleClusterRegistryconfigurationupgradedWARNING:directory'/oracle/product/10.2.0'isnotownedbyWARNING:directory'/oracle/product'isnotownedbyWARNING:directory'/oracle'isnotownedbyclscfg:EXISTINGconfigurationversion3clscfg:version3is10GReleaseSuccessfullyaccumulatednecessaryOCRUsingports:CSS=49895CRS=49896EVMC=49898andnode<nodenumber>:<nodename><privateinterconnectname>node1:dbcc1dbcc1-pipnode2:dbcc2dbcc2-pipclscfg:ArgumentscheckoutNOKEYSWEREWRITTEN. parameterto isdestructiveandwilldestroyanypreviousOracleClusterRegistryforclusterhasalreadyStartupwillbequeu
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Unit 2 Shopping Lesson2(说课稿)-2024-2025学年北师大版(三起)英语四年级上册
- 2024年三年级品社下册《马路不是游戏场》说课稿 山东版
- 2024-2025学年高中地理 第4章 旅游与区域的发展 第1节 旅游业的发展及其对区域的影响说课稿 中图版选修3
- Unit 1 Growing up 单元说课稿-2024-2025学年高中英语外研版(2019)选择性必修第二册
- 下城区汽车租赁合同范本
- 保安奖罚合同范例
- 医用耗材寄售合同范例
- 加贸合同范本
- 专利注册合同范本
- 人工智能购销合同范例
- 河南2025年河南职业技术学院招聘30人笔试历年参考题库附带答案详解
- 2025年长沙穗城轨道交通有限公司招聘笔试参考题库含答案解析
- 2024年湖南有色金属职业技术学院高职单招职业技能测验历年参考题库(频考版)含答案解析
- 2025年山东华鲁海运有限公司招聘笔试参考题库含答案解析
- 银川经济技术开发区2024年综合考核评价指标表及评分细则
- 品管圈PDCA改善案例-降低住院患者跌倒发生率
- 读书分享《给教师的建议》课件
- 《中小学校园食品安全和膳食经费管理工作指引》专题讲座
- 广东省茂名市2023-2024学年高一上学期物理期末试卷(含答案)
- 沙发市场需求与消费特点分析
- 2024统编版新教材道德与法治七年级全册内容解读课件(深度)
评论
0/150
提交评论