發(fā)布用服ha30-imos110b3323開局指導(dǎo)書_第1頁
發(fā)布用服ha30-imos110b3323開局指導(dǎo)書_第2頁
發(fā)布用服ha30-imos110b3323開局指導(dǎo)書_第3頁
發(fā)布用服ha30-imos110b3323開局指導(dǎo)書_第4頁
發(fā)布用服ha30-imos110b3323開局指導(dǎo)書_第5頁
已閱讀5頁,還剩30頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡介

1、目錄 TOC o 1-3 h z u HYPERLINK l _Toc480492096 1 概述 圖3-5所示的對(duì)話框提示輸入root用戶的密碼,然后再點(diǎn)擊,就可以登錄服務(wù)器。圖2-5 Enter Password對(duì)話框安裝雙機(jī)前的環(huán)境配置配置之前,請(qǐng)使用df查看確認(rèn)安裝系統(tǒng)時(shí)給DRBD使用的磁盤分區(qū)掛載點(diǎn),并且記錄下來,后面配置需要使用。比如我們服務(wù)器出廠時(shí)給DRBD同步使用的磁盤分區(qū)是/dev/sda2。實(shí)際安裝時(shí)請(qǐng)根據(jù)操作系統(tǒng)安裝情況進(jìn)行設(shè)置。rootlocalhost # dfFilesystem 1K-blocks Used Available Use% Mounted on/de

2、v/sda6 354454532 16253948 320195288 5% /tmpfs 1967992 4 1967988 1% /dev/shm/dev/sda1 198337 30330 157767 17% /boot/dev/sda2 503964904 202740 478162164 1% /mnt/syncdata/dev/sda3 100791728 229804 95441924 1% /var/log/imoslogDRBD使用的分區(qū)處理使用服務(wù)器默認(rèn)的分區(qū)為DRBD分區(qū)兩臺(tái)服務(wù)器中都需要修改/etc/fstab ,將用于DRBD同步的分區(qū)-/mnt/syncdata前

3、用#注掉。實(shí)際安裝時(shí)請(qǐng)根據(jù)操作系統(tǒng)安裝時(shí)分區(qū)劃分情況進(jìn)行設(shè)置。rootlocalhost # vi /etc/fstab# /etc/fstab# Created by anaconda on Wed Mar 27 10:32:32 2013# Accessible filesystems, by reference, are maintained under /dev/disk# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info#UUID=29cf6d2d-3578-41a0-8055-8ce4

4、55b4c37f / ext3 defaults 1 1UUID=1849a3b6-1381-46ce-be94-dc300ad92a5c /boot ext3 defaults 1 2#UUID=6378d6d5-a882-41ca-989f-82a4a4b81e13 /mnt/syncdata ext3 defaults 1 2UUID=c2557872-eb1c-4703-8c8b-8b0456d340d0 /var/log/imoslog ext3 defaults 1 2UUID=7e239c16-8bd7-419b-99ae-4c680c8dc058 swap swap defau

5、lts 0 0tmpfs /dev/shm tmpfs defaults 0 0devpts /dev/pts devpts gid=5,mode=620 0 0sysfs /sys sysfs defaults 0 0proc /proc proc defaults 0 0將兩臺(tái)服務(wù)器/etc/fstab 中/mnt/syndata 使用“#”注解掉,隨后全部reboot重啟服務(wù)器使得設(shè)置生效。設(shè)置系統(tǒng)時(shí)間請(qǐng)?jiān)O(shè)置好主服務(wù)器系統(tǒng)時(shí)間(根據(jù)實(shí)際時(shí)間設(shè)定)date -s 2017-03-27 12:00:00加載配置文件1.該操作會(huì)修改主機(jī)名,配置完成后,請(qǐng)不要更改服務(wù)器主機(jī)名。否則后續(xù)服務(wù)將無法

6、正常使用。2.若需要安裝多個(gè)交付件,例如VM+IS,則需要把交付件的安裝包一起放到/home/ha_easy_install/ imos_version路徑下,再執(zhí)行./loadcfg.sh操作進(jìn)入/home/ha_easy_install目錄:cd /home/ha_easy_install執(zhí)行./loadcfg.sh 根據(jù)提示分別輸入主備機(jī)的hostname、業(yè)務(wù)IP、ssh登錄密碼、心跳地址rootvm1 ha_easy_install# ./loadcfg.sh 2017-03-27 19:03:00 : Before installing ha softerware,Please i

