090 NIM Config

39
© Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without written permission. Configuring the NIM Server LPAR QPS01 – IBM PowerVM™ on System p™ - 090

Transcript of 090 NIM Config

Page 1: 090 NIM Config

© Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without written permission.

Configuring the NIM Server LPAR

QPS01 – IBM PowerVM™on System p™ - 090

Page 2: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 2

IBM PowerVM™on System p™

LAB: Configure the NIM Partitions

1. Check the network setup2. Define the NIM Master3. Create the lpp_source resource (preloaded to disk)4. Create the spot resource (from the lpp_source resource)5. Define the AIX client6. Prepare the NIM server for deployment of the AIX client

� This Lab covers the configuration of the student NIM Master� We will be displaying just one of the student’s environment

Page 3: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 3

IBM PowerVM™on System p™

The Partition is installed and at the login prompt

AIX Version 6

Copyright IBM Corporation 1982, 2007.

Console login: rootRoot’s Password: ibmaix

****************************************************************************

* *

* *

* Welcome to AIX Version 6.1! *

* *

* *

* Please see the README file in /usr/lpp/bos for information pertinent t *

* this release of the AIX Operating System. *

* *

* *

****************************************************************************

#

Login: rootPassword: ibmaix

Page 4: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 4

IBM PowerVM™on System p™

Check the initial AIX device configuration

# lsdev -Cc adapterent0 Available Virtual I/O Ethernet Adapter (l-lan)

vsa0 Available LPAR Virtual Serial Adapter

vscsi0 Available Virtual SCSI Client Adapter

vscsi1 Available Virtual SCSI Client Adapter

# lsdev -Cc diskhdisk0 Available Virtual SCSI Disk Drive

hdisk1 Available Virtual SCSI Disk Drive

# lsvg -p rootvgrootvg:

PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION

hdisk0 active 63 23 12..05..00..00..06

PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION

hdisk1 active 63 23 12..05..00..00..06

Page 5: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 5

IBM PowerVM™on System p™

Add second disk to rootvg

# lspv

hdisk0 00c07ebf474989f6 rootvg activehdisk1 none None

hdisk0 none Nonehdisk1 00c07ebf47498f4b rootvg active

# extendvg –f rootvg hdisk1

# extendvg –f rootvg hdisk0

Page 6: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 6

IBM PowerVM™on System p™

Check the initial AIX device configuration

# lsvg –l rootvgrootvg:

LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT

hd5 boot 1 1 1 closed/syncd N/A

hd6 paging 4 4 1 open/syncd N/A

hd8 jfs2log 1 1 1 open/syncd N/A

hd4 jfs2 1 1 1 open/syncd /

hd2 jfs2 13 13 1 open/syncd /usr

hd9var jfs2 1 1 1 open/syncd /var

hd3 jfs2 1 1 1 open/syncd /tmp

hd1 jfs2 1 1 1 open/syncd /home

hd10opt jfs2 1 1 1 open/syncd /opt

fslv00 jfs2 16 16 1 open/syncd /export/lpp_source

# mirrorvg rootvg

Page 7: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 7

IBM PowerVM™on System p™

Mirror the root volume groupRun ‘topas’ in VIO partition to view load during mirroring

You will notice small load on CPU

Page 8: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 8

IBM PowerVM™on System p™

Mirror rootvg and set bootlist for next boot

# mirrorvg rootvg0516-1804 chvg: The quorum change takes effect immediately.0516-1126 mirrorvg: rootvg successfully mirrored, user should perform bosboot of system to initialize boot records. Then, user must modify bootlist to include: hdisk0 hdisk1.

# bosboot –a

bosboot: Boot image is 35841 512 byte blocks.

# bootlist –m normal hdisk0 hdisk1# bootlist –m normal –ohdisk0 blv=hd5hdisk1 blv=hd5

Mirrorvg message when running AIX 5.3 and below:0516-1124 mirrorvg: Quorum requirement turned off, reboot system for this to take effect for rootvg

