Step-by-Step Guide to NAS (NFS) Failover over a LAN (with unicast) Supported by Open-E DSS Software Version: DSS ver. 6.00 up65 Presentation updated: March 2011
Replication Mode Synchronous Asynchronous Source/Destination Data Transfer Volume Type w/ System LAN WAN File based Block based NAS iscsi File-IO Block-IO FC NAS (NFS) Failover over a LAN Open-E DSS NAS (NFS) Failover is a fault tolerance process via NAS volume replication, that creates mirrored data volumes. Data is copied in real-time, and every change is immediately mirrored from the primary server to the secondary storage server. In case of a failure, scheduled maintenance of the primary server, or loss of the primary data source, failover automatically switches operations to the secondary storage server, so processes can be continued as usual. 2
VOLUME REPLICATION WITH FAILOVER BETWEEN TWO SYSTEMS WITHIN ONE LAN Recommended Resources Key Hardware (two systems) x86 compatible RAID Controller with Battery Backup Unit HDD s Network Interface Cards Ping Node (ping node it is any permanently (24/7) available host in the network. In particular case the ping node function can be performed by the server storing the data on the failover volume). Software Open-E DSS V6, 2 units Benefits Eliminate business disruption Data Redundancy over a LAN Switch Redundancy Disadvantages High cost of solution Natural disasters (earthquake, fire, flood...) can destroy local systems 3
Data is written and read to System 1 (primary) Data is continually replicated to System 2 (secondary) RAID System 1 Primary Heartbeat RAID System 2 Secondary Volume Replication PING NODEs Control Write Data Read Data 4
In case system malfunction or power failure or lost network connection of the System1 (primary), the server will send an e-mail Notification to the administrator. After a few seconds Automatic Failover is executed and users are switched to System 2 (secondary). RAID System 1 Primary X Heartbeat RAID System 2 Secondary PING NODEs Control Write Data Read Data 5
After switching, the replicated volume is available on System 2 (secondary) RAID System 1 Primary RAID System 2 Secondary X PING NODEs Write Data Read Data 6
TO SET UP NAS (NFS) FAILOVER, PERFORM THE FOLLOWING STEPS: 1. Hardware configuration: NAS (NFS) Failover over a LAN Settings server names, ethernet ports and bonding on secondary and primary node 2. Configure the Secondary node: Create a Volume Group, NAS Volume Configure Volume Replication mode (destination mode) settings mirror IP address NFS settings 3. Configure the Create a Volume Group, NAS Volume Configure Volume Replication mode (source mode) settings mirror IP address, creating Volume Replication task and start replication task. NFS settings, Create and settings new share on primary node. 4. Configure Failover (primary and secondary node) 5. Select services used in Failover 6. Configure virtual IP and Auxiliary connection 7. Start Failover Service 8. Test Failover Function 9. Run Failback Function 7
Hardware Requirements: To run the Volume Replication with Failover, two DSS systems are required. Both servers must be located and working in the Local Area Network. See below configurations for examples: RAID System 1 Primary Switch 1 LAN 1. Hardware Configuration Control Switch 2 PING NODEs IP Address : 192.168.2.106; 192.168.2.107 Data Server (DSS2) Secondary node IP Address:192.168.0.221 RAID System 2 Secondary Port used for WEB GUI management IP:192.168.0.220 Volume Replication, Auxiliary connection (Heartbeat) IP:192.168.1.220 Client Storage Access, Auxiliary connection (Heartbeat) bond0 IP:192.168.2.220 (eth2, eth3) Volume Groups (vg00) NAS volume (lv00) eth0 eth1 Bonding IP Optional: This path can be directly point-to-point connected eth1 to eth1 (without the switch). Virtual IP Address:192.168.10.230 NFS Failover/Volume Replication (eth1) Bonding IP Port used for WEB GUI management eth0 IP:192.168.0.221 eth1 Volume Replication, Auxiliary connection (Heartbeat) IP:192.168.1.221 Client Storage Access, Auxiliary connection (Heartbeat) (eth2, eth3) IP:192.168.2.221 bond0 Volume Groups (vg00) NAS volume (lv00) Share (data) Share (data) 8
Data Server (DSS2) Secondary node IP Address:192.168.0.221 1. Hardware Configuration After logging on the DSS V6 please go to SETUP tab, network and Interfaces. In Server name function enter Server name, in this example dss2 and click apply button. (All connections will be restarted) 9
Data Server (DSS2) Secondary node IP Address:192.168.0.221 1. Hardware Configuration Next select eth0 interface and change IP Address from 192.168.0.220 in field IP address to 192.168.0.221, and click apply button. (This will restart network configuration). 10
Data Server (DSS2) Secondary node IP Address:192.168.0.221 1. Hardware Configuration Next select eth1 interface and change IP address from 192.168.1.220 in field IP address to 192.168.1.221 and click apply button. 11
Data Server (DSS2) Secondary node IP Address:192.168.0.221 1. Hardware Configuration Again select Interfaces and in Create new bond interface function check two boxes with eth2 and eth3. In field Create select bonding mode. In this example select New balance-rr. Next enter IP Address in field Adress IP 192.168.2.221, Netmask, and click create button. 12
Data Server (DSS2) Secondary node IP Address:192.168.0.221 1. Hardware Configuration After reloading page on the dss2 server you have configured bond0. Setting of the network interfaces on the secondary node is finished. 13
1. Hardware Configuration After logging on the primary node please go to SETUP tab, network and Interfaces. In Server name function enter Server name. In this example enter dss1 and click apply button. (All connection will be restarted). 14
1. Hardware Configuration Again select Interfaces and in Create new bond interface function check two boxes with eth2 and eth3. In field Create select mode for bonding. In this example selected New balance-rr.. Next enter IP Address in field Address IP 192.168.2.220, Netmask, and click create button. 15
1. Hardware Configuration After reloading page on the dss1 server you have configured bond0. Setting of the network interfaces on the secondary node is finished. 16
Data Server (DSS2) Secondary node IP Address:192.168.0.221 2. Configure the Secondary node Under the CONFIGURATION tab, select volume manager and next Vol. Groups. Volume Groups (vg00) In Unit manager function add the selected physical units (Unit S000 or other) to create a new volume group (in this case, vg00) and click apply button 17
Data Server (DSS2) Secondary node IP Address:192.168.0.221 2. Configure the Secondary node Select the appropriate volume group (vg00) from the list on the left and create a new NAS volume of the required size. This logical volume will be the destination of the replication process. Next check the box with Use volume replication After assigning an appropriate amount of space for the NAS volume, click the apply button 18
Data Server (DSS2) Secondary node IP Address:192.168.0.221 2. Configure the Secondary node The destination NAS Volume is now configured. NAS volume (lv0000) 19
Data Server (DSS2) Secondary node IP Address:192.168.0.221 2. Configure the Secondary node Now, select the Vol. replication and check the box under Destination and click the apply button Next, under Mirror Server IP function, enter the IP address of the (in our example, this would be 192.168.1.220) and click the apply button NOTE: The Mirror server IP Address must be on the same subnet in order for the replication to communicate. VPN connections can work if you are not using a NAT. Please follow example: Source: 192.168.1.220 Destination: 192.168.1.221 20
Data Server (DSS2) Secondary node IP Address:192.168.0.221 2. Configure the Secondary node Choose CONFIGURATION, and NAS settings from the menu on the secondary node In the NAS settings function, check the box Use NFS, click apply to confirm. 21
3. Configure the Under the CONFIGURATION tab, select volume manager and next Vol. Groups Add the selected physical units (Unit MD0 or other) to create a new volume group (in this case, vg00) and click apply button Volume Groups (vg00) 22
3. Configure the Select the appropriate volume group (vg00) from the list on the left and create a new NAS volume of the required size. This logical volume will be the source of the replication process Next, check box Use volume replication After assigning an appropriate amount of space for the NAS volume, click the apply button NOTE: The source and destination volumes must be of identical size. 23
3. Configure the The source NAS Volume is now configured. NAS volume (lv0000) 24
3. Configure the Now, select Vol. replication, and check the box under Source and click the apply button Next, under Mirror Server IP function, enter the IP address of the Secondary node (in our example this would be 192.168.1.221) and click the apply button 25
3. Configure the Enter the task name in field Task name next click on the button In the Destination volume field select the appropriate volume (in this example, lv0000) and click create to confirm 26
3. Configure the Now, in the Replication task manager function, click on button under to start the Replication task on the Primary node 27
3. Configure the In the Replication tasks manager function information is available about the current running replication task. 28
3. Configure the Under the STATUS tab, select tasks and Volume Replication Click on the button with task name (in this case MirrorTask) to display detailed information on the current replication task NOTE: Please allow the replication task to complete similar to above with status being Consistent before writing to the NAS Logical Volume via NFS. 29
3. Configure the Choose CONFIGURATION, and NAS settings from the menu In the NAS settings function, check the box Use NFS, click apply to confirm. 30
3. Configure the Next, choose CONFIGURATION, NAS resources and Shares from the menu. Enter share name in field Name and click apply to confirm. 31
3. Configure the In the NFS share acces function, check the box Use NFS, and click apply to confirm. 32
4. Configure Failover Next choose SETUP, network, end select Failover on the primary node. In the Failover configuration function, check the box Enable Failover functionality. Select Network connection mode (in this example Unicast) and select Network interface for unicast (bond0). Next enter the Secondary node IP and the Ping Node IP (must be on the same subnet) and click the apply button. 33
Data Server (DSS2) Secondary node IP Address:192.168.0.221 4. Configure Failover Now, select Failover on the secondary node Now, in Failover configuration function, check the box Enable Failover functionality. Select Network connection mode (in this example Unicast) and select Network interface for unicast (bond0). After choose Secondary node on localhost enter IP address and click the apply button 34
5. Configure Virtual IP and Auxillary connection Now, select the bond0 within Failover. In the Virtual IP Settings function check box Enable virtual IP and enter IP address, Netmask, Broadcast, and click the apply button. By setting the address of the secondary node in a Failover configuration, automatic detection of the interface for communication. This step is necessary to complement the destination IP address used in unicast. NOTE: There need to be at least two auxiliary connections. The interface with the virtual IP can also serve as one of the auxiliary connections. Please set the Virtual IP Address in a different network subnet then the physical IP Address. To have additional Failover systems, please set this pair in a different network subnet from the other Failover systems. If the virtual IP must be in the same network subnet, there will be extra configuration steps required. Please refer to other document which describe configuration with static routing. 35
5. Configure Virtual IP and Auxillary connection Now, select the eth1 within Failover. In the Auxiliary connection function check box Use this network interface to communicate between the nodes next enter IP address for Unicast remote IP and click the apply button. 36
Data Server (DSS2) Secondary node IP Address:192.168.0.221 5. Configure Virtual IP and Auxillary connection Choose, SETUP and network and Interfaces from the menu Now, select the bond0 within Failover. In the Virtual IP Settings function check the box Enable virtual IP and enter IP address, Netmask, Broadcast, and click the apply button. By setting the address of the primary node in a Failover configuration, automatic detection of the interface for communication. This step is necessary to complement the destination IP address used in unicast. 37
Data Server (DSS2) Secondary node IP Address:192.168.0.221 5. Configure Virtual IP and Auxillary connection Now, select the eth1 within Failover. In the Auxiliary connection function check box Use this network interface to communicate between the nodes next enter IP address for Unicast remote IP and click the apply button. 38
6. Select services used in Failover Now, in Failover services function (on primary node), uncheck the box with iscsi, then check box witch NFS, and click the apply button NOTE: Selecting NFS in Failover service will reduce the access to shares on volumes used in Failover Tasks to NFS access only. Activating Failover Service will automatically deactivate all other services for those shares. 39
7. Start Failover Service Next, in the Failover Tasks function, move the Failover Tasks to be used for the failover service to the Failover Tasks area clicking button and click apply 40
7. Start Failover Service At this point both nodes are ready to start the Failover service 41
7. Start Failover Service After clicking the start button configuration of both nodes will be complete NOTE: You can now mount the NFS client computers. 42
7. Start Failover Service After start Failover, check the status in Failover status function. All must read OK NAS Failover/Volume Replication 43
7. Start Failover Service In the Task status, (after clickling button) the destination volumes must be consistent. NAS Failover/Volume Replication 44
8. Test Failover Function In order to test Failover in Manual Failover, function, click on the Manual failover button. 45
8. Test Failover Function After clicking on the Manual failover button, primary node enters suspend mode 46
8. Test Failover Function The Failover status function shows the Global status of the primary node. Status service is in suspend mode and the node is inactive. 47
Data Server (DSS2) Secondary node IP Address:192.168.0.221 8. Test Failover Function In Failover status function Global status shows the status of the secondary node. The service status is degraded and Node status is active. 48
Data Server (DSS2) Secondary node IP Address:192.168.0.221 9. Run Failback Function In order to run Failback in Failover manager function click on the Sync volumes button first. 49
Data Server (DSS2) Secondary node IP Address:192.168.0.221 9. Run Failback Function After synchronization the task status of the destination volume must be Consistent 50
Data Server (DSS2) Secondary node IP Address:192.168.0.221 9. Run Failback Function In order to return the active server state to the Primary server click on the Failback button 51
9. Run Failback Function After clicking on Failback button (in Failover manager function on Secondary node) is now active. 52
9. Run Failback Function is active again and ready for Failover. Failover/Volume Replication The configuration and testing of NAS Failover/Failback is now complete. 53
Thank you! Follow Open-E: 54