7、nput necessary infomation.Nodes information collecting .Please input node1 hostname:default ha_1vm1 #主機(jī)hostname Please confirm node1 hostname: vm1Please input node1 ipaddr:such as 0 #主機(jī)業(yè)務(wù)IPPlease confirm node1 ipaddr: 0Please input node1 loginpasswd:such as passwdpasswdPlease confirm node1 loginpass

8、wd: passwdPlease input node1 HeartBeat ServerIP :such as 10Please confirm node1 heartbeat ipaddr:0Please input node2 hostname:default ha_2vm2Please confirm node2 hostname: vm2Please input node2 ipaddr:such as 1Please confirm node2 ipaddr: 1Please input node2 loginpasswd:such as passwdpasswdPlease co

9、nfirm node2 loginpasswd: passwdPlease input node2 HeartBeat ServerIP :such as 21Please confirm node2 heartbeat ipaddr:1Install local pdsh&expect.Install local pdsh&expect finished.2017-03-27 19:04:39 Set ssh mutual trust .2017-03-27 19:04:42 Set ssh mutual trust finished.Please input TMS ServerIP:su

10、ch as 2放入IS安裝包才有這一步操作6 #使用虛地址Please input VM ServerIP:such as 192,168.0.126 #使用虛地址Please input Database IP:such as 192,168.0.126 #使用虛地址Please input Multicast:default: 0一般使用默認(rèn)值,直接敲回車Please confirm csmip:0Please input first avaiable Multicast Port:default: 2061一般使用默認(rèn)值,直接敲回車Please confirm csmport1:2061

11、Please input second avaiable Multicast Port:default: 2062一般使用默認(rèn)值,直接敲回車Please confirm csmport2:2062Please input Virtual ServerIP:such as 06 #虛地址Please input an reachable gateway address:such as 54 #網(wǎng)關(guān)Here is the list of avaiable partition:/dev/sda2 1171.88G #分區(qū)列表/dev/sda3 195.312G Please choose an av

12、aiable partition for node1 share partition:such as sda2sda3 Here is the list of avaiable partition:/dev/sda2 200G #分區(qū)列表Please choose an avaiable partition for node2 share partition:such as sda2sda2Please choose the share partition size,it must be an integer:defalut:100G100G #默認(rèn)值為100G,最大分配空間比該分區(qū)小10G

13、Set parameters into cfgfile.Set parameters into cfgfile finished.Set systems network file.Set systems network file finished.Set systems hostname.Set systems hostname finished.To make sure both server system time synchronization ,Please wait.Mon Mar 27 19:31:22 CST 20171: Mon Mar 27 19:31:22 CST 2017

14、Set server system time synchronization finished.Cfgfile information is setted already,it needs reboot to work,reboot right now ?yes/no:default:yes#默認(rèn)敲回車主備機(jī)會(huì)重啟,使配置生效安裝雙機(jī)軟件雙機(jī)軟件安裝進(jìn)入/home/ha_easy_install目錄:cd /home/ha_easy_install安裝基礎(chǔ)雙機(jī)軟件:rootvm1 ha_easy_install# ./bphainstall.shimos_process_code.conf 1

15、00% 47 0.1KB/s 00:00 imos_process_code.conf 100% 47 0.1KB/s 00:00 ha_strong_stop.sh 100% 9320 9.1KB/s 00:00 ha_strong_stop.sh 100% 9320 9.1KB/s 00:00 Install Management peer server software succeeded!Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFail

16、ures: 0imosha_x86_64/imosha_x86_64/hasys.confimosha_x86_64/hauninstall.shimosha_x86_64/imos_ha-1.x86_64.rpmimosha_x86_64/comminstall.binimosha_x86_64/initfile.tar.gzimosha_x86_64/hainstall.shspawn ./hainstall.sh2017-03-27 19:42:48 : Do not close the terminal during the installation; otherwise, unkno

17、wn error might occur.Begin to install .Begin to install common server .This will take some time,please wait a moment.Begin to install imos_ha server .corosyncPreparing. # 100%begin install. 1:imos_ha # 100%end install.Stopping crond: OK Starting crond: OK Install imos_ha servers succeeded!imos_ha in

