From 7ac58230ea37d1b0a2095ff19bea8e928fd79bfc Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Thu, 10 Sep 2015 12:40:31 +0000 Subject: Reimplement CTL High Availability. CTL HA functionality was originally implemented by Copan many years ago, but large part of the sources was never published. This change includes clean room implementation of the missing code and fixes for many bugs. This code supports dual-node HA with ALUA in four modes: - Active/Unavailable without interlink between nodes; - Active/Standby with second node handling only basic LUN discovery and reservation, synchronizing with the first node through the interlink; - Active/Active with both nodes processing commands and accessing the backing storage, synchronizing with the first node through the interlink; - Active/Active with second node working as proxy, transfering all commands to the first node for execution through the interlink. Unlike original Copan's implementation, depending on specific hardware, this code uses simple custom TCP-based protocol for interlink. It has no authentication, so it should never be enabled on public interfaces. The code may still need some polishing, but generally it is functional. Relnotes: yes Sponsored by: iXsystems, Inc. --- sys/cam/ctl/ctl_frontend_ioctl.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/cam/ctl/ctl_frontend_ioctl.c') diff --git a/sys/cam/ctl/ctl_frontend_ioctl.c b/sys/cam/ctl/ctl_frontend_ioctl.c index 51e85087eb15..67156bca5788 100644 --- a/sys/cam/ctl/ctl_frontend_ioctl.c +++ b/sys/cam/ctl/ctl_frontend_ioctl.c @@ -93,6 +93,7 @@ cfi_init(void) port->fe_done = cfi_done; port->max_targets = 1; port->max_target_id = 0; + port->targ_port = -1; port->max_initiators = 1; if (ctl_port_register(port) != 0) { -- cgit v1.2.3