0516-1126 mirrorvg: rootvg successfully mirrored, user should perform bosboot of system to initialize boot records. Then, user must modify bootlist to include: hdisk0 hdisk1.

Page 9: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 9

IBM PowerVM™on System p™

Check logical volumes for number of PVs

# lsvg –l rootvgrootvg:

LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT

hd5 boot 1 2 2 closed/syncd N/A

hd6 paging 4 8 2 open/syncd N/A

hd8 jfs2log 1 2 2 open/syncd N/A

hd4 jfs2 1 2 2 open/syncd /

hd2 jfs2 13 26 2 open/syncd /usr

hd9var jfs2 1 2 2 open/syncd /var

hd3 jfs2 1 2 2 open/syncd /tmp

hd1 jfs2 1 2 2 open/syncd /home

hd10opt jfs2 1 2 2 open/syncd /opt

fslv00 jfs2 16 32 2 open/syncd /export/lpp_source

# lsvg -p rootvgrootvg:

PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTION

hdisk0 active 63 23 12..05..00..00..06

hdisk1 active 63 23 12..05..00..00..06

Type “lsvg –l rootvg”Look t number of PVs

See that the FREE PPs are equal on both disks

Page 10: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 10

IBM PowerVM™on System p™

Verify the IP configuration with ifconfig and ping

# ifconfig –aen0: flags=1e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD,CHAIN>

inet 10.31.197.XXX, netmask 0xffff000 broadcast 10.31.207.255tcp_sendspace 262144 tcp_sendspace 262144 rfc1323 1

lo0: flags=e08084bUP,BROADCAST,NOTRAILERS,RUNNING,

MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD,CHAIN>

inet 127.0.0.1, netmask 0xff000000 broadcast 127.255.255.255

tcp_sendspace 131072 tcp_sendspace 131072 rfc1323 1

ping the gateway# ping 10.31.192.1PING 10.31.192.1 (10.31.192.1): 56 data bytes

64 bytes from 10.31.192.1: icmp_seq=1 ttl=255 time=0 ns

64 bytes from 10.31.192.1: icmp_seq=2 ttl=255 time=0 ns

64 bytes from 10.31.192.1: icmp_seq=3 ttl=255 time=0 ns

^C

--- 10.31.192.1 ping statistics

3 packets transmitted, 3 packets received, 0% packet loss

round-trip min/avg/max =0/0/0 ms

Network should still be configured from NIM

Page 11: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 11

IBM PowerVM™on System p™

NIM Resources� NIM installation uses defined resource stored in the NIM database

– NIM master – always required

– LPP_SOURCE – contains source files (like CDROM)• Normally loaded to disk from the AIX install CDs

– SPOT – Shared Product Object Tree• Temporary /usr filesystem to mount during install

– Machine – client machine definitions• One of these is created for each client you plan to install• These also must be enabled with “smitty nim_bosinst”

Page 12: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 12

IBM PowerVM™on System p™

Verify the resources

3. host sys##_aix#Odd: _aix1, Even _aix2

Must resolve to create definitionExample: student 1: sys01_aix1

� Make sure that the lpp_source directory is populated# ls –l /export/lpp_source/installp/ppc

� Make sure that the NIM master filesets are installed– If filesets are missing install from /export/lpp_source# lslpp –l | grep nimbos.sysmgt.nim.client 6.1.0.0 COMMITTED Network Install Manager -

bos.sysmgt.nim.master 6.1.0.0 COMMITTED Network Install Manager -

bos.sysmgt.nim.spot 6.1.0.0 COMMITTED Network Install Manager - SPOT

bos.sysmgt.nim.client 6.1.0.0 COMMITTED Network Install Manager -

� Make sure that your NIM server and clients are resolved– # host sys##_aix## (example: host sys01_aix1 (student 1))

2. lslpp –l | grep nimCheck NIM server installed

