You can configure multipathing groups with standby interfaces. As the name implies, the interface is considered as standby and is not used unless some other interface in the group fails.
The standby interface is not used to send normal data packets. Consequently, limited traffic flows on a standby interface. You must configure standby interfaces with a test address to insure that probes are sent to determine if the interface is functional. If you do not configure standby interfaces with a test address, the interface is not chosen for failovers when another interface in the group fails. A standby interface might carry traffic under the following conditions:
If another host on the network communicates with a host using the standby interface address, the standby interface is subsequently used for incoming packets.
Applications binding (either using bind or using IP_ADD_MEMBERSHIP) to the address hosted on the standby interface might continue to generate traffic using the standby interface.
Thus, the system does not normally select a standby interface (except for probes), unless it is explicitly chosen by an application. If some interface in the group fails, all network access is failed over to the standby interface. To configure a standby interface, you use the ifconfig command's new standby parameter using the following syntax:
# ifconfig interface-name standby group group-name |
"How to Configure a Multipathing Group Where One of the Interfaces is a Standby Interface" shows the steps you perform.
The in.mpathd daemon sends probes on the standby interface once a test address is configured on the standby interface. You should configure only test addresses on a standby interface. If any other address is added on the standby, the addition of these addresses will fail. If standby is marked on an interface which already has addresses other than test addresses, automatic failover of these addresses will take place to a different interface in the group, leaving behind only the test address, if there is one. It is advisable not to configure non-test address on a standby interface.
You need to mark the address as a test address by using the ifconfig command's deprecated and -failover option before setting standby or setting up.
To configure a test address on a standby interface, use the following syntax:
# ifconfig interface-name plumb ip-address <other-parameters> deprecated -failover standby up |
For <other-parameters>, use the parameters required by your configuration. See the ifconfig(1M) man page for descriptions.
Standby interfaces are not used for failover if there is no test address configured on that interface.
For example, to create a test address with the following configuration:
Physical interface hme2 as a standby interface
Address of 19.16.85.22
With deprecated and -failover set
Sets the netmask and broadcast address to the default value
You type the following command line:
# ifconfig hme2 plumb 19.16.85.22 netmask + broadcast + deprecated -failover standby up |
The interface is marked as a standby interface only after the address is marked as a NOFAILOVER address.
"How to Configure a Multipathing Group Where One of the Interfaces is a Standby Interface" shows the steps you perform.
You can clear a standby interface using the following syntax:
# ifconfig interface-name -standby |