18、stall succ!1: imosha_x86_64/1: imosha_x86_64/hasys.conf1: imosha_x86_64/hauninstall.sh1: imosha_x86_64/imos_ha-1.x86_64.rpm1: imosha_x86_64/comminstall.bin1: imosha_x86_64/initfile.tar.gz1: imosha_x86_64/hainstall.sh1: spawn ./hainstall.sh1: 2017-03-27 19:43:50 : Do not close the terminal during the

19、 installation; otherwise, unknown error might occur.1: Begin to install .1: Begin to install common server .This will take some time,please wait a moment.1: Begin to install imos_ha server .1: corosync1: Preparing. # 100%1: begin install.1: 1:imos_ha # 100%1: end install.1: Stopping crond: OK 1: Sta

20、rting crond: OK 1: Install imos_ha servers succeeded!1: imos_ha install succ!Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 64 sec, Min: 64 sec, Max: 64 secFailures: 0*Initializing the system environment for both.*1: Stopping NetworkManager daemon: FAILED0: Stopping NetworkManage

21、r daemon: FAILEDConnect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max: 1 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 s

22、ec, Min: 0 sec, Max: 0 secFailures: 01: iptables: Flushing firewall rules: OK 1: iptables: Setting chains to policy ACCEPT: filter OK 0: iptables: Flushing firewall rules: OK 0: iptables: Setting chains to policy ACCEPT: filter OK 1: iptables: Unloading modules: OK 0: iptables: Unloading modules: OK

23、 Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max: 1 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec,

24、 Max: 0 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 01: rpm: no packages given for erasepdshvm1: 1: ssh exited with exit code 10: rpm: no packages given for erasepdshvm1: 0: ssh exited with exit code 1Connect time: Avg: 0 se

25、c, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 0Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max: 1 secFailures: 0*Initialized the system environment complete.*hosts 100% 117 0.1KB/s 00:00 network.slave 100% 68 0.1KB/s 00:0

26、0 corosync.conf.slave 100% 1025 1.0KB/s 00:00 drbd.conf 100% 811 0.8KB/s 00:00 Writing physical volume data to disk /dev/sda3 Physical volume /dev/sda3 successfully created Volume group share successfully created Logical volume data1 created1: Writing physical volume data to disk /dev/sda21: Physica

27、l volume /dev/sda2 successfully createdConnect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 01: Volume group share successfully createdConnect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 01: Lo

28、gical volume data1 createdConnect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec, Max: 0 secFailures: 0Initialzing the shared space start! The time it takes depends on the size of the shared space.it will take half an hour for ecah 50G.Please be patient.#初始化dd分區(qū),耗時(shí)較久,50

29、G大約需要半小時(shí)0: dd: writing to /dev/share/data1: No space left on device0: 20971521+0 records in0: 20971520+0 records out0: 10737418240 bytes (11 GB) copied, 211.015 s, 50.9 MB/spdshvm1: 0: ssh exited with exit code 11: dd: writing to /dev/share/data1: No space left on device1: 20971521+0 records in1: 20

30、971520+0 records out1: 10737418240 bytes (11 GB) copied, 223.649 s, 48.0 MB/spdshvm1: 1: ssh exited with exit code 1Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 218 sec, Min: 212 sec, Max: 224 secFailures: 0The shared spece initialized complete!0: NOT initializing bitmap1: NOT

31、initializing bitmap0: Writing meta data.0: initializing activity log0: New drbd meta data block successfully created.1: Writing meta data.1: initializing activity log1: New drbd meta data block successfully created.Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 0 sec, Min: 0 sec,

32、 Max: 0 secFailures: 00: Starting DRBD resources: 0: create res: postgres0: prepare disk: postgres1: Starting DRBD resources: 1: create res: postgres1: prepare disk: postgres0: adjust disk: postgres0: adjust net: postgres0: 0: WARN: stdin/stdout is not a TTY; using /dev/consoleoutdated-wfc-timeout h

33、as to be shorter than degr-wfc-timeout0: outdated-wfc-timeout implicitly set to degr-wfc-timeout (120s)1: adjust disk: postgres1: adjust net: postgres1: 1: WARN: stdin/stdout is not a TTY; using /dev/consoleoutdated-wfc-timeout has to be shorter than degr-wfc-timeout1: outdated-wfc-timeout implicitl

34、y set to degr-wfc-timeout (120s)0: .1: .Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max: 1 secFailures: 0drbd driver loaded OK; device status: version: 8.4.1 (api:1/proto:86-100) GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by philBuild64R6, 2012

