NIM configuration on AIX

22
Welcome to: © Copyright IBM Corporation 2005 Course materials may not be reproduced in whole or in part without the prior written permission of IBM. Introduction to NIM Unit 1

description

This Nim Configuration on AIX servers.

Transcript of NIM configuration on AIX

Page 1: NIM configuration on AIX

Welcome to:

© Copyright IBM Corporation 2005Course materials may not be reproduced in whole or in part without the prior written permission of IBM.

Introduction to NIMUnit 1

Page 2: NIM configuration on AIX

© Copyright IBM Corporation 2005

Unit Objectives

After completing this unit, you should be able to:•Describe basic NIM environment•Identify basic NIM terminology•List basic NIM objects•Identify basic access to your lab environment

Page 3: NIM configuration on AIX

© Copyright IBM Corporation 2005

Network Installation Manager (NIM) Introduction

Base Install Disaster Recovery

Install Updates Diskless/Dataless

AIX Only

Client/Server(Resource)

ClientClient

Master

Page 4: NIM configuration on AIX

© Copyright IBM Corporation 2005

CD Installation Concepts

Upfront Intervention: Power On/Activate Service Bootlist CD

Source Resources Installation Activity

Machine Firmware POST tests

CD Boot image

Load boot image

(per bootlist)

Boot image running

(/sbin/rc.boot)

CD /usr/lib/methods

/usr/lib/drivers

-- Configure base devices

CD /usr/lpp/bosinst BOS Installation Program (bi_main)

CD /usr/sys/inst.images -- Image/Filesets to Install (bos.rte/BOS.auoi bundle)

Page 5: NIM configuration on AIX

© Copyright IBM Corporation 2005

NIM Installation Concepts (1 of 2)

Upfront Intervention - Power On/Activate

Normal bootlist entX

IP of Server - direct/indirect

Source Resources Installation Activity

Machine Firmware POST tests

SPOT Server

bootps

(/etc/bootptab)

Find Boot Image per

normal bootlist

(BOOTP)

SPOT Server

/tftpboot/<client_name>

/tftpboot/<client_name>.info

Load Boot Image and info file (TFTP)

Page 6: NIM configuration on AIX

© Copyright IBM Corporation 2005

NIM Installation Concepts (2 of 2)

Source Resources Installation Activity

Boot Image Running

(/sbin/rc.boot)

SPOT Server

LPP_SOURCE Server

SPOT

LPP_SOURCE

--Mount Needed Resources

SPOT Server <spot>/usr/lib/methods

<spot>/usr/lib/drivers

--Configure Base Devices

SPOT Server <spot>/usr/lpp/bosinst BOS Installation Program

(bi_main)

LPP_SOURCE Server

<lpp_source> --Image/Filesets to Install

(bos.rte/BOS.autoi bundle)

Page 7: NIM configuration on AIX

© Copyright IBM Corporation 2005

LPP_SOURCE

.tocbosbos.64bitbos.rtebos.rte.lvmbos.rte.net…

cdrecordmkisofs…

ppc ppc

installp RPMS

<lpp_source_location>

Directory of Installation Images to Install

Example contents:

Page 8: NIM configuration on AIX

© Copyright IBM Corporation 2005

SPOT

/tftpboot

spot53ML1.chrp.mp.entspot52ML3.chrp.mp.entspot52ML1.rspc.up.tok

<spotdir>

usr

lpp

bosinst

bi_main

other codefor install(TCP/IP clientNFS clientNIM client)

code toconstructboot images

lib

methods drivers

Directory of installed code used by client during installation process

Page 9: NIM configuration on AIX

© Copyright IBM Corporation 2005

Important NIM Objects

genericscript

installp_bundle

atmdatalessbosinst_data

fddidisklessmksysb

tokstand-alonespot

entmasterlpp_sourceType:

NetworkMachinesResourcesClass:

Page 10: NIM configuration on AIX

© Copyright IBM Corporation 2005

Listing NIM Objects

Object Class Type

master machines master

boot resources boot

nim_script resources nim_script

network1 networks ent

lpp_source530 resources lpp_source

spot530 resources spot

AllDevicesKernels resources installp_bundle

Alt_Disk_Install resources installp_bundle

App-Dev resources installp_bundle

lpar1 machines stand-alone

lpar2 machines stand-alone

lpar3 machines stand-alone

