Disaster Recovery

1 1 Disaster Recovery

This is a truth enviroment of Laos government project.Nast site system run as primary server,Mod as backup server,if there is a disaster occur,need to recover all application system from Mod,just same as Nast site.

2 1.1 Recovery Job—Disaster Recovery of files

This topo figure is modified by me,is not too clear.NAST site include server APP01,APP02,DB01,DB02,EMC,Mod site include server APP51,DB51,DB52,DC02.

clip_image002[7]

3 1.2.1 Map LUN to APP51(APP01-TO-APP51)

4 1.2.1.1 Remove the Bind from remote mirror

Fracture:

Promote:

Change MOD from secondary to primary.

5 1.2.1.2 Bind LUN to APP51(LUN 105-APP01)

Login to Navisphere on your PC

6 1.2.1.3 Select LUNs

7 1.2.1.4 Select Hosts

8 1.2.1.5 Assign disk to server

Login to APP51,then open computer management

Scan Disk

view Disk Management

Change Drive Letter,if no disk label,do as below

view My Computer

Check data

9 1.2.2 Map LUN to APP51(APP02-TO-APP51)

Same to “Map LUN to App51”

10 1.2 Recovery Job—Disaster Recovery of Oracle

Media Server:DC02

DB Server: DB51,DB52

11 1.4.1 The preparation work

12 1.4.1.1 Install BE12.5 in DC01(Once enough)

13 1.4.1.2 Install BE Agent In DB51,DB52 (Once enough)

14 1.4.1.2.1 Configuration about the BE Agent in DB51 rightly

15 1.4.1.2.2 Configuration BE Agent in DB52 rightly

16 1.4.1.3 Stop the weblogic service in App51

17 1.4.1.4 Settings in DB51,DB52

18 1.4.1.4.1 Install Oracle Database Instance n DB51

19 1.4.1.4.2 Settings of Database in DB51

Step 1

login the target server:DB51,enter the directory:C:/oracle,delete the file:PWDSID.ora

Step 2

Open the dos window,run the command:

cd C:/oracle

Step 3

run the command:

orapwd file=PWDSID.ora password=xxx(xxx is the password of Instance)

Step 4

login the server:DB01,Check the DBID

e.g:the DBID of DB01 is 41378444444

C:/WINDOWS/system32/drivers/etc>sqlplus sys@sid as sysdba

.......

SQL> select dbid from v$database;

DBID

----------

41378444444

SQL>

Step 5

RMAN to target DB server:DB51,open the dos window and run the command as follows:

rman target sys@egov01

...... 4279443568

RMAN>SHUTDOWN ABORT

RMAN>STARTUP NOMOUNT;

RMAN>SET DBID 41378444444

20 1.4.1.4.3 Settings in DB52(Once enough)

same to DB51.

21 1.4.2 Map LUN to APP51 AS D DISK(BAK01-TO-APP51)

Login the Navisphere on your PC

22 1.4.2.1 Remove the Bind LUN from remote Mirror

Fracture:

Promote:

23 1.4.2.2 Bind LUN to APP51(LUN 104-APP51)

Select LUNs

Select Hosts

24 1.4.2.3 Map LUN to APP51

Login to APP51,then open computer management.

Scan Disk:

view powerpath status:

view Disk Management:

Change Drive Letter:

view My Computer:

Check data:

25 1.4.3 Management of Media Device in DB51,DB52

26 1.4.3.1 Create a new device same as the Backup Device in BE

Login to DC02 and run BE program

27 1.4.3.2 Cover the directory related to the media device

28 1.4.3.3 Scan,Inventory,Catelog the Device

Scan

If you don’t scan the device,you cannot see the device even if you created a new one.

Right Click on the ‘DVDBDiff’ ,choose ‘Scan’,and you can see the device with a question mark before them.

Inventory

Right click on the device , choose ‘Inventory’ and you can see the device.

Catalog

29 1.4.4 Settings of Restored Job in BE

Create a new Restored Job:RestoreDB.

30 1.4.4.1 Settings of Logon Accounts

Menu: Network->Logon Accounts

Add the OS Accounts in DB51,DB52 Os and the Oracle Account

31 1.4.4.2 Settings of Oracle

32 1.4.4.3 General Settings

33 1.4.4.4 Selections List

clip_image004

34 1.4.4.5 Settings about Oracle Redirection