35、-04-17 11:28:08 m:res cs ro ds p mounted fstype 0:postgres SyncSource Primary/Secondary UpToDate/Inconsistent C . synced: 4.5% (9788/10236)Mdrbd driver loaded OK; device status: version: 8.4.1 (api:1/proto:86-100) GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by philBuild64R6, 2012-04-17

36、11:28:08 m:res cs ro ds p mounted fstype 0:postgres SyncSource Primary/Secondary UpToDate/Inconsistent C . synced: 9.2% (9304/10236)M.#中間過程百分比一直在增加drbd driver loaded OK; device status: version: 8.4.1 (api:1/proto:86-100) GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by philBuild64R6, 2012

37、-04-17 11:28:08 m:res cs ro ds p mounted fstype 0:postgres SyncSource Primary/Secondary UpToDate/Inconsistent C . synced: 91.1% (920/10236)Mdrbd driver loaded OK; device status: version: 8.4.1 (api:1/proto:86-100) GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by philBuild64R6, 2012-04-17

38、11:28:08 m:res cs ro ds p mounted fstype 0:postgres SyncSource Primary/Secondary UpToDate/Inconsistent C . synced: 95.9% (424/10236)Mdrbd driver loaded OK; device status: version: 8.4.1 (api:1/proto:86-100) GIT-hash: 91b4c048c1a0e06777b5f65d312b38d47abaea80 build by philBuild64R6, 2012-04-17 11:28:0

39、8 m:res cs ro ds p mounted fstype 0:postgres Connected Primary/Secondary UpToDate/UpToDate Cmke2fs 1.41.12 (17-May-2010)Filesystem label=OS type: LinuxBlock size=4096 (log=2)Fragment size=4096 (log=2)Stride=0 blocks, Stripe width=0 blocks655360 inodes, 2621351 blocks131067 blocks (5.00%) reserved fo

40、r the super userFirst data block=0Maximum filesystem blocks=268435456080 block groups32768 blocks per group, 32768 fragments per group8192 inodes per groupSuperblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632Writing inode tables: done Creating journal (32

41、768 blocks): doneWriting superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 32 mounts or180 days, whichever comes first. Use tune2fs -c or -i to override.Connect time: Avg: 0 sec, Min: 0 sec, Max: 0 secCommand time: Avg: 1 sec, Min: 1 sec, Max:

42、 1 secFailures: 0initializing environment complete!雙機(jī)軟件License申請(qǐng)與導(dǎo)入hostid生成在服務(wù)器A中生成用戶信息配置文件:rootvmserver_81 imoshaconf# cd /usr/local/imoshaconf/rootvmserver_81 imoshaconf# cp -rf clientinfo.ini.template clientinfo.ini將clientinfo.ini文件通過SSH導(dǎo)出到客戶端,隨后使用客戶端文本編輯器進(jìn)行修改,將其中的用戶信息配置修改正確后再將該配置文件通過SSH導(dǎo)入到服務(wù)器/us

43、r/local/imoshaconf目錄中,需要修改的配置參數(shù)說明如下:ClientInfoContractId=1234567890 合同編號(hào)UserName=張三 客戶名稱UserCountry=中國 國家UserProvince=浙江 省份UserCity=杭州 縣市UserCompany=宇視科技 公司UserPhone電話UserAddress=杭州市濱江區(qū) 地址UserZipcode=310053 郵編UserEmail=test E-mail地址ContactName=李四 聯(lián)系人姓名ContactCompany=宇視科技 聯(lián)系人所在公司ContactP

44、hone=12341234 聯(lián)系人電話ContactAddress=杭州市濱江區(qū) 聯(lián)系人地址ContactZipcode=310053 聯(lián)系人郵編ContactEmail=test 聯(lián)系人E-mail地址將修改后的/usr/local/imoshaconf/clientinfo.ini配置文件同步到服務(wù)器B中。rootvmserver_85 imoshaconf# scp -r /usr/local/imoshaconf/clientinfo.ini root3:/usr/local/imoshaconf/clientinfo.ini在服務(wù)器A中執(zhí)行如下命令,輸入1回車,將獲取的hostid文

45、件下載到本地并重命名保存:rootvmserver_83 usr# imoshatool.sh What do you want to do:1. Generate hostid file.2. Install License file.Please input your choice:1Begin to generate hostid file.Generate hostid file succeed.Output file is /usr/local/imoshaconf/hostid.id.在服務(wù)器B中執(zhí)行如下命令,輸入1回車,將獲取的hostid文件下載到本地并重命名保存:rootvm

