Friday, 16 September 2011

VIOS INSTALL from CSM

Defining VIOS NIM Resources


  • Define a NIM “mksysb” resource on CSM MS for VIOS  Gold Image using NIM and verify resource:

i.e.


    1. nim -o define -t mksysb -a server=master \
            -a location=/viosbackups/mksysb/base.image.1.3.0.1-FP-8.1.vios \    
            VIOS_1301_FP81_mksysb


    1. lsnim –l VIOS_1301_FP81_mksysb

VIOS_1301_FP81_mksysb:
   class          = resources
   type           = mksysb
   Rstate         = ready for use
   prev_state     = unavailable for use
   location       = /viosbackups/mksysb/base.image.1.3.0.1-FP-8.1.vios
   version        = 5
   release        = 3
   mod            = 0
   oslevel_r      = 5300-00
   alloc_count    = 0
   server         = master
   extracted_spot = VIOS_1301_FP81_spot


  • Define a “SPOT” resource on CSM MS for VIOS Gold Image using NIM and verify resource:

i.e.


    1. nim -o define -t spot -a server=master \
-a location=/NIM/vios/1.3.0.1-FP-8.1_spot –a\
source=VIOS_1301_FP81_mksysb VIOS_1301_FP81_spot

    1. lsnim –l VIOS_1301_FP81_mksysb

VIOS_1301_FP81_spot:
   class         = resources
   type          = spot
   plat_defined  = chrp
   arch          = power
   Rstate        = ready for use
   prev_state    = verification is being performed
   location      = /NIM/vios/1.3.0.1-FP-8.1_spot/VIOS_1301_FP81_spot/usr
   version       = 5
   release       = 3
   mod           = 0
   oslevel_r     = 5300-00
   alloc_count   = 0
   server        = master
   if_supported  = chrp.mp ent
   Rstate_result = success
   mksysb_source = VIOS_1301_FP81_mksysb


Defining VIOS as CSM managed node



  • Create a node definition file for VIOS on the CSM Management Server

  lsnode -F <existing node> /tmp/nodedef_<new-node>

  Edit the “nodedef_<new-node> file and change the highlighted items to reflect you
  VIOS configuration.

i.e.

{p06501csmp01}/root$ vi /tmp/nodedef_p13003vion06-csm

 p13003vion06-csm:
 ConsoleMethod = hmc
 ConsoleSerialSpeed = 9600
 ConsoleServerName = hmc105-csm
 HWControlNodeId = p13003vion06
 HWControlPoint = hmc105-csm
 InstallAdapterDuplex = full
 InstallAdapterGateway = p06501csmp01-csm
 InstallAdapterSpeed = 100
 InstallAdapterType = ent
 InstallDistributionVersion = 5.3.0
 InstallMethod = nim
 InstallOSName = AIX
 LParID = 3
 ManagementServer = 10.254.220.137
 Mode = PreManaged
 PowerMethod = hmc


  Note: Where two HMCs are available, both should be specified for HWControlPoint in
      the format "hmc207-csm,hmc208-csm"


  • Add the node to the CSM data base using custom node definition file

  definenode -f /tmp/nodedef_<new-node>

  • Verify node has been correctly defined to CSM and hardware control is working

List the new created node definitions within the CSM database:

    1. lsnode -l <new-node>

At this point the node status should show as "PreManaged":

    1. lsnode  -a  Mode  <new-node>

Query the power status of the node:

    1. rpower  -n  <new-node>  query

  • Use “getadapters” to retrieve VIOS Ethernet adapter information to a temporary file:

Note. Take extreme care, DO NOT ACCIDENTLY USE -a flag instead of -n. Otherwise you will network reboot all the nodes configured on the CSM server.

 getadapters -evn <new-node> -o /tmp/getadd_<lpar>.out

  i.e.

 getadapters -evn p13003vion06-csm -o /tmp/getadd_p13003vion06-csm.out

Verify adapter hardware locations and MAC address:-

  i.e. cat /tmp/getadd_ p13003vion06-csm.out

Node::adapter_type::interface_name::MAC_address::location::media_speed::adapter_duplex::install_server::install_gateway::ping_status::machine_type::netaddr::subnet_mask

p13003vion06-csm::ent::::001125CBAB74::U7879.001.DQDRWBH-P1-C4-T1::::::::::::secondary::::