1. ls –l /export/lpp_sourceCheck for files in directory

Page 13: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 13

IBM PowerVM™on System p™

Other things to try if name resolution fails?# vi /etc/hosts

– Add entry for your AIX client#10.2.0.2 x23sample # x.25 name/address

127.0.0.1 loopback localhost

10.31.197.YY sys##_nim#

10.31.197.166 sys16_nim1

10.31.197.XX sys##_aix#

– If needed, install missing filesets • smitty install_all

� Enter /export/lpp_source for source directory• Use F4 to select software• /nim to search for NIM filesets• Choose NIM server and spot filesets• Press enter

Add entry for your AIX LPAR

Page 14: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 14

IBM PowerVM™on System p™

# smitty nim

Network Installation Management

Move cursor to desired item and press Enter.

Configure the NIM EnvironmentPerform NIM Software Installation and Maintenance Tasks

Perform NIM Administration Tasks

Create IPL ROM Emulation Media

NIM POWER5 Tools

Thin Server Maintenance

F1=Help F2=Refresh F3=Cancel F8=Image

F9=Shell F10=Exit Enter=Do

Configure the NIM Environment

1. Type “smitty nim”

2. Select“Configure the NIM Environment”

3. Press “Enter”

Page 15: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 15

IBM PowerVM™on System p™

Configure the NIM Environment

Move cursor to desired item and press Enter.

Configure a Basic NIM Environment (Easy Startup)Advanced Configuration

------------------------------------ Next Screen --------------------------------------------------------

Configure the NIM Environment

4. Select “Advanced Configuration”Press “Enter”

Advanced Configuration

Move cursor to desired item and press Enter.

Initialize the NIM Master OnlyCreate Basic Installation ResourcesCreate Diskless/Dataless Client ResourcesCreate NIM System Bundles for InstallationDefine NIM Client Machines

5. Select“Initialize the NIM Master Only”

Press “Enter”

Page 16: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 16

IBM PowerVM™on System p™

Configure Network Installation Management Master Fileset

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[Entry Fields]* Network Name [eth01]

* Primary Network Install Interface [en0] +

Allow Machines to Register Themselves as Clients? [yes] +Alternate Port Numbers for Network Communications

(reserved values will be used if left blank)Client Registration [] #Client Communications [] #

Specify Network name and interface

6. Type in “ethXX”, where XX is your student ID

7. Pick the “en0” interface by using F4 or <esc>4

8. Press “Enter”

Page 17: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 17

IBM PowerVM™on System p™

COMMAND STATUS

Command: OK stdout: yes stderr: noBefore command completion, additional instructions may appear below

0513-071 The nimesis Subsystem has been added.0513-071 The nimd Subsystem has been added0513-059 The nimesis Subsystem has been started. Subsystem PID is 540914

Returns OK if runs good

Multiple NIM services start

9. Press F3 until main NIM menu

or exit smit and retype# smitty nim

Page 18: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 18

IBM PowerVM™on System p™

Network Installation Management

Move cursor to desired item and press Enter.

Configure the NIM EnvironmentPerform NIM Software Installation and Maintenance TasksPerform NIM Administration TasksCreate IPL ROM Emulation MediaNIM POWER5 Tools

-----------------------------------------------

Creating Resources

10. Select “Perform NIM Admin.. Tasks”and press “Enter”

11. Select “Manage Resources”and press “Enter”

Perform NIM Administration TasksMove cursor to desired item and press Enter.

Manage NetworksManage MachinesManage ResourcesManage GroupsBackup/Restore the NIM DatabaseConfigure NIM Environment OptionsRebuild the niminfo File on the MasterChange the Master's Primary InterfaceManage Alternate Master EnvironmentUnconfigure NIM

Page 19: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 19

IBM PowerVM™on System p™

Manage ResourcesMove cursor to desired item and press Enter.