46、server_81 usr# imoshatool.sh What do you want to do:1. Generate hostid file.2. Install License file.Please input your choice:1Begin to generate hostid file.Generate hostid file succeed.Output file is /usr/local/imoshaconf/hostid.id.License申請(qǐng)激活獲取到兩臺(tái)設(shè)備hostid文件后,用瀏覽器登錄公司官網(wǎng)后申請(qǐng)激活License即可。License導(dǎo)入將申請(qǐng)到的*

47、.lic文件上傳到主機(jī)服務(wù)器如下目錄:/home/ha_easy_install執(zhí)行./reloadhaconf.sh lic /home/ha_easy_install/license.lic(license的絕對(duì)路徑)再將license導(dǎo)入至主備機(jī):./ha_load_lic.shVM8500雙機(jī)使用VM8500雙機(jī)安裝VM雙機(jī)安裝所有安裝操作在只需要主機(jī)上進(jìn)行,備機(jī)不需要操作。進(jìn)入目錄:cd /home/ha_easy_install執(zhí)行VM安裝腳本:./vmhainstall.sh0: Stopping all DRBD resources: .1: Stopping all DRBD

48、 resources: .*install local vm start*vm9500_Uniview/.install finishedInstall vm9500 succeededvm9500 install succ!*install local vm end*install remote vm start*1: vm9500_Uniview/1: install finished1: Install vm9500 succeeded1: vm9500 install succ!*install remote vm end*啟動(dòng)pacemaker服務(wù)啟動(dòng)pacemaker服務(wù):./ha

49、_load_pacemakercfg.sh stop rvl: 050: Shutting down HASERVER services: OK 0:stop rvl: 051: Shutting down HASERVER services: OK 1:0: Starting Corosync Cluster Engine (corosync): OK 1: Starting Corosync Cluster Engine (corosync): OK WARNING: p_ping: specified timeout 30 for start is smaller than the ad

50、vised 60上述操作完成后,可以通過crm_mon命令查看啟動(dòng)狀態(tài)Online: vm1 vm2 Resource Group: postgresDBIP(ocf:heartbeat:IPaddr2):Started vm1postgres_fs (ocf:heartbeat:Filesystem): Started vm1postgresql (ocf:heartbeat:imosstart): Started vm1Master/Slave Set: ms_drbd_postgres drbd_postgresMasters: vm1 Slaves: vm2 Clone Set: cl

51、_ping p_pingStarted: vm1 vm2 此時(shí)可以查看VM各個(gè)服務(wù)的狀態(tài)vmserver.sh status已經(jīng)啟動(dòng)正常VM8500雙機(jī)升級(jí)兩臺(tái)服務(wù)器停止haserver服務(wù)rootvm1 ha_easy_install# /etc/init.d/haserv stoprootvm2 ha_easy_install# /etc/init.d/haserv stop兩臺(tái)服務(wù)器停止corosync服務(wù)rootvm1 ha_easy_install# /etc/init.d/corosync stoprootvm2 ha_easy_install# /etc/init.d/coros

52、ync stop確定兩臺(tái)服務(wù)器的主從配置查看兩臺(tái)服務(wù)器的配置文件:more /home/ha_easy_install/ha.conf | grep HAFLAG主機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器A為主機(jī)模式:rootvm1 ha_easy_install# more /home/ha_easy_install/ha.conf | grep HAFLAGHAFLAG=1從機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器B為從機(jī)模式:rootvm2 ha_easy_install# more /home/ha_easy_install/ha.conf | grep HAFLAGH

53、AFLAG=2修改配置文件1.升級(jí)操作在主機(jī)上進(jìn)行,將升級(jí)交付件壓縮包放至/home/ha_easy_install/imos_version 執(zhí)行./reloadhaconf.sh vm /home/ha_easy_install/imos_version/VMPS50-IMOS110-B3323.tar.gz更改配置文件中VM的版本注:紅色部分按照實(shí)際情況填寫2.執(zhí)行升級(jí)腳本進(jìn)入目錄:/home/ha_easy_install rootvm1 ha_easy_install# ./vmhaupdate.sh進(jìn)行升級(jí)兩臺(tái)服務(wù)器啟動(dòng)corosync服務(wù)升級(jí)完畢之后,將corosync服務(wù)啟動(dòng)r

