維護(hù)文件-小型機(jī)-mc配置_第1頁
維護(hù)文件-小型機(jī)-mc配置_第2頁
維護(hù)文件-小型機(jī)-mc配置_第3頁
維護(hù)文件-小型機(jī)-mc配置_第4頁
維護(hù)文件-小型機(jī)-mc配置_第5頁
已閱讀5頁,還剩40頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

第1 MC/SG安裝介 HP工程師的安裝工 第2章系統(tǒng)的詳細(xì)配置和準(zhǔn)備工 網(wǎng)絡(luò)規(guī) 第3 MC/SG雙機(jī)的配置(以O(shè)RACLE為例 更改HOSTS文 帳戶登錄對 集群MC/SG配 第4章系統(tǒng)備 第5 MC/SG雙機(jī)功能檢測表(測 第1章MC/SGHPMC/SG集群配置第2請按照下表劃分磁盤陣列EMC或HDS(參考,實(shí)際配置根據(jù)需求而定內(nèi)值機(jī)EMC共享陣列總單盤最大容RAID方RAID可用容量第3章MC/SG雙機(jī)的配(以oracle為例本次MC/SG集群包配置Oracle數(shù)據(jù)庫實(shí)現(xiàn)數(shù)據(jù)庫高可靠性切換請參考如下步驟實(shí)現(xiàn)3.1卷組(VG)的自動(dòng)激#vi…h(huán)osts的機(jī)器名。解析以下內(nèi)容(以為例:vi/etc/hosts在/etc/hosts ====? ====? ====?1 ====?2 ====?BJDB0830心跳 ====?BJDB0840心跳帳戶登錄對一個(gè)集群中的所有系統(tǒng)要求彼此之間的root戶有帳戶登錄對等的能力,即用一個(gè)系統(tǒng)的root用戶去登錄本集群中的另一系統(tǒng)時(shí),保證被提示輸入字在雙機(jī)系統(tǒng)的所有主機(jī)上都要有下文件(以為例):#vi/.rhosts在/.rhosts 空間劃卷Pe否是是否是否是否是否是否邏輯卷組名邏輯卷名Pe數(shù)掛載屬主備1111222222111111222222115BJDB0830BJDB0840上分別執(zhí)行執(zhí)行以下步驟以創(chuàng)立邏輯卷(LV):#lvcreate-l80-nodsv01l3100vg00#mkdir#newfs–Fvxfs–olargefiles/dev/vg00/rodsvol13100#mount/dev/vg00/odsvol13100/home/db/oracle假定BJDB0830是主配置機(jī)(PrimaryNode),則在BJDB0830上執(zhí)行以下步驟以創(chuàng)立物理卷(PV):#pvcreate-f/dev/rdsk/cXt0d0#pvcreate-f/dev/rdsk/cXt0d1#pvcreate-f/dev/rdsk/cXt0d2#pvcreate-f/dev/rdsk/cXt0d3#pvcreate-f/dev/rdsk/cXt0d4#pvcreate-f/dev/rdsk/cXt1d1#pvcreate-f..在主配置機(jī)(PrimaryNodeBJDB0830立所使用的卷ccccc在主配置機(jī)(PrimaryNodeBJDB0830立所使用的邏輯卷(LV):#lvcreate-l1-nodsv01l3110odsvg011-1-1-2-2-2-2-2-2-32-nodsv01l312032-nodsv01l31211-nodsv01l312216-nodsv01l312316-nodsv01l31241-nodsv01l312580-nodsv01l312680-nodsv01l312780-nodsv01l312880-nodsv01l3129--------------------------------#lvcreate-l32-nodsv01l3162odsvg01#lvcreate-l160-nodsv01l3163odsvg01#lvcreate-l160-nodsv01l3164odsvg01#lvcreate-l160-nodsv01l3165odsvg01#lvcreate-l160-nodsv01l3166odsvg01#lvcreate-l160-nodsv01l3167odsvg01#lvcreate-l160-nodsv01l3168odsvg01#lvcreate-l1-ncogv02l3110cogvg02#lvcreate-l1-ncogv02l3111cogvg021-1-2-2-2-2-2-2-32-ncogv02l312032-ncogv02l31211-ncogv02l312216-ncogv02l312316-ncogv02l31241-ncogv02l312580-ncogv02l312680-ncogv02l312780-ncogv02l312880-ncogv02l3129------------#lvcreate#lvcreate-l160-ncogv02l3142#lvcreate-l160-ncogv02l3143cogvg02#lvcreate-l160-ncogv02l3144cogvg02#lvcreate-l160-ncogv02l3145cogvg02#lvcreate-l160-ncogv02l3146cogvg02#lvcreate-l48-ncogv02l3147cogvg02#lvcreate-l160-ncogv02l3148cogvg02#lvcreate-l160-ncogv02l3149---#lvcreate-l5-ncogv02l3165cogvg02#lvcreate-l24-ncogv02l3166cogvg02#lvcreate-l80-ncogv02l3167cogvg02#lvcreate-l12-ncogv02l3168cogvg02#lvcreate-l12-ncogv02l3169cogvg02#lvcreate-l12-ncogv02l3170cogvg02#lvcreate-l12-ncogv02l3171#lvcreate#lvcreate-l12-ncogv02l3172#lvcreate-l640-nodsv03l3100cogvg03#lvcreate-l240-nodsv04l3100#newfs–Fvxfs–olargefiles/dev/cogvg03/rodsv03l3100#newfs–Fvxfs–olargefiles/dev/cogvg04/rodsv04l3100#mkdir/home/db/oracle/odsarch#mkdir修改數(shù)據(jù)庫所使用的所有的設(shè)備(RawDevice)邏輯卷(LV)的屬主為oracle:dba。在主配置機(jī)(PrimaryNode)上執(zhí)行下列操作:在主配置機(jī)(PrimaryNode)上輸出(Export)卷組.在BJDB0830上執(zhí)行以下操作:#vgchange–an/dev/odsvg01#vgchange–an/dev/odsvg02#vgchange–an/dev/cogvg03#vgchange–an/dev/cogvg04#vgchange–an#vgexport–v–p–s–m/tmp/odsvg01.map在非配置機(jī)(AdoptiveNode)上輸入(Import)卷組.在BJDB0840上執(zhí)行以下操作:#mkdir/dev/odsvg01#mkdir/dev/cogvg02#mkdir/dev/cogvg03#mkdir/dev/cogvg04#mkdir#mknod/dev/odsvg01/groupc640x010000#mknod/dev/cogvg02/groupc640x020000#mknod/dev/cogvg03/groupc640x030000#mknod/dev/cogvg04/groupc640x040000#mknod/dev/cogvg05/groupc64#vgimport–v–s–m/tmp/odsvg01.map/dev/odsvg01#vgimport–v–s–m/tmp/cogvg02.map/dev/cogvg02#vgimport–v–s–m/tmp/cogvg03.map/dev/cogvg03#vgimport–v–s–m/tmp/cogvg04.map/dev/cogvg04#vgimport–v–s–m/tmp/cogvg05.map/dev/cogvg05#vgchange–ay/dev/odsvg01#vgchange–ay/dev/cogvg02#vgchange–ay/dev/cogvg03#vgchange–ay#vgchange–ay/dev/cogvg05#vgcfgbackup/dev/odsvg01#vgcfgbackup/dev/cogvg02#vgcfgbackup/dev/cogvg03#vgcfgbackup/dev/cogvg04#vgcfgbackup/dev/cogvg05nnnnn檢測結(jié)果的步驟,可以在集群中所有的結(jié)點(diǎn)上執(zhí)行以下操y#vgchange–a#vgdisplaynnnnn#strings/etc/lvmtab/tmp/集群MC/SG配在網(wǎng)絡(luò)和邏輯卷或文件系統(tǒng)的配置都完成后,可以開始配置一個(gè)沒有應(yīng)用運(yùn)行包的集群.可以在集群中選定的主配置機(jī)(PrimaryNode)bjkd01上進(jìn)行.主備方式#cmquerycl–nBJDB0830–nBJDB0840–v–C編輯集群的配置文件。在主配置機(jī)(PrimaryNode)BJDB0830#viCLUSTER_NAMECLUSTER_NAME/dev/_CLUSTER_LOCK_PV_CLUSTER_LOCK_PV NETWORK_POLLING_INTERVAL4MAX_CONFIGURED_PACKAGES,由于在初次安裝時(shí),可能并不了解用戶的應(yīng)用系統(tǒng)將會(huì)有多少個(gè)應(yīng)4。必須配置鎖盤,并將其信息寫入/etc/cmcluster/cluster.ascii檢查集群的配置文件,在主配置機(jī)(PrimaryNode)BJDB0830#cmcheckconf–v–C#vgchange-ay#cmapplyconf–v-C/etc/cmcluster/cluster.ascii#vgchange-an/dev/odsvg05cmrunclvcmhaltcl–vf#cmviewcl- #mkdir/etc/cmcluster/odspkg1#mkdir應(yīng)用包MC/SG中的配置在集群的主配置機(jī)(PrimaryNode)BJDB0830#cmmakepkg–p#vi HALT_SCRIPTHALT_SCRIPT創(chuàng)建運(yùn)行包控制的模板#cmmakepkg–s 編輯配置運(yùn)行包的控制#vi VGCHANGE="vgchange-a#LV[0]="/dev/odsvg03/odsv03l3100";FS[0]="/home/db/oracle/odsarch";FS_MOUNT_OPT[0]="-rw";FS_UMOUNT_OPT[0]="";FS_FSCK_OPT[0]="";SUBNET[0]="function{#ADDcustomerdefinedrun:#donothinginstruction,becauseafunctionmustcontainsometest_return51}#Thisfunctionisaplaceholderforcustomerdefine#Youshoulddefineallactionsyouwanttohappenhere,beforetheserviceis#halted.function{#ADDcustomerdefinedhalt:#donothinginstruction,becauseafunctionmustcontainsometest_return52}(vgchange–a上面Oracle服務(wù)器運(yùn)行包的控制中調(diào)用的程#vistart.shsu-oraclesu-oracle-c#Startsu-oracle-c"$ORACLE_HOME/bin/lsnrctl #Start#visu-su-oracle-c"$ORACLE_HOME/bin/lsnrctl#Stopkill-9`ps-ef|grepLOCAL=NO|greporacle|cut-b9-su-oracle-c#Start手工拷貝分發(fā)運(yùn)行包的控制到集群中所有的結(jié)點(diǎn)上.例如在集群的主配置機(jī)(PrimaryNode)BJDB0830#rcp/etc/cmcluster/odspkg1/*更改Oracle的shutdown#vishutdown------→shutdown在主配置機(jī)(PrimaryNode)BJDB0830#cmcheckconf–v-C/etc/cmcluster/cluster.ascii-P分發(fā)二進(jìn)制的集群配置文件到集群中所有的結(jié)點(diǎn)上。在主配置機(jī)(PrimaryNode)BJDB0830#cmhaltcl–v-#cmapplyconf–v-C/etc/cmcluster/cluster.ascii-PMC/SG#cmruncl–v#cmviewcl-互備方式#cmquerycl–nBJDB0830–nBJDB0840–v–C編輯集群的配置文件。在主配置機(jī)(PrimaryNode)BJDB0830#viCLUSTER_NAME _CLUSTER_LOCK_PV _CLUSTER_LOCK_PV NETWORK_POLLING_INTERVAL MAX_CONFIGURED_PACKAGES,由于在初次安裝時(shí),可能并不了解用戶的應(yīng)用系統(tǒng)將會(huì)有多少個(gè)應(yīng)4。必須配置鎖盤,并將其信息寫入/etc/cmcluster/cluster.ascii檢查集群的配置文件,在主配置機(jī)(PrimaryNode)BJDB0830#cmcheckconf–v–C#vgchange-ay#cmapplyconf–v-C/etc/cmcluster/cluster.ascii#vgchange-an/dev/odsvg05cmrunclvcmhaltcl–vf#cmviewcl- #mkdir/etc/cmcluster/odspkg1#mkdir第一個(gè)包在MC/SG中的在集群的主配置機(jī)(PrimaryNode)BJDB0830#cmmakepkg–p#vi HALT_SCRIPT創(chuàng)建運(yùn)行包控制的模板#cmmakepkg–s 編輯配置運(yùn)行包的控制#vi VGCHANGE="vgchange-a #LV[0]="/dev/odsvg03/odsv03l3100";FS[0]="/home/db/oracle/odsarch";FS_MOUNT_OPT[0]="-orw";FS_UMOUNT_OPT[0]="";FS_FSCK_OPT[0]="";FS_TYPE[0]=""SUBNET[0]="function{#ADDcustomerdefined#ADDcustomerdefinedrun:#donothinginstruction,becauseafunctionmustcontainsometest_return51}#Thisfunctionisaplaceholderforcustomerdefine#Youshoulddefineallactionsyouwanttohappenhere,beforetheserviceis#halted.function{#ADDcustomerdefinedhalt:#donothinginstruction,becauseafunctionmustcontainsometest_return52}(vgchange–a上面Oracle服務(wù)器運(yùn)行包的控制中調(diào)用的程su-oracle-c#Startsu-oraclesu-oracle-c#Startsu-oracle-c"$ORACLE_HOME/bin/lsnrctl #Start#visu-su-oracle-c"$ORACLE_HOME/bin/lsnrctl#Stopkill-9`ps-ef|grepLOCAL=NO|greporacle|cut-b9-su-oracle-c#Start手工拷貝分發(fā)運(yùn)行包的控制到集群中所有的結(jié)點(diǎn)上.例如在集群的主配置機(jī)(PrimaryNode)BJDB0830#rcp/etc/cmcluster/odspkg1/*更改Oracle的shutdownvishutdown------→shutdown第二個(gè)包在MC/SG中的在集群的主配置機(jī)(PrimaryNode)BJDB0830#cmmakepkg–p#vi HALT_SCRIPT創(chuàng)建運(yùn)行包控制的模板#cmmakepkg–s 編輯配置運(yùn)行包的控制#vi VGCHANGE="vgchange-a#LV[0]="/dev/cogvg04/cogv04l3100";FS[0]="/home/db/oracle/cogarch";FS_MOUNT_OPT[0]="-rw";FS_UMOUNT_OPT[0]="";FS_FSCK_OPT[0]="";SUBNET[0]="function{#ADDcustomerdefinedrun:#donothinginstruction,becauseafunctionmustcontainsometest_return51}#Thisfunctionisaplaceholderforcustomerdefine#Youshoulddefineallactionsyouwanttohappenhere,beforetheserviceis#halted.function{#ADDcustomerdefinedhalt:#donothinginstruction,becauseafunctionmustcontainsometest_return52}(vgchange–a上面Oracle服務(wù)器運(yùn)行包的控制中調(diào)用的程su-oracle-c#Startsu-oraclesu-oracle-c#Startsu-oracle-c"$ORACLE_HOME/bin/lsnrctl #Start#visu-su-oracle-c"$ORACLE_HOME/bin/lsnrctl#Stopkill-9`ps-ef|grepLOCAL=NO|greporacle|cut-b9-su-oracle-c#Start手工拷貝分發(fā)運(yùn)行包的控制到集群中所有的結(jié)點(diǎn)上.例如在集群的主配置機(jī)(PrimaryNode)BJDB0830#rcp/etc/cmcluster/cogpkg2/*更改Oracle的shutdownvishutdown------→shutdown在主配置機(jī)(PrimaryNode)BJDB0830#cmcheckconf–v-C/etc/cmcluster/cluster.ascii-P/etc/cmcluster/odspkg1/odspkg1.conf#cmcheckconf–v-C/etc/cmcluster/cluster.ascii-P/etc/cmcluster/cogpkg2/cogpkg2.conf分發(fā)二進(jìn)制的集群配置文件到集群中所有的結(jié)點(diǎn)上。在主配置機(jī)(PrimaryNode)BJDB0830#cmhaltcl–v-cmapplyconf–vC/etc/cmcluster/cluster.asciiPetc/cmcluster/odspkg1/odspkg1.confcmapplyconf–vC/etc/cmcluster/cluster.asciiPetc/cmcluster/cogpkg2/cogpkg2.confMC/SG#cmruncl#cmviewcl-一備二方式#cmquerycl–nBJDB0830–nBJDB0840–nBJDB0850–v–C編輯集群的配置文件。在主配置機(jī)(PrimaryNode)BJDB0830#viCLUSTER_NAME NETWORK_POLLING_INTERVAL4MAX_CONFIGURED_PACKAGES,由于在初次安裝時(shí),可能并不了解用戶的應(yīng)用系統(tǒng)將會(huì)有多少個(gè)應(yīng)4。必須配置鎖盤,并將其信息寫入/etc/cmcluster/cluster.ascii檢查集群的配置文件,在主配置機(jī)(PrimaryNode)BJDB0830#cmcheckconf–v–C#vgchange-ay#cmapplyconf–v-Ccmrunclvcmhaltcl–vf#cmviewcl- #mkdir#mkdir第一個(gè)包在MC/SG中的在集群的主配置機(jī)(PrimaryNode)BJDB0830#cmmakepkg–p#vi HALT_SCRIPT創(chuàng)建運(yùn)行包控制的模板#cmmakepkg–s 編輯配置運(yùn)行包的控制#vi VGCHANGE="vgchange-a#LV[0]="/dev/odsvg03/odsv03l3100";FS[0]="/home/db/oracle/odsarch";FS_MOUNT_OPT[0]="-rw";FS_UMOUNT_OPT[0]="";FS_FSCK_OPT[0]="";SUBNET[0]="function{#ADDcustomerdefinedrun:#donothinginstruction,becauseafunctionmustcontainsometest_return51}#Thisfunctionisaplaceholderforcustomerdefine#Youshoulddefineallactionsyouwanttohappenhere,beforetheserviceis#halted.function{#ADDcustomerdefinedhalt:#donothinginstruction,becauseafunctionmustcontainsometest_return52}(vgchange–a上面Oracle服務(wù)器運(yùn)行包的控制中調(diào)用的程su-oracle-c#Startsu-oraclesu-oracle-c#Startsu-oracle-c"$ORACLE_HOME/bin/lsnrctl #Start#visu-su-oracle-c"$ORACLE_HOME/bin/lsnrctl#Stopkill-9`ps-ef|grepLOCAL=NO|greporacle|cut-b9-su-oracle-c#Start手工拷貝分發(fā)運(yùn)行包的控制到集群中所有的結(jié)點(diǎn)上.例如在集群的主配置機(jī)(PrimaryNode)BJDB0830#rcp/etc/cmcluster/odspkg1/*更改Oracle的shutdownvishutdown------→shutdown第二個(gè)包在MC/SG中的#cmmakepkg–p#vi HALT_SCRIPT創(chuàng)建運(yùn)行包控制的模板#cmmakepkg–s 編輯配置運(yùn)行包的控制#vi VGCHANGE="vgchange-a#LV[0]="/dev/cogvg04/cogv04l3100";FS[0]="/home/db/oracle/cogarch";FS_MOUNT_OPT[0]="-orw";FS_UMOUNT_OPT[0]="";FS_FSCK_OPT[0]="";FS_TYPE[0]=""SUBNET[0]="function{#ADDcustomerdefinedrun:#donothinginstruction,becauseafunctionmustcontainsometest_return51}#Thisfunctionisapl

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論