List All Network Install ResourcesDefine a ResourceChange/Show Characteristics of a ResourceShow the Contents of a ResourceRemove a ResourcePerform Operations on ResourcesVerify Resources

-------------------- next screen ---------------------------

Defining the lpp_source resource

12. Select “Define a Resource”and press “Enter”

Resource Type│ spot = Shared Product Object Tree - equivalent to /usr file ││ root = parent directory for client / (root) directories ││ paging = parent directory for client paging files ││ dump = parent directory for client dump files ││ home = parent directory for client /home directories ││ shared_home = /home directory shared by clients ││ tmp = parent directory for client /tmp directories ││ exclude_files = files to be excluded when creating a mksysb or savev ││ lpp_source = source device for optional product images │

13. Select “lpp_source”and press “Enter”

Page 20: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 20

IBM PowerVM™on System p™

Define a Resource

Type or select values in entry fields.

Press Enter AFTER making all desired changes.

[Entry Fields]

* Resource Name [lppaix61]* Resource Type lpp_source

* Server of Resource [master] +

* Location of Resource [/export/lpp_source]Architecture of Resource [] +

Source of Install Images [] +

Names of Option Packages []

Show Progress [yes] +

Comments []

Provide options for lpp_source

14. Type “lppaix61”for “Resource Name”

15. Use F4 to select “master”for “Server of Resource”

16. Type “/export/lpp_source”for “Location of Resource” 17. Press “Enter”

Source files for lpp_source were preloaded in mksysb file

Page 21: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 21

IBM PowerVM™on System p™

COMMAND STATUSCommand: OK stdout: yes stderr: noBefore command completion, additional instructions may appear below

Preparing to copy install images (this will take several minutes). ..

Now checking for missing install images...

All required install images have been found. This lpp_source is now ready

System will check for Minimal install resources

The system will check to see if the directory you specified contains all of the resources required to create a SPOT

18. Press “F3” to return to“Manage Resources Screen”

Page 22: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 22

IBM PowerVM™on System p™

Manage ResourcesMove cursor to desired item and press Enter.

List All Network Install ResourcesDefine a ResourceChange/Show Characteristics of a ResourceShow the Contents of a ResourceRemove a ResourcePerform Operations on ResourcesVerify Resources

-------------------- next screen ---------------------------

Resource Type│ spot = Shared Product Object Tree - equivalent to /usr file ││ root = parent directory for client / (root) directories ││ paging = parent directory for client paging files ││ dump = parent directory for client dump files ││ home = parent directory for client /home directories ││ shared_home = /home directory shared by clients ││ tmp = parent directory for client /tmp directories ││ exclude_files = files to be excluded when creating a mksysb or savev ││ lpp_source = source device for optional product images ││ installp_bundl = an installp bundle file ││ [MORE...11] │

Defining the spot resource

19. Select “Define a Resource”and press “Enter”

20. Select “spot”and press “Enter”

Page 23: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 23

IBM PowerVM™on System p™

Do I have all filesets of an SP� instfix –i | grep ML� instfix –i | grep SP� instfix –icqk 5300-06-01_AIX_ML | grep “:-:”� instfix –icqk 6.1.0.0_AIX_ML | grep “:-:”

Page 24: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 24

IBM PowerVM™on System p™

Define a ResourceMove cursor to desired item and press Enter.

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[Entry Fields]

* Resource Name [spotaix61]* Resource Type spot

* Server of Resource [master] +

* Source of Install Images [lppaix61]* Location of Resource [/export/spot] /

Expand file systems if space needed? yes +Comments []

installp FlagsCOMMIT software updates? no +SAVE replaced files? yes +AUTOMATICALLY install requisite software? yes +OVERWRITE same or newer versions? no +VERIFY install and check file sizes? no +

Specify SPOT options

22. Select “master” with F4for Server of Resource

23. Select “lppaix61” with F4“Source of Install Images”

24. Enter “/export/spot”for “Location of Resources”

25. Press enter

21. Enter “spotaix61”for “Resource Name”