p13003vion06-csm::ent::::001125CBAB75::U7879.001.DQDRWBH-P1-C4-T2::::::::::::secondary::::

p13003vion06-csm::ent::::001125CBAB76::U7879.001.DQDRWBH-P1-C4-T3::::::::::::secondary::::

  • Update CSM database with node ethernet adapter information

Using UNIX L3 design 'adapter placement' section, verify the correct hardware location code for the csm physical interface (backing device for SEA) and the speed of the network adapter.

Run “chnode” to change the node definition for the <new-node> and cut and paste the corresponding MAC address for CSM interface into the appropriate field and set the adapter speed.

            i.e.
chnode -n p13003vion06-csm InstallAdapterMacaddr=001125CBAB75  \
InstallAdapterType=ent InstallAdapterDuplex=full \ InstallAdapterSpeed=100

  • Define node to NIM database using “csm2nimnodes” and verify definition using NIM:

i.e.

  csm2nimnodes -n p13003vion06-csm

  lsnim -l p07501cvct01-csm

p13003vion06-csm:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = csm_mgmt_lan p13003vion06-csm 001125CBAB77 ent
   net_settings1  = 100 full
   cable_type1    = N/A
   Cstate         = ready for a NIM operation
   prev_state     = ready for a NIM operation
   Mstate         = not running

New VIO Server Installation from CSM MS using NIM



  • Assign NIM resources to <new-node> using “smitty nim_bosinst”

i.e.

1.       smitty nim_bosinst

   qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
   x                       Select the installation TYPE                                                    x
   x                                                                                                                   x
   x Move cursor to desired item and press Enter.                                                 x
   x                                                                                                                   x
   x   rte - Install from installation images                                                              x
   x   mksysb - Install from a mksysb                                                                             x
   x   spot - Install a copy of a SPOT resource                                                                  x
   qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

2.       Select mksysb

  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x              Select the MKSYSB to use for the installation                                    x
  x                                                                                                                    x
  x Move cursor to desired item and press Enter.                                                  x
  x                                                                                                                    x
  x   aix520ml5_mksysb          resources       mksysb                                           x
  x   cvcp01520ml5_mksysb       resources       mksysb                                        x
  x   p09301gist01_mksysb       resources       mksysb                                         x
  x   cvct01_mksysb             resources       mksysb                                                         x
  x   aix520ml7_mksysb          resources       mksysb                                           x
  x   aix530ml3_mksysb          resources       mksysb                                           x
  x   aix530-tl04_mksysb        resources       mksysb                                            x
  x   VIOS_1301_FP81_mksysb     resources       mksysb                                   x
  x   aix530-tl05_mksysb        resources       mksysb                                            x
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

3.       Select VIOS gold image
 
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x               Select the SPOT to use for the installation                                        x
  x                                                                                                                    x
  x Move cursor to desired item and press Enter.                                                  x
  x                                                                                                                    x
  x   aix520_spot             resources       spot                                                       x
  x   aix530_spot             resources       spot                                                       x
  x   aix530-ml03_spot        resources       spot                                                    x
  x   aix530-ml02_spot        resources       spot                                                    x
  x   aix520-ml07_spot        resources       spot                                                    x
  x   aix530-tl04_spot        resources       spot                                                      x
  x   aix530-tl05_spot        resources       spot                                                      x
  x   VIOS_1301_FP81_spot     resources       spot                                             x
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

4.       Select VIOS gold SPOT




  • Verify the NIM resources and fields below for you VIOS and hit return to complete NIM resource allocation:

i.e. for new VIOS server Gold image builds

  Installation Target                                             p13003vion06-csm
  Installation TYPE                                   mksysb
  SPOT                                                VIOS_1301_FP81_spot    
  LPP_SOURCE                                         []                      +
  MKSYSB                                                        VIOS_1301_FP81_mksysb
 
  BOSINST_DATA to use during installation                      []                      +
  IMAGE_DATA to use during installation                         []                      +
  RESOLV_CONF to use for network configuration            []                      +
  Customization SCRIPT to run after installation                []                      +
  Customization FB Script to run at first reboot                 []                      +
  ACCEPT new license agreements?                                           [no]                    +
  Remain NIM client after install?                                     [yes]                    +
  PRESERVE NIM definitions for resources on                  [yes]                   +
  this target?

            Note.

