Creating an /etc/mcrc file

You should create an /etc/mcrc file on each node of your MetroCluster configuration if the nodes are on separate subnetworks.

  1. Create an /etc/mcrc file on one node (nodeA) and place it in the /etc directory. You might want to create the /etc/mcrc file by copying the /etc/rc file.
    Note: The /etc/mcrc file must be configured manually. It is not updated automatically. It must include all commands necessary to implement the network configuration on the partner node in the event the node is taken over by its partner.
  2. Enter the following commands in nodeA's /etc/mcrc file: hostname nodeAifconfig interface MetroCluster-partner-address netmask netmaskifconfig vip add virtual-IP-addressroute add default route-for-MetroCluster-partner-address 1routed onother-required-options

    interface is the interface on which the corresponding MetroCluster-partner-address will reside.

    MetroCluster-partner-address is the partner address of nodeB. It corresponds to the partner address configured by an ifconfig command in nodeB's /etc/rc file.

    virtual-IP-address is the virtual address of the partner (nodeB).

    other-required-options denotes whatever other options are needed to correctly configure the interface in your network environment.

    The following example shows nodeA's /etc/mcrc file:
    hostname nodeA
    ifconfig e0a 20.1.1.200 netmask 255.255.255.0
    ifconfig vip add 5.5.5.5
    route add default 20.1.1.50 1
    routed on
    options dns.domainname mycompany.com
    options dns.enable on
    options nis.enable off
    savecore
    
  3. Create an /etc/mcrc file on the other node (nodeB) and place it in the /etc directory. The /etc/mcrc file must include an ifconfig command that configures the address that corresponds to the address specified in the partner parameter in the partner node's /etc/rc. You might want to create the /etc/mcrc file by copying the /etc/rc file.
    Note: The /etc/mcrc file must be configured manually. It is not updated automatically. It must include all commands necessary to configure the interfaces.
  4. Enter the following commands in nodeB's /etc/mcrc file: hostname nodeBifconfig interface MetroCluster-partner-address netmask netmaskifconfig vip add virtual-IP-addressroute add default route-for-MetroCluster-partner-address 1routed onother-required-options

    interface is the interface on which the corresponding MetroCluster-partner-address will reside.

    MetroCluster-partner-address is the partner address of nodeA. It corresponds to the partner address configured by an ifconfig command in nodeA's /etc/rc file.

    virtual-IP-address is the virtual address of the partner (nodeA).

    other-required-options denotes other options that are needed to correctly configure the interface in your network environment.

    The following example shows nodeB's /etc/mcrc file:
    hostname nodeB
    ifconfig e0a 10.1.1.100 netmask 255.255.255.0
    ifconfig vip add 7.7.7.7
    route add default 10.1.1.50 1
    routed on
    options dns.domainname mycompany.com
    options dns.enable on
    options nis.enable off
    savecore