A Quick Look at Setting Up Disaster Recovery
Let us consider the most common use case where you create two data grids, create a gridset, and add them to a gridset in the right order.
| # | Steps | References | 
|---|---|---|
| 1 | Create a data grid with a name that is planned to be the primary grid (grid1). | Defining a Data Grid. | 
| 2 | Create a data grid with a name that is planned to be a mirror/DR grid (grid2). | Defining a Data Grid. | 
| 3 |  
				   Create at least one proxy in each data grid with the appropriate proxy_mirroring_ static_listen_host and proxy_mirroring_static_listen_port values to set the IP address and port for how other data grids communicate with this data grid.  | 
 
				 
				  Creating a Proxy. 
				   To configure static mirroring host and port, see Configuring a Proxy with Static Mirroring Host and Port.  | 
 
			 
| 4 | Create a gridset by using the tibdg tool with the following command: | Creating a Gridset. | 
| 5 |  
				   Add the first data grid to the gridset (the first data grid added becomes the primary grid) by using the tibdg command: tibdg gridset add gridset1 grid1 proxy_static_ip:proxy_static_port  | 
 
				Adding Data Grids to a Gridset. | 
| 6 |  
				   Add the second data grid to the gridset (which becomes a mirror grid) by using the tibdg command: . tibdg gridset add gridset1 grid2 proxy_static_ip:proxy_static_port  | 
 
				Adding Data Grids to a Gridset. | 
| 7 |  Start the data grids and create a checkpoint in the primary grid so that it is mirrored to the mirror grid. Perform the following steps: 
				  
  | 
 
				To start the data grid processes, see 
				  Starting the Data Grid Processes. 
				   To create a checkpoint, see Creating a Checkpoint.  | 
 
			 
| 8 | In the event of a disaster, make the mirror grid the new primary grid by using the tibdg command: tibdg gridset setPrimary gridset1 grid2 . | See Activating the Mirror Grid as the Primary Grid. | 
