MayaNAS provides high-availability operation in
Active-Passive
Active-Active
- Install proper licenses that enables the following optional features
Failover option
Snapshot option
Replication option - Choose a number between 1 ..255 for cluster id, use that value for all resources to be managed as cluster resource. It is recommended to defer any storage pool or volume creation till failover configuration is finished.
- Attach persistent disks to the primary node such that the device names and disk resource name are the same. This is used by HA scripts to fence and forcibly take over disk resources.
- The node names should match the name -n output and resolve to IP address correctly either with proper /etc/hosts entries or DNS. Make sure it does not resolve to localhost 127.0.0.1 address.
- Decide on the virtual IP address. This is the floating IP address for the currently active server as decided by cluster heartbeat mechanism.
- Optionally you would need ping node ip address (usually the gateway ip address)
- If needed erase any previous information on the disks with command wipefs
Setup
Click Failover Management from sidebar menu to
gcloud compute instances attach-disk mayanas-ha1 --disk=data-1 --device-name data-1