The “remain NIM client after install” set to “yes” will ensure the CSM IP address will be configured on the physical adapter after installation (if not IP contained in mksysb will be remain after post installation). When restoring an mksysb for VIOS this must be set to “no” to prevent the SEA IP address being configured on physical adapter.

If you want an unprompted installation you must boot the VIOS lpar into SMS to identify the internal SCSI disks locations and create a custom “bosinst.data” files detailed in “New VIOS Post Installation tasks” section.

  • Verify NIM resources have been correct allocated to  <new-node> using “lsnim”:i.e.

lsnim -l p13003vion06-csm      

p13003vion06-csm:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = csm_mgmt_lan p13003vion06-csm 001125CBAB77 ent
   net_settings1  = 100 full
   cable_type1    = N/A
   Cstate         = BOS installation has been enabled
   prev_state     = not running
   Mstate         = not running
   boot           = boot
   mksysb         = VIOS_1301_FP81_mksysb
   spot           = VIOS_1301_FP81_spot
   control        = master

  • Network boot the <new-node>, tail the CSM logs for the boot process and open a read only console to monitor installation;

    1. netboot -n p13003vion06-csm
    2. tail -f /var/log/csm/netboot/netboot.p13003vion06-csm.log.24
    3. rconsole –rtn p13003vion06-csm

New VIOS Post installation tasks


  • After the installation has complete, logon to VIOS and verify the location of the rootvg scsi disks:

i.e. lsvg –pv rootvg
 rootvg:
 PV_NAME           PV STATE          TOTAL PPs   FREE PPs    FREE DISTRIBUTION
 hdisk1            active            546         473         109..101..45..109..109
 hdisk3            active            546         473         109..101..45..109..109

  • Verify rootvg physical location codes and SCP a copy of the “bosinst.data” to the CSM MS and rename it with a prefix of the <new-node>.
      i.e.

    1. lsdev -dev hdisk1 -vpd|head -1|awk '{ print $2 }'
 U7879.001.DQDRNFG-P1-T14-L5-L0
lsdev -dev hdisk3 -vpd|head -1|awk '{ print $2 }'
 U7879.001.DQDRNKV-P1-T14-L5-L0

    1. scp /bosinst.data toppins@p06501csmp01: /NIM/admin/bosinst/p13003vion06_bosinst.data

  • Logon to the CSM MS and edit the <new-node>_bosinst.data file and change the following parameters:

    RECOVER_DEVICES = yes
    PROMPT = no

  • While editing the bosinst.data file add the VIOS rootvg target disks: i.e.

target_disk_data:
    PVID =
    PHYSICAL_LOCATION = U7879.001.DQDRNFG-P1-T14-L5-L0
    CONNECTION =
    LOCATION =

target_disk_data:
    PVID =
                 PHYSICAL_LOCATION = U7879.001.DQDRNKV-P1-T14-L5-L0
    CONNECTION =
    LOCATION =

  • Define a bosinst_data NIM resource using "smitty nim_mkres" and highlighting the target VIOS and selecting it by pressing <RETURN>
i.e.

* Resource Name                        [p13003vion06_bosinst_data]                                
* Resource Type                         bosinst_data                                                
* Server of Resource                  [master]
 Location of Resource                 [/NIM/admin/bosinst/p13003vion06_bosinst.data]                                           Comments                                  [Bosinst.data file for VIOS p13003vion06]             


Re-Installing  VIO Server from CSM MS using Mksysb image


  • Define a NIM “mksysb” resource on CSM MS for VIOS  mksysb image using NIM and verify resource: i.e.

    1. nim -o define -t mksysb -a server=master -a \
location=/viosbackups/mksysb/ \   
p13003vion06-csm_mksysb

    1. lsnim –l p13003vion06-csm_mksysb

p13003vion06-csm_mksysb:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = csm_mgmt_lan3 p13003vion06-csm 001125cbec94 ent
   net_settings1  = 1000 full
   cable_type1    = N/A
   Cstate         = ready for a NIM operation
   prev_state     = not running
   Mstate         = currently running
   cpuid          = 00CFBBFD4C00
   Cstate_result  = success

  • Assign NIM resources to <new-node> using “smitty nim_bosinst”
i.e.