Page 25: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 25

IBM PowerVM™on System p™

Use VIOS 1.4 viostat command to view activity$ viostat –adapterVadapter: Kbps tps bkread bkwrtnVhost0 60.5 5.7 2.8 2.8

Vtargets/Disks: tps bread bwrtn#vnim1_vdisk0_vtscsi 65.1 76.6K 342.4K

Vadapter: Kbps tps bkread bkwrtnVhost3 0.0 0.0 0.0 0.0

Vtargets/Disks: tps bread bwrtn#vnim1_vdisk0_vtscsi 0.0 0.0 0.0

Vadapter: Kbps tps bkread bkwrtnVhost2 26.7 1.4 0.7 0.7

Vtargets/Disks: tps bread bwrtn#vnim1_vdisk0_vtscsi 0.7 1.7K 25.7K

Check activity in the VIO server with viostat

Login to VIO ServerCheck activity

Page 26: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 26

IBM PowerVM™on System p™

VIO performance during NIM partition install

$ topas

Topas Monitor for host: sys05_vio1 EVENTS/QUEUES FILE/TTY

Tue Jan 2 16:33:31 2007 Interval: 2 Cswitch 644 Readch 2

Syscall 63 Writech 258

Kernel 7.6 |### | Reads 1 Rawin 0

User 0.2 |# | Writes 1 Ttyout 256

Wait 0.1 |# | Forks 0 Igets 0

Idle 92.2 |########################### | Execs 0 Namei 0

Physc = 0.02 %Entc= 8.6 Runqueue 0.0 Dirblk 0

Waitqueue 0.0

Network KBPS I-Pack O-Pack KB-In KB-Out

en4 0.3 5.5 0.5 0.3 0.1 PAGING MEMORY

lo0 0.0 0.0 0.0 0.0 0.0 Faults 0 Real,MB 512

Steals 0 % Comp 59.4

Disk Busy% KBPS TPS KB-Read KB-Writ PgspIn 0 % Noncomp 9.1

hdisk0 5.0 1860.0 15.5 0.0 1860.0 PgspOut 0 % Client 9.1

hdisk1 0.0 0.0 0.0 0.0 0.0 PageIn 0

PageOut 0 PAGING SPACE

Name PID CPU% PgSp Owner Sios 0 Size,MB 1536

seaproc 258272 0.3 0.1 root % Used 0.6

topas 278544 0.1 0.9 root NFS (calls/sec) % Free 99.3

gil 65568 0.0 0.1 root ServerV2 0

xmgc 45078 0.0 0.0 root ClientV2 0 Press:

rpc.lock 184428 0.0 0.2 root ServerV3 0 "h" for help

Page 27: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 27

IBM PowerVM™on System p™

Check the end of the log

26. Scroll to end of smit logFast: hold shift (hit Esc then >)

27. Verify there are no messages after the “Be Sure to check…”

message

28. Press “F3” to return to“Perform NIM Administration”

Page 28: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 28

IBM PowerVM™on System p™

Network Installation Management

Move cursor to desired item and press Enter.

Configure the NIM EnvironmentPerform NIM Software Installation and Maintenance Tasks

Perform NIM Administration TasksCreate IPL ROM Emulation MediaNIM POWER5 Tools

-------------------- next screen ---------------------------

Defining Machines ( 1 of 3)

1. Select “Perform NIM Admin.. Tasksand press Enter

2. Select “Manage Machines”and press “Enter”

Perform NIM Administration TasksMove cursor to desired item and press Enter.

Manage Networks

Manage MachinesManage ResourcesManage GroupsBackup/Restore the NIM DatabaseConfigure NIM Environment OptionsRebuild the niminfo File on the MasterChange the Master's Primary InterfaceManage Alternate Master EnvironmentUnconfigure NIM

Page 29: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 29

IBM PowerVM™on System p™

Define a Machine

Type or select a value for the entry field.Press Enter AFTER making all desired changes.

