版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Oracle10.2.0.4-RACOracle10.2.0.4-RAC共 服務(wù)端ISCSI配 來(lái)源:CSDN作者 這里使 ;安 NAS8系統(tǒng),操作系統(tǒng)磁盤(pán)幾個(gè)G就可以,這里我給了50G;(Xen虛擬化平臺(tái),NASLinux虛擬機(jī)1192.168.0.139192.168.100.139:登 NAS服務(wù)56All,要記住,我這里設(shè)置 1010、添加,;閱Oracle10.2.0.4-RACOracle10.2.0.4-RAC兩節(jié)點(diǎn)集群環(huán)境搭共 客戶端ISCSI配 來(lái)源 [字體:大中小11、這里我的OracleRACOracleLinux5.5-rpm-ivhiscsi-initiator-utils-6.2.0.868-iscsi服務(wù)端配置過(guò)的認(rèn)證信息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服務(wù)中配置的賬探測(cè)目標(biāo):iscsiadm--modediscovery--typesendtargets--portal NAS服務(wù)端的IP地址iscsi服務(wù):serviceiscsi查看探測(cè)到的共 :iscsiadm-m查看共 是否掛載:fdisk-iscsi服務(wù)serviceiscsichkconfigiscsirpm-ivhiscsi-initiator-utils-4.0.3.0-cat>>/etc/iscsi.conf<<EOFserviceiscsi查看探測(cè)到的共 查看共 是否掛載:fdisk-iscsi服務(wù)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 系統(tǒng)版本:OracleLinux5.5-Server-x86_x64-dvdoracle-database版本:Oracle10.2.0.1x64oracle-cluster版本:ClusterWare10.2.0.1x64oracle-clusterdatabase補(bǔ)丁版本: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、網(wǎng)卡:eth05數(shù)據(jù)文件ASM/dev/sda110GDATAoracle/dev/sda210G+BACK表決磁盤(pán) 設(shè)備(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、關(guān)閉SELINUX67Oracle12、oracle1、關(guān) 和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_節(jié)點(diǎn)[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兩節(jié)點(diǎn)集群環(huán)境搭host-ssh-ntp配 來(lái)源 [字體:大中小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在主節(jié)點(diǎn)上以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每條命令執(zhí)行1次后,再次執(zhí)行,就不需要輸 ,說(shuō)明信任配置成功[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已經(jīng)不需 驗(yàn)證了[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之間也不需 驗(yàn)證了[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已經(jīng)不需 驗(yàn)證了[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已經(jīng)不需 驗(yàn)證了3ntp11NTP服務(wù)器,讓兩個(gè)節(jié)NTP服務(wù)器同步、配置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]數(shù)據(jù):ASM20G/dev/sda110G+DATAforOracle/dev/sda210G+BACKfor表決磁盤(pán)(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、創(chuàng)建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磁盤(pán),asm[root@localhostasm]#/etc/init.d/oracleasmScanningthesystemforOracleASMLibdisks:[OK[root@localhostasm]#/etc/init.d/oracleasmlistdisksASM234Oracle-oraclegunzipcpio-集群件gunzipcpio-10.2.0.4補(bǔ)丁 _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磁盤(pán),之前已經(jīng)建立好了對(duì)應(yīng) 設(shè)備,這里直接輸入即VOT[root@dbcc1~]#FriFeb2117:21:38CST[root@dbcc2~]#FriFeb2117:21:38CST網(wǎng)上查閱資料,在這里先忽略,‘Yes’,繼續(xù)(改天再具體研究一下到了執(zhí)行 的時(shí)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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 專業(yè)廚房設(shè)備購(gòu)銷(xiāo)協(xié)議2024版B版
- 2024版河南省事業(yè)編制人員勞動(dòng)協(xié)議樣式版B版
- 二零二五年度大巴車(chē)租賃與城市慶典活動(dòng)策劃合同3篇
- 二零二五年度酒吧股份投資及風(fēng)險(xiǎn)控制合同3篇
- 二零二五年度科技園區(qū)場(chǎng)地租賃詳細(xì)協(xié)議2篇
- 2024版短期勞務(wù)合同范例
- 濰坊護(hù)理職業(yè)學(xué)院《材料分析測(cè)試與表征》2023-2024學(xué)年第一學(xué)期期末試卷
- 太原學(xué)院《橋梁工程(一)》2023-2024學(xué)年第一學(xué)期期末試卷
- 2024年食堂管理員與廚師合同3篇
- 二零二五年建筑工程施工企業(yè)工程結(jié)算與審計(jì)合同2篇
- 浙江省金華市婺城區(qū)2024-2025學(xué)年九年級(jí)上學(xué)期期末數(shù)學(xué)試卷(含答案)
- 天津市河西區(qū)2024-2025學(xué)年高二上學(xué)期1月期末英語(yǔ)試題(含答案無(wú)聽(tīng)力音頻及聽(tīng)力原文)
- 水利工程安全應(yīng)急預(yù)案
- 滬教版小學(xué)數(shù)學(xué)三(下)教案
- 2024-2025年度村支書(shū)工作述職報(bào)告范文二
- 繼電保護(hù)多選試題庫(kù)與參考答案
- 品管圈PDCA改善案例-降低住院患者跌倒發(fā)生率
- 2024年江西水利職業(yè)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)及答案解析
- 《交換機(jī)基本原理》課件
- 向電網(wǎng)申請(qǐng)光伏容量的申請(qǐng)書(shū)
- 2024-2030年中國(guó)硫磺行業(yè)供需形勢(shì)及投資可行性分析報(bào)告版
評(píng)論
0/150
提交評(píng)論