54、ootvm1 ha_easy_install# /etc/init.d/corosync startrootvm2 ha_easy_install# /etc/init.d/corosync startVM8500雙機(jī)卸載兩臺(tái)服務(wù)器停止haserver服務(wù)rootvm1 ha_easy_install# /etc/init.d/haserv stoprootvm2 ha_easy_install# /etc/init.d/haserv stop兩臺(tái)服務(wù)器停止corosync服務(wù)rootvm1 ha_easy_install# /etc/init.d/corosync stoprootvm2 h

55、a_easy_install# /etc/init.d/corosync stop確定兩臺(tái)服務(wù)器的主從配置查看兩臺(tái)服務(wù)器的配置文件:more /home/ha_easy_install/ha.conf | grep HAFLAG主機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器A為主機(jī)模式:rootvm1 ha_easy_install# more /home/ha_easy_install/ha.conf | grep HAFLAGHAFLAG=1從機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器B為從機(jī)模式:rootvm2 ha_easy_install# more /home/ha_ea

56、sy_install/ha.conf | grep HAFLAGHAFLAG=2執(zhí)行VM卸載腳本卸載操作在主機(jī)上進(jìn)行。進(jìn)入目錄:cd /home/ha_easy_install執(zhí)行卸載:rootvm1 ha_easy_install# ./vmhauninstall.sh兩臺(tái)服務(wù)器上卸載雙機(jī)軟件進(jìn)入目錄:cd /home/ha_easy_install執(zhí)行卸載 rootvm1 ha_easy_install# ./bphauninstall.shVM+IS雙機(jī)使用VM+IS雙機(jī)安裝所有安裝操作在只需要主機(jī)上進(jìn)行,備機(jī)不需要操作。VM雙機(jī)安裝進(jìn)入目錄:cd /home/ha_easy_insta

57、ll執(zhí)行VM安裝腳本:./vmhainstall.shIS雙機(jī)安裝進(jìn)入目錄:cd /home/ha_easy_install執(zhí)行IS安裝腳本:. /ishainstall.sh啟動(dòng)pacemaker服務(wù)啟動(dòng)pacemaker服務(wù):./ha_load_pacemakercfg.sh VM+IS雙機(jī)升級(jí)兩臺(tái)服務(wù)器停止haserver服務(wù)rootvm1 ha_easy_install# /etc/init.d/haserv stoprootvm2 ha_easy_install# /etc/init.d/haserv stop兩臺(tái)服務(wù)器停止corosync服務(wù)rootvm1 ha_easy_inst

58、all# /etc/init.d/corosync stoprootvm2 ha_easy_install# /etc/init.d/corosync stop確定兩臺(tái)服務(wù)器的主從配置查看兩臺(tái)服務(wù)器的配置文件:more /home/ha_easy_install/ha.conf | grep HAFLAG主機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器A為主機(jī)模式:rootvm1 ha_easy_install# more /home/ha_easy_install/ha.conf | grep HAFLAGHAFLAG=1從機(jī)模式的服務(wù)器如下面紅色字體所示,當(dāng)前假定服務(wù)器B為從機(jī)模式:ro

59、otvm2 ha_easy_install# more /home/ha_easy_install/ha.conf | grep HAFLAGHAFLAG=2升級(jí)VM1.升級(jí)操作在主機(jī)上進(jìn)行,將升級(jí)交付件壓縮包放至/home/ha_easy_install/imos_version 執(zhí)行./reloadhaconf.sh vm /home/ha_easy_install/imos_version/VMPS50-IMOS110-B3323.tar.gz更改配置文件中VM的版本注:紅色部分按照實(shí)際情況填寫2.執(zhí)行升級(jí)腳本進(jìn)入目錄:/home/ha_easy_install rootvm1 ha_e

60、asy_install# ./vmhaupdate.sh進(jìn)行升級(jí)升級(jí)IS1.升級(jí)操作在主機(jī)上進(jìn)行,將升級(jí)交付件壓縮包放至/home/ha_easy_install/imos_version 執(zhí)行./reloadhaconf.sh is /home/ha_easy_install/imos_version/IS50-IMOS110-B3323.tar.gz更改配置文件中IS的版本注:紅色部分按照實(shí)際情況填寫2.執(zhí)行升級(jí)腳本進(jìn)入目錄:/home/ha_easy_install rootvm1 ha_easy_install# ./ishaupdate.sh進(jìn)行升級(jí)兩臺(tái)服務(wù)器啟動(dòng)corosync服務(wù)

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(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ì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論