[Entry Fields]

* Host Name of Machine [sys11_aix2](Primary Network Install Interface)

Manage Machines

Move cursor to desired item and press Enter.

List All Machines

Define a MachineChange/Show Characteristics of a MachineSpecify New Master for Client MachineRemove a MachineManage Network Install InterfacesManage Network Install Resource AllocationPerform Operations on MachinesQuery Remote MachineManage Secondary Adapter Definition Files

--------------------------- next screen -------------------------------

Defining Machines ( 2 of 3 )

3. Select “Define a Machine”and press “Enter”

4. Enter hostname of AIX client from worksheet

5. Press “Enter”

This will fail if hostname is not resolved. If you get an error have assistant instructor help you.

Page 30: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 30

IBM PowerVM™on System p™

Define a Machine

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]* NIM Machine Name [sys11_aix2]* Machine Type [standalone] +* Hardware Platform Type [chrp] +

Kernel to use for Network Boot [64] +Communication Protocol used by client [] +Primary Network Install Interface

* Cable Type bnc +Network Speed Setting [] +Network Duplex Setting [] +

* NIM Network eth01* Host Name sys11_aix2

Network Adapter Hardware Address [0]Network Adapter Logical Device Name []

[MORE...4]

F1=Help F2=Refresh F3=Cancel F4=ListF5=Reset F6=Command F7=Edit F8=ImageF9=Shell F10=Exit Enter=Do

Defining Machines (3 of 3) – accept lab defaults

Press “Enter”Defaults are ok for this LAB

Page 31: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 31

IBM PowerVM™on System p™

┌──────────────────────────────────────────────────────────────┐│ Select the installation TYPE ││ ││ Move cursor to desired item and press Enter. ││ ││ rte - Install from installation images ││ mksysb - Install from a mksysb ││ spot - Install a copy of a SPOT resource ││ ││ F1=Help F2=Refresh F3=Cancel ││ F8=Image F10=Exit Enter=Do ││ /=Find n=Find Next │└──────────────────────────────────────────────────────────────┘

# smitty nim_bosinst┌──────────────────────────────────────────────────────────────┐│ Select a TARGET for the operation ││ ││ Move cursor to desired item and press Enter. ││ ││ sys11_aix2 machines standalone

------------------- next screen ------------------------------------

Enable Machine for install – smitty nim_bosinst

Select system and Press “Enter”

39. Select “rte …”Hit “Enter”

•We only have one client defined•rte installs from lpp_source like it was the AIX install CD

Page 32: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 32

IBM PowerVM™on System p™

Select the SPOT to use for the installation

Move cursor to desired item and press Enter.

spotaix61 resources spot

F1=Help F2=Refresh F3=Cancel F8=Image F10=Exit Enter=Do /=Find n=Find Next

Select the LPP_SOURCE to use for the installation

Move cursor to desired item and press Enter.

lppaix61 resources lpp_source

F1=Help F2=Refresh F3=Cancel F8=Image F10=Exit Enter=Do /=Find n=Find Next

----------------------- next screen -----------------------------------

Choose lpp_source and SPOT

Select “lppaix61” and Press enter

Select “spotaix61” and Press enter

Page 33: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 33

IBM PowerVM™on System p™

Install the Base Operating System on Standalone Clients

Type or select values in entry fields.Press Enter AFTER making all desired changes.

[TOP] [Entry Fields]* Installation Target sys11_aix2* Installation TYPE rte* SPOT spotaix61

LPP_SOURCE [lppaix61]

------- scroll down+

Customization FB Script to run at first reboot [] +

ACCEPT new license agreements? [yes] +Remain NIM client after install? [yes]

PRESERVE NIM definitions for resources on [yes] +this target?

FORCE PUSH the installation? [no] +

Initiate reboot and installation now? [no] +

Accept licenses & Turn off the initiate reboot option42. Set

“ACCEPT new license..” to ‘yes’

