Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

Configuring SnapReplicate™

Having prepared the environment on both Azure SoftNAS

...

instances, we can now set up high availability. The first step towards high availability in SoftNAS is to establish replication. SnapReplicate™ makes this as simple as completing a quick wizard.

To establish the secure SnapReplicate relationship between two SoftNAS nodes, simply follow the steps given below:

...

  •  On your primary instance (source controller) navigate to SnapReplicate/SNAP HA

...

  • .

  •  Click

...

  • the Add

...

  • Replication button in

...

  • the Replication Control Panel.

...

Image Added

...

  •  From the Add

...

  • Replication wizard, read the Instructions and then click

...

  • the Next button.

Image Added

...

  •  Enter the IP address

...

  • of your secondary instance (Target) in the IP address text box.  This step is specifying the network path

...

  • that SnapReplicate™ traffic will take.

  •  

...

  • Once done, click the Next button.
Note

The source node must be able to connect via HTTPS to the target node (similar to how the browser user logs into StorageCenter using HTTPS). HTTPS is used to create the initial SnapReplicate configuration.

Next, several SSH sessions are established to ensure two-way communications between the nodes is possible.

...

When connecting two Azure nodes, it is best to use the internal instance IP addresses, as traffic is routed internally by default between instances. 


Note

If you have not yet done so, the Security Group on each instance should be configured with the internal IP addresses of the paired instance (the source instance should recognize traffic from the target instance, and the target instance should recognize traffic from the source) to ensure both HTTPS and SSH traffic between instances is recognized.


Image Added

  •  

    Enter the username for the secondary instance (target) in the Remote admin user ID text box.

    Info

    The username should be softnas.



  •  

    Enter the password you set during creation for the secondary instance (target) and verify in the appropriate text boxes.


  •  Once done, click the Next button.

Image Added

  •  Read the Finish Replication Setup instructions and click the Finish button.

Image Added

  •  The SnapReplicate relationship between the two SoftNAS controller nodes will be established. The corresponding SyncImage of the

...

  • SnapReplicate will be displayed.

...


  •  After data from the volumes on the source node is mirrored to the target, once per minute

...

  • SnapReplicate transfers keep the target node hot with data block changes from the source volumes.

  •  The tasks and an event log will be displayed in the Replication Control Panel section. This indicates that a

...

  • SnapReplicate relationship is established and that replication should be taking place.

Image Added

Configuring SNAP HA™

SnapReplicate™ establishes a replication relationship, one that can be manually triggered or scheduled, but is not automated. For true high availability in a failover situation, SNAP HA™ must be configured as well.

...

  •  While still on the SnapReplicate/SNAP HA page, click the Add SNAP HA button in the Replication Control Panel.

Note

Configuration of SnapReplicate™ is a prerequisite to setup of SNAP HA™.  If SnapReplicate™ is not configured, the Add SNAP HA™ button will be grayed out.


Image Added


Note
If you have not yet configured a notification email,

...

you will need to provide one

...

prior to continuing SNAP HA™.

...

Image Removed

...

  •  Enter your e-mail into the Email text box.

  •  Once done, click the OK button.

Image Added

  •  From the Add High Availability wizard, read the Instructions and then click the Next button.

Image Added

  •  Provide your Username or Service Principal into the Username/Service Principal text box.

  •  

    Enter and confirm you Password into the appropriate text boxes.

    Note

    If using a Service Principal, enter your Tenant ID into the Tenant text box.


  •  Once done, click the Next button.

Image Added

  •  In the Virtual IP text box, enter an IP address that is within the same CIDR block as the instances

...

  • you have created.
  •  FOR EXAMPLE: If the IP Address for our primary instance here is 10.0.1.4 and the IP Address for our secondary instance is 10.0.2.4.  We will give the Virtual IP an address of 10.0.3.x.

Note
titleUpdate All Subnets

This is an advanced option that can be useful if you do not have a large number of subnets.

If hundreds of subnets are in use, it is recommended

...

to NOT select this option.

...


Note
titleVirtual IP on same

...

Subnet

This is an advanced option that should only be checked if using VNET peering

...

.

...


Image Added

...

  1. In the HA Num of retries text box, enter the max number of retries before your virtual machine fails over.

...


  1. In the Storage timeout text box, enter the max time (in seconds) that storage can be unavailable before a failover is triggered.

...


  1. In the Max. hoping request time (ms) text box, enter the default time for max ioping

...

  1. requests, to ensure that a failover is triggered more quickly in event of failure.

...


  1. From the HA node recovery mode section, select the behavior of the failed node during a failover. 
Info
  1. Reboot - this is the default option, allowing for quicker recovery and re-establishment of high availability, as the failed node will reboot, and SNAP HA will be reactivated, with the original node set as secondary.
  2. Shutdown - The failed node will remain shut down. You will need to reboot the instance manually to re-establish high availability. 
  3. None (No action taken) - This option is only for debug or support use. The failed node will remain in its current state. 

...

To test, shut down one of the instances. The other will become primary after a few moments. Alternatively, select Actions, and Takeover to simulate a failover. Follow the instructions found in Recovering from a High Availability Failure to re-establish your highly available configuration.

...

  •  Once done, click the Next button.

Image Added

  •  Read the Finish HA Setup instructions and click the Finish button.

  •  It will display a Loading... image while HA pairing is being created.

Image Added