lsnim [-c][-t]

Page 11: NIM configuration on AIX

© Copyright IBM Corporation 2005

Listing NIM Object Attributes

Resources Machines

# lsnim -l spot530 # lsnim -l lpar1

spot530: lpar1:

class = resources class = machines

type = spot type = stand-alone

plat_defined = chrp connect = nimsh

arch = power platform = chrp

Rstate = ready for use netboot_kernel = mp

prev_state = verification is being performed if1 = network1 lpar1 0 ent0

location = /export/nim/spot/spot530/usr cable_type1 = tp

version = 5 Cstate = ready for a NIM operation

release = 3 prev_state = ready for a NIM operation

mod = 0 Mstate = not running

oslevel_r = 5300-00

alloc_count = 0

server = master

Rstate_result = success

mk_netboot = yes

mk_netboot = yes

Page 12: NIM configuration on AIX

© Copyright IBM Corporation 2005

Base Installation Types

RTE MKSYSB USE Install from Scratch Install from System Backup Boot Image SPOT SPOT

Configure Devices SPOT SPOT

Install Program SPOT SPOT

Image to Install LPP_SOURCE MKSYSB (bos.rte)

Other Images BUNDLES/FILESETS BUNDLES/FILESETS (Default - BOS.autoi) (Default - none)

Customization SCRIPTS SCRIPTS

Page 13: NIM configuration on AIX

© Copyright IBM Corporation 2005

Install Initiation Techniques

Manual Bootp Broadcast

Push

Reboot Machine

N N Y

Change Bootlist N N Y

Set up IPs N Y Y

SPOT on Same Subnet

Brand New Installs

Watch out

Master Client SPOT Server

Page 14: NIM configuration on AIX

© Copyright IBM Corporation 2005

Master versus Client Initiation and Control

lsnim -l lpar1

control = master

Master Client

Define Resources N/A

Base Install Base Install

Install Updates Install Updates

Force Push Disable Push

Page 15: NIM configuration on AIX

© Copyright IBM Corporation 2005

Security Considerations

•Any user can join your network

•Any machine can download any images they want

•Use nimsh[/SSL] versus rsh

•Firewalls–NFS shouldn't be used over a firewall

Page 16: NIM configuration on AIX

© Copyright IBM Corporation 2005

NIM Configuration Utilities

•smitty nim

•smitty eznim

•wsm

•scripts–nim_setup_master–nim_setup_client–nim_update_all

•Command line

Page 17: NIM configuration on AIX

© Copyright IBM Corporation 2005

Introducing smitty NIM

Network Installation Management

Configure the NIM Environment

Perform NIM Software Installation and Maintenance Tasks

Perform NIM Administration Tasks

Create IPL ROM Emulation Media

Page 18: NIM configuration on AIX

© Copyright IBM Corporation 2005

Introducing WSM

Network Installation Manager

Resources Networks MachinesOverview and Tasks(Configure Master)

Page 19: NIM configuration on AIX

© Copyright IBM Corporation 2005

Introducing the Command Line

•Major Commands:–nimconfig - Configure NIM master–nim - Most operations from master–nimclient - Most operations from the client

•Major nim Operations: –define, bos_inst, cust

Example:

nim -o bos_inst -a spot=spot530 \

-a lpp_source=lpp_source530 \

lpar1

Page 20: NIM configuration on AIX

© Copyright IBM Corporation 2005

Release Considerations

5.1 - RPMS code can now be installed

5.2 - Can back up multiple mksysbs at a time

lpp_source Management Tools

Resource Groups

Easy Configuration Utilities (smitty eznim/scripts)

5.3 - nimsh

Alternate NIM master

Keep NIM Master at the latest level you plan to support

Page 21: NIM configuration on AIX

© Copyright IBM Corporation 2005

Lab Environment Basics

Stand-alone Environment

HMC/LPAR Environment

NIM Master Stand-alone Machine

AIX Partition

NIM Client Stand-alone Machine

AIX Partition

Terminal Log in to CDE

Use Terminal Emulator Session

Log in to PC

Start up PuTTY Log in to AIX machine

Page 22: NIM configuration on AIX

© Copyright IBM Corporation 2005

Unit Summary

Having completed this unit, you should be able to: •Describe the basic NIM environment•Identify basic NIM terminology•List basic NIM objects•Identify basic access to your lab environment