42. Set “Initiate reboot..”

to ‘No’and press

Enter

If set to yes and hostname is wrong, could write over running system.

43. F10 to Exit SMIT

Page 34: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 34

IBM PowerVM™on System p™

Look at the NIM resources� lsnim –l | more� lsnim –l <client name>

# lsnim –l sys03_aix1sys03_aix1:

class = machinestype = standaloneconnect = shellplatform = chrpnetboot_kernel = 64if1 = eth03 sys03_aix1 0cable_type1 = bncCstate = BOS installation has been enabledprev_state = ready for a NIM operationMstate = currently runningboot = bootlpp_source = lppaix61nim_script = nim_scriptspot = spotaix61cpuid = 00CFB73C4C00control = master

Page 35: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 35

IBM PowerVM™on System p™

# cat /etc/bootptab

# ha -- hardware address# ht -- hardware type# ip -- host IP address# sm -- subnet mask# tc -- template host (points to similar host entry)# hn -- name switch# bs -- boot image size# dt -- old style boot switch# T170 -- (xstation only) -- server port number# T175 -- (xstation only) -- primary / secondary boot host indicator# T176 -- (xstation only) -- enable tablet# T177 -- (xstation only) -- xstation 130 hard file usage# T178 -- (xstation only) -- enable XDMCP# T179 -- (xstation only) -- XDMCP host# T180 -- (xstation only) -- enable virtual screensys02_aix1:bf=/tftpboot/sys02_aix1:ip=10.31.197.25:ht=ethernet:sa=10.31.197.24:sm=255.255.240.0:

Examine entry in /etc/bootptab

Type ‘cat /etc/bootptab

System will boot from bf=only if name resolution works

Page 36: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 36

IBM PowerVM™on System p™

# exportfs/export/spot/spotaix61/usr -ro,root=sys05_aix1:,access=sys05_aix1:

/export/lpp_source -ro,root=sys05_aix1:,access=sys05_aix1:

/export/nim/scripts/sys05_aix1.script –ro,root=sys05_aix1:,access=sys05_aix1:

# ls –l /tftpboottotal 45736

-rw-r--r-- 1 root system 14342144 Oct 02 15:32 spotaix61.chrp.64.ent

lrwxrwxrwx 1 root system 31 Oct 02 14:56 sys05_aix1 ->

/tftpboot/spotaix61.chrp.64.ent

-rw-r--r-- 1 root system 1115 Oct 02 14:56 sys05_aix1.info

Examine entry in /etc/exports and in /tftpboot directory

Type “exportfs”

The /tftpboot directory will contain a boot image, a configurationfile (.info) and a symbolic link from the client file to the appropriate boot image

Page 37: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 37

IBM PowerVM™on System p™

The NIM server is prepared to load AIX partitions

Run ‘topas’ in NIM partitionto monitor during install

Run ‘topas’ in VIO partitionto monitor during install

Page 38: 090 NIM Config

© Copyright IBM Corporation 2008

IBM System p

QPS01 – 090 NIM_Config 38

IBM PowerVM™on System p™

Ah but I goofed� Wrong name for the NIM server…..how do I reset?

� # nim –Fo reset <client>

– Example: nim –Fo reset sys04_aix1� # nim –Fo deallocate –a subclass=all <client>

– Example: # nim –Fo deallocate –a subclass=all sys04_aix1

� # lsnim –l master

– Get old if1 entry for network name and mac address� # nim –o change –a if1=“<correct entry>” master

– Example:# nim –o change –a if1=“eth01 sys04_nim1 0234300” master

Network Hostname MAC Address

Page 39: 090 NIM Config

© Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without written permission.

Summary: Configure NIM Partitions

In this lab, you Checked the Network configurationDefined the NIM MasterCreated the lpp_source resource (preloaded to disk)Created the spot resource (from the lpp_source resource)Defined the AIX clientPrepared the NIM server for deployment of the AIX client