5.       smitty nim_bosinst

   qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
   x                       Select the installation TYPE                                                    x
   x                                                                                                                   x
   x Move cursor to desired item and press Enter.                                                 x
   x                                                                                                                   x
   x   rte - Install from installation images                                                              x
   x   mksysb - Install from a mksysb                                                                             x
   x   spot - Install a copy of a SPOT resource                                                                  x
   qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq

6.       Select mksysb

  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x              Select the MKSYSB to use for the installation                                    x
  x                                                                                                                    x
  x Move cursor to desired item and press Enter.                                                  x
  x                                                                                                                    x
  x   aix520ml5_mksysb          resources       mksysb                                           x
  x   cvcp01520ml5_mksysb       resources       mksysb                                        x
  x   p09301gist01_mksysb       resources       mksysb                                         x
  x   cvct01_mksysb             resources       mksysb                                                         x
  x   aix520ml7_mksysb          resources       mksysb                                           x
  x   aix530ml3_mksysb          resources       mksysb                                           x
  x   aix530-tl04_mksysb        resources       mksysb                                            x
  x   p13003vion06-csm_mksysb     resources       mksysb                                 x
  x   aix530-tl05_mksysb        resources       mksysb                                            x
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj


7.       Select VIOS gold image
 
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
  x               Select the SPOT to use for the installation                                        x
  x                                                                                                                    x
  x Move cursor to desired item and press Enter.                                                  x
  x   aix520_spot             resources       spot                                                       x
  x   aix530_spot             resources       spot                                                       x
  x   aix530-ml03_spot        resources       spot                                                    x
  x   aix530-ml02_spot        resources       spot                                                    x
  x   aix520-ml07_spot        resources       spot                                                    x
  x   aix530-tl04_spot        resources       spot                                                      x
  x   aix530-tl05_spot        resources       spot                                                      x
  x   aix530-tl07_spot        resources       spot                                                    x
  x   p13003vion06-csm_mksysb     resources       spot                                         x
  qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj

8.       Select a SPOT at the same revision as  the VIOS mksysb


Note. The VIOS mksysb image may not be compatible with the latest gold image SPOT. If this is the case, create a temporary SPOT for installation (see Defining VIOS NIM Resources section).

  • Add the VIOS custom “bosinst_data” resource and verify the NIM resources have been correctly selected before you return to complete NIM resource allocation:

i.e. for new VIOS server Gold image builds

  Installation Target                                             p13003vion06-csm
  Installation TYPE                                   mksysb
  SPOT                                                aix530-tl07_spot    
  LPP_SOURCE                                         []                      +
  MKSYSB                                                        p13003vion06-csm_mksysb
 
  BOSINST_DATA to use during installation   [p13003vion06_bosinst_data]                  
  IMAGE_DATA to use during installation                         []                      +
  RESOLV_CONF to use for network configuration            []                      +
  Customization SCRIPT to run after installation                []                      +
  Customization FB Script to run at first reboot                 []                      +
  ACCEPT new license agreements?                                           [no]                    +
  Remain NIM client after install?                                     [no]                    +
  PRESERVE NIM definitions for resources on                  [yes]                   +
  this target?
             
Note. The “remain NIM client after install” set to “no” will ensure the CSM IP address will be configured on the physical adapter during installation and remain on SEA after the server installation.

The VIOS mksysb image may not be compatible with the latest gold image SPOT. If this is the case, create a temporary SPOT for installation (see Defining VIOS NIM Resources section).

  • Verify NIM resources have been correct allocated to  <new-node> using “lsnim”:
i.e.

lsnim -l p13003vion06-csm      

p13003vion06-csm:
   class          = machines
   type           = standalone
   connect        = shell
   platform       = chrp
   netboot_kernel = mp
   if1            = csm_mgmt_lan p13003vion06-csm 001125CBAB77 ent
   net_settings1  = 100 full
   cable_type1    = N/A
   Cstate         = BOS installation has been enabled
   prev_state     = not running
   Mstate         = not running
   boot           = boot
   bosinst_data   = p13003vion06-csm_bosinst_data
   mksysb         = p13003vion06-csm _mksysb
   spot           = aix530-tl07_spot    
   control        = master

  • Network boot the <new-node>, tail the CSM logs for the boot process and open a read only console to monitor installation;

    1. netboot -n p13003vion06-csm
    2. tail -f /var/log/csm/netboot/netboot.p13003vion06-csm.log.24
    3. rconsole –rtn p13003vion06-csm

