Hi
I am reading the HA functionality of the ctl(4) driver, i have created two nodes that have high availability on the LUN that I expose with iscsid(8) everything works as expected, when the primary node goes down the kernel of the secondary node reports that the state of kern.cam.ctl.ha_link changes to 1, indicating that the connection with the primary node has been lost.
So for the secondary node to take the role of primary I need to change the status of kern.cam.ctl.ha_role to 0 Then the data starts flowing again, but I have to make that change manually with sysctl(8).
Having this problem, my question is the following, is there a way to automate a process according to the changes in the kernel states? The only thing I can think of is to create a script that checks the status of kern.cam.ctl.ha_role and schedule it in cron every second for example.
I have a feeling that what I say is not correct and it is not the best way to do it. I have read a project called BeaST where implement a quorum disk, I assume that implementing that type of solution would be the most correct.
Thanks.
I am reading the HA functionality of the ctl(4) driver, i have created two nodes that have high availability on the LUN that I expose with iscsid(8) everything works as expected, when the primary node goes down the kernel of the secondary node reports that the state of kern.cam.ctl.ha_link changes to 1, indicating that the connection with the primary node has been lost.
So for the secondary node to take the role of primary I need to change the status of kern.cam.ctl.ha_role to 0 Then the data starts flowing again, but I have to make that change manually with sysctl(8).
Having this problem, my question is the following, is there a way to automate a process according to the changes in the kernel states? The only thing I can think of is to create a script that checks the status of kern.cam.ctl.ha_role and schedule it in cron every second for example.
I have a feeling that what I say is not correct and it is not the best way to do it. I have read a project called BeaST where implement a quorum disk, I assume that implementing that type of solution would be the most correct.
Thanks.