Hi,
My goal is it to have two nodes working in a cluster and providing HA iSCSI targets for virtual machines. Success has been achieved on two FreeBSD 9.3 nodes to configure ZFS+HAST+CARP+iSCSI, but the failover is behaving strange to my opinion. Here is what it looks like:
Initial configuration:
Node 1- HAST role: primary, Status: complete, CARP: MASTER
Node 2- HAST role: secondary, Status: complete, CARP: BACKUP
Now I want to check the failover functionality:
1) Restart BACKUP node – here is the state after it comes up
2) Restart MASTER node – here is the state after it comes up
I would be glad for any comment and/or help.
My goal is it to have two nodes working in a cluster and providing HA iSCSI targets for virtual machines. Success has been achieved on two FreeBSD 9.3 nodes to configure ZFS+HAST+CARP+iSCSI, but the failover is behaving strange to my opinion. Here is what it looks like:
Initial configuration:
Node 1- HAST role: primary, Status: complete, CARP: MASTER
Node 2- HAST role: secondary, Status: complete, CARP: BACKUP
Now I want to check the failover functionality:
1) Restart BACKUP node – here is the state after it comes up
a. Node 1 – HAST Role: primary, Status: degraded, CARP: MASTER
b. Node 2 – HAST Role: INIT, Status: - , CARP: BACKUP
c. I need to put the Node 2 into HAST secondary role manually
d. Initial configuration achieved
b. Node 2 – HAST Role: INIT, Status: - , CARP: BACKUP
c. I need to put the Node 2 into HAST secondary role manually
d. Initial configuration achieved
2) Restart MASTER node – here is the state after it comes up
a. Node 1 – HAST Role: INIT, Status: - , CARP: BACKUP
b. Node 2 – HAST Role: secondary, Status: -, CARP: MASTER
c. I need to put the Node 1 into HAST primary role manually
d. Initial configuration achieved
As I was expecting that after the reboot of either node the failover storage cluster would automatically achieve the initial state, I think there must be something wrong either with my configuration, or is there a bug in the hast-carp-switch script I had got from this link?b. Node 2 – HAST Role: secondary, Status: -, CARP: MASTER
c. I need to put the Node 1 into HAST primary role manually
d. Initial configuration achieved
I would be glad for any comment and/or help.