Server: DB51

Server logon account: use System Logon Account.

Instance logon account: this is oracle account.

Redirect Oracle files path:Directory in the DB51

35 1.4.4.6 Schedule,Run Now

Monitor:

clip_image005

The error information is necessary, and you have not to resolve it. Shown as follows:

Failed Final error: 0xe0001405

alter database rename file 'E: /redo03.log' to 'C: /redo03.log';

Step 3

Alter database open resetlogs

Step 4,Check the data

36 2 Recover EMC SAN

This work is performed while a true disaster occur.

37 2.1 Recover BAK01

38 2.1.1 synchronize data from mod to nast

Make sure no lun binded to any host at NAST site.if have some lun is binded to host,please remove them as below

select LUNs

Remove LUNs

39 2.1.2.1 force destroy remote mirror

select Properties

Click Force Destroy

40 2.1.2.2 create remote mirror

Add secondary image

Now,new status is as below,synchronizing data

41 2.1.2 Promote NAST to prmary

Fracture:

promote

synchronize

42 2.1.3 Bind LUN to BAK01

select LUNs

select Hosts

43 2.1.4 Map LUNs to server BAK01

Open Computer Management

sCan hardware

view Disk Management

44 2.2 Recover APP01

same as BAK01.

45 2.3 Recover APP02

same as BAK01.

46 3 Start all E-Applications

47 3.1 Install the IIS in App51

48 3.2 Install the weblogic10 in App51

49 3.3 Change the data source

Configure weblogic data source in weblogic console.

50 3.4 update database data

Login to oracle instance,perform below sql:

--update data at STEA after import init data

……………………………….

--end update

51 3.5 Install oracle client in App51

52 3.6 Deployment of supermap2008GIS in App51

53 3.6.1 Installation

54 3.6.1.1 Install .Net FrameWork3.0

Run the Programe SuperMap GIS 2008 EN/Disk1/SuperMap IS .NET/dotnetfx3.exe

55 3.6.1.2 Install SuperMap Object 2008 and IS.NET

56 3.6.1.3 Management of supermap license

Apply a new license for APP51 server,and install it.

57 3.6.2 Deployment of eMapNet

58 3.6.2.1 Installation eMapNet in IIS server

59 3.6.2.2 Change the SuperMapIS.config

60 3.6.2.3 Change Web.config

<="" p="">

ConnectionString: is oracle tnsname,you must install oracle client10 first.

ReportDetialUrl,is eMap application server URL.

MapServer_Address,must be accorded with IIS IP address.

61 3.6.2.4 Change MapView.aspx

62 3.6.2.5 Change Statistics.aspx

63 3.6.2.6 Config superMap

Right click “Default Web Site Properties”,

Modify IIS setting,Ensure IP and Port setting is right.

Modify ASP.NET setting,ensure version is 2.0.50727.

Directory security setting:only check integrated Windows authentication.

64 3.7 Deployment of E-Application in Weblogic

65 3.8 Start the service

66 3.8.1 Start IIS in APP51

67 3.8.2 Start weblogic in APP51

68 3.8.3 Start Supermap service in APP51

Start->All programs->SuperMap->SuperMap .IS 2008->Supermap .Net Service control->Start Service

View website to check: http://localhost:8080/eMapNet/MapView.aspx

69 3.9 Support by Domain Server

70 4 Recovery of SAN

This work is performed after testing,include make a demo to user only.

71 4.1 Unbind LUN from MOD

Remove the bind SG-APP51

remove all,then click OK.

72 4.2 Destroy remote mirror

73 4.2.1 Destroy at MOD site

Click Properties

Force Destroy,and use same method to destroy APP02-TO-APP51,BAK01-TO-APP51.

74 4.2.2 Destroy at NAST site

select APP01-TO-APP51.

select Properties

Force Destroy,use same method to destroy APP02-TO-APP51,BAK01-TO-APP51.

75 4.3 Create remote mirror

76 4.3.1 create APP01-TO-APP51 at NAST SITE

Step 1, create remote mirror

clip_image006[4]

Step 2, add secondary image

77 4.3.2 create APP02-TO-APP51

Step 1, create remote mirror

Step 2, add secondary image

78 4.3.3 create BAK01-TO-APP51

Step 1, create remote mirror

Step 2, add secondary image

原文地址:https://www.cnblogs.com/liuyou/p/2618499.html