Note. <CTRL-E-C> followed by “.” ends an active rconsole session

  • Verify Virtual to Physical resources allocations for VIOS and VIOC


Installing VIO Server from HMC using installios


  • SSH to HMC as hscroot

{p06501csmp01}/root$ ssh -l hscroot hmc105
Keyboard-interactive:
Password:
Keyboard-interactive:
Authentication successful.
Last login: Tue Jan 23 15:42:06 2007 from 10.160.9.160

  • Run installios on HMC command line

hscroot@hmc105:~> installios

  • Select Managed system

The following objects of type "managed system" were found.  Please select one:

1. p130-p570-1
2. p131-p570-1

Enter a number (1-2):1

  • Select VIO server to be installed and profile to be used

The following objects of type "virtual I/O server partition" were found.  Please select one:

1. p13003vion06
2. p13002vion05
3. p13001vion04

Enter a number (1-3):3

The following objects of type "profile" were found.  Please select one:

1. Normal

Enter a number: 1

  • Specify NFS server and mount point containing “nim_resources.tar” backup (Note. You must specify proceeding “/” )

Enter the source of the installation images [/dev/cdrom]:

p06501csmp01:/viosbackups/p13003vion06-csm/

  • Configure VIOS CSM IP information (Note. You must specify a gateway, so CSM MS was used)

Enter the client's intended IP address: 10.254.220.187
Enter the client's intended subnet mask: 255.255.255.128
Enter the client's gateway: 10.254.220.137
Enter the client's speed [100]:
Enter the client's duplex [full]:
Would you like to configure the client's network after the
installation [yes]/no? no

Retrieving information for available network adapters
This will take several minutes...

  • VIOS lpar boots into SMS and HMC displays available ethernet adapters

The following objects of type "ethernet adapters" were found.  Please select one:

1. ent U9117.570.65FBC3D-V3-C2-T1 56c9923b1497 /vdevice/l-lan@30000002  virtual
2. ent U9117.570.65FBC3D-V3-C3-T1 56c9923b1498 /vdevice/l-lan@30000003  virtual
3. ent U9117.570.65FBC3D-V3-C4-T1 56c9923b1499 /vdevice/l-lan@30000004  virtual
4. ent U9117.570.65FBC3D-V3-C5-T1 56c9923b149a /vdevice/l-lan@30000005  virtual
5. ent U7879.001.DQDRWAN-P1-C4-T1 001125cbaacc /pci@800000020000002/pci@2,2/pci@1/ethernet@4  physical
6. ent U7879.001.DQDRWAN-P1-C4-T2 001125cbaacd /pci@800000020000002/pci@2,2/pci@1/ethernet@4,1  physical
7. ent U7879.001.DQDRWAN-P1-C4-T3 001125cbaace /pci@800000020000002/pci@2,2/pci@1/ethernet@6  physical
8. ent U7879.001.DQDRWAN-P1-C4-T4 001125cbaacf /pci@800000020000002/pci@2,2/pci@1/ethernet@6,1  physical
9. ent U7879.001.DQDRWBH-P1-C4-T1 001125cbab74 /pci@80000002000000b/pci@2,2/pci@1/ethernet@4  physical
10. ent U7879.001.DQDRWBH-P1-C4-T2 001125cbab75 /pci@80000002000000b/pci@2,2/pci@1/ethernet@4,1  physical
11. ent U7879.001.DQDRWBH-P1-C4-T3 001125cbab76 /pci@80000002000000b/pci@2,2/pci@1/ethernet@6  physical
12. ent U7879.001.DQDRWBH-P1-C4-T4 001125cbab77 /pci@80000002000000b/pci@2,2/pci@1/ethernet@6,1  physical

  • Select adapter used for configuring VIOS CSM (Note. Physical backing adapter was specified)

Enter a number (1-12): 9

  • Installios will now display values for installation

Here are the values you entered:

managed system = p130-p570-1
virtual I/O server partition = p13003vion06
profile = Normal
source = p06501csmp01:/viosbackups/p13003vion06-csm/
IP address = 10.254.220.187
subnet mask = 255.255.255.128
gateway = 10.254.220.137
speed = 100
duplex = full
configure network = no
ethernet adapters = 00:11:25:cb:ab:74

Press enter to proceed or type Ctrl-C to cancel...

            <enter>

No comments:

Post a Comment