I'm trying to wrap my head around vfiler configs in HA pairs. I've fount bits and pieces in various docs but haven't found a comprehensive guide.
Exactly how does a vfiler failover between nodes? What do I need to make this work? Could someone provide example rc files?
Here is where I'm at:
FilerA has several vlans on vif0: 101, 102 103 104
FilerB has the same vlans defined
FilerA has several vfilers with ipspaces:
vfA1, ipspace ip-vfA1 vif0-101 10.0.0.1/24
vfA2, ipspace ip-vfA2 vif0-102 10.0.2.1/24
FilerB has several vfilers with ipspaces:
vfB1, ipspace ip-vfB1 vif0-103 10.0.0.1/8
vfB2, ipspace ip-vfB2 vif0-104 10.0.3.1/24
All ipspaces on both filers with same interfaces
The ifconfig lines in the rc files specify the partner interfaces, e.g.
on FilerA.:ifconfig vif0-102 10.0.2.1 netmask 255.255.255.0 partner vif0-102
on FilerB: ifconfig vif0-102 10.0.2.4 netmask 255.255.255.0 partner vif0-102
The owning filer's rc file has the default route for each vfiler specified with a vfiler run and a default route for default-ipspace.
When I failover, the interfaces don't work on the vfilers. I see this on the console of the takeover filer:
Mon Apr 4 17:35:38 GMT [FilerB: net.ifconfig.noPartner:error]: ifconfig: 'vif0-102' cannot be configured: Address does not match any partner interface.
Does the partner need an ip assigned to it's interface (on the same subnet as the primary)? I tried this but it didn't work:
FilerB> ifconfig vif0-102 10.0.2.4 netmask 255.255.255..0
ifconfig: can't assign address to vif0-102, no vfiler in this interface's ipspace (ip-vfA2) has this address
So it looks like the rc file ifconfigs won't work the way I have them on the partners.
If I try to configure a shared interface in System Manager on the partner, it insists on an ip but fails because there is no vfiler on the partner in that ipspace. Everything in the default-ipspace works fine.