AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
Expand all | Collapse all

multibos: how to change IPs of standy BOS from active BOS

  • 1.  multibos: how to change IPs of standy BOS from active BOS

    Posted Thu July 10, 2008 04:41 PM

    Originally posted by: styerd


    Normally one might run mktcpip or ifconfig to reconfigure the IP addresses of network interfaces. I have many processors on a LAN that is split/merged by reconfiguring the switch and changing the IP addresses of some subset of the processors. These are all multibos systems. I have a need to reconfigure both the active and standby BOS IP addresses to be in the "new" network partition.

    I was hoping to mount the multibos file systems (multibos -m) export ODMDIR to the standby ODM and simply odmchange only the netaddr for each interface to match the network being used by the active BOS. I cannot run mktcpip since it acts on only the primary BOS.

    Unfortunately when the standy BOS is booted it configures with its previously defined IP address and my changes to the CuAt have been overwritten. Perhaps there is a prior savebase before my changes and then a restbase during boot that is overwriting my changes. I can't run my own savebase because the configuration data is saved from the primary BOS and not from the inactive standby BOS. I have confirmed that savebase/restbase does in fact overwrite the netaddr attributes.

    Perhaps this is a unique senario and there are no doubt other ways to work around the problem but what I need is for the standby to boot the first time with the correct IP addresses. Suggestions?
    #AIX-Forum


  • 2.  Re: multibos: how to change IPs of standy BOS from active BOS

    Posted Thu July 10, 2008 04:56 PM

    Originally posted by: esv


    styerd wrote:

    Perhaps this is a unique senario and there are no doubt other ways to work around the problem but what I need is for the standby to boot the first time with the correct IP addresses. Suggestions?

    I'd suggest to rephrase your question/doubt/problem.

    Are you trying to start the newly created bosboot image with different IP address than the one currently configured on your running kernel? do you doubt your newly created bos image would start with the correct IP addresses on the right adapters?

    do you need to reconfigure both, the running kernel and the stand-by one? why not just reconfigure the running kernel and recreate the stand-by one? could u create a firstboot script to reconfigure the IP addresses of the standby or multibos kernel to reconfigure your network adapters?

    best regards,
    enrique.
    #AIX-Forum


  • 3.  Re: multibos: how to change IPs of standy BOS from active BOS

    Posted Fri July 11, 2008 08:29 AM

    Originally posted by: styerd


    Actually the standby is not newly created. Updates have been applied to the standby and in this state I can switch back and forth between BOS images. I really wish to change the IP addresses of both the active and standby BOS as if they were one. Yes, a firstboot script for the standby is a possibility I was wondering if there were other methods that I had missed.
    #AIX-Forum


  • 4.  Re: multibos: how to change IPs of standy BOS from active BOS

    Posted Wed July 16, 2008 01:35 PM

    Originally posted by: styerd


    This seems to work ...

    • use "mktcpip" to configure an active BOS IP for <interface> as <address>
    • multibos -m
    • export ODMDIR="/bos_inst/etc/objrepos"
    • print "CuAt: value=<address>" | odmchange -o CuAt -q"name=<interface> and attribute=netaddr"
    • cp /etc/hosts /bos_inst/etc/hosts
    • savebase -o $ODMDIR -d <standby BOS BLV>
    • multibos -u

    The "savebase" is the key.
    #AIX-Forum