090 NIM Config
090 NIM Config
090 NIM Config
Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without written permission.
IBM System p
This Lab covers the configuration of the student NIM Master We will be displaying just one of the students environment
**************************************************************************** * * * * * 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. * * * * * **************************************************************************** #
IBM System p
IBM System p
active
hdisk0 hdisk1
none 00c07ebf47498f4b
None rootvg
active
IBM System p
# lsvg l rootvg
rootvg: LV NAME hd5 hd6 hd8 hd4 hd2 hd9var hd3 hd1 hd10opt fslv00 TYPE boot paging jfs2log jfs2 jfs2 jfs2 jfs2 jfs2 jfs2 jfs2 LPs 1 4 1 1 13 1 1 1 1 16 PPs 1 4 1 1 13 1 1 1 1 16 PVs 1 1 1 1 1 1 1 1 1 1 LV STATE closed/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd open/syncd MOUNT POINT N/A N/A N/A / /usr /var /tmp /home /opt /export/lpp_source
# mirrorvg rootvg
Run topas in VIO partition to view load during mirroring You will notice small load on CPU
IBM System p
IBM System p
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.
# bosboot a
bosboot: Boot image is 35841 512 byte blocks.
IBM System p
# lsvg -p rootvg
rootvg: PV_NAME hdisk0 hdisk1
# ifconfig a en0: flags=1e080863,80<UP,BROADCAST,NOTRAILERS,RUNNING, MULTICAST,GROUPRT,64BIT,CHECKSUM_OFFLOAD,CHAIN> inet 10.31.197.XXX, netmask 0xffff000 broadcast 10.31.207.255 tcp_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
10
NIM Resources
NIM master always required LPP_SOURCE contains source files (like CDROM)
Normally loaded to disk from the AIX install CDs
IBM System p
11
IBM System p
ls l /export/lpp_source Check Make sure that the NIM master filesets are installed for files in directory If filesets are missing install from /export/lpp_source
# lslpp l | grep nim
bos.sysmgt.nim.client bos.sysmgt.nim.master bos.sysmgt.nim.spot bos.sysmgt.nim.client 6.1.0.0 6.1.0.0 6.1.0.0 6.1.0.0 COMMITTED COMMITTED COMMITTED COMMITTED
2. lslpp l | grep Network Install Manager nim Check NIM Manager Network Install server installed Network Install Manager - SPOT Network Install Manager -
Make sure that your NIM server and clients are resolved # host sys##_aix## (example: host sys01_aix1 (student 1))
3. host sys##_aix# Odd: _aix1, Even _aix2 Must resolve to create definition Example: student 1: sys01_aix1
Copyright IBM Corporation 2008 QPS01 090 NIM_Config 12
IBM System p
13
IBM System p
nim
Network Installation Management Move cursor to desired item and press Enter.
F1=Help F9=Shell
Copyright IBM Corporation 2008
F2=Refresh F10=Exit
F3=Cancel Enter=Do
QPS01 090 NIM_Config
F8=Image
14
IBM System p
Advanced Configuration
Move cursor to desired item and press Enter. 5. Select
Initialize the NIM Master Initialize the NIM Master Only Press Enter Create Basic Installation Resources Create Diskless/Dataless Client Resources Create NIM System Bundles for Installation Define NIM Client Machines
Only
15
IBM System p
Configure Network Installation Management Master Fileset Type or select values in entry fields. Press Enter AFTER making all desired changes.
* Network Name * Primary Network Install Interface Allow Machines to Register Themselves as Clients? Alternate Port Numbers for Network Communications (reserved values will be used if left blank) Client Registration Client Communications
+ +
[] []
# #
16
IBM System p
COMMAND STATUS
Command: OK stdout: yes stderr: no Before command completion, additional instructions may appear below
0513-071 The nimesis Subsystem has been added. 0513-071 The nimd Subsystem has been added 0513-059 The nimesis Subsystem has been started.
9. Press F3 until main NIM menu or exit smit and retype # smitty nim
Copyright IBM Corporation 2008 QPS01 090 NIM_Config 17
Creating Resources
Network Installation Management
10. Select Move cursor to desired item and press Enter. and press Enter
IBM System p
Configure the NIM Environment Perform NIM Software Installation and Maintenance Tasks Perform NIM Administration Tasks Create IPL ROM Emulation Media NIM POWER5 Tools
18
IBM System p
------------------- spot root paging dump home shared_home tmp exclude_files lpp_source = = = = = = = = =
Resource Type
Shared Product Object Tree - equivalent to /usr file parent directory for client / (root) directories parent directory for client paging files parent directory for client dump files parent directory for client /home directories /home directory shared by clients parent directory for client /tmp directories files to be excluded when creating a mksysb or savev source device for optional product images
19
IBM System p
* Resource Name * Resource Type * Server of Resource * Location of Resource Architecture of Resource Source of Install Images Names of Option Packages 15. Use F4 to select master Show Progress Comments for Server of Resource
COMMAND STATUS
Command: OK stdout: yes stderr: no Before 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.
The system will check to see if the directory you specified contains all of the resources required to create a SPOT
21
IBM System p
19. Select Define a Resource and press Enter 20. Select spot and press Enter
22
------------------- spot root paging dump home shared_home tmp exclude_files lpp_source installp_bundl [MORE...11]
Resource Type
= = = = = = = = = = Shared Product Object Tree - equivalent to /usr file parent directory for client / (root) directories parent directory for client paging files parent directory for client dump files parent directory for client /home directories /home directory shared by clients parent directory for client /tmp directories files to be excluded when creating a mksysb or savev source device for optional product images an installp bundle file
IBM System p
23
IBM System p
21. Enter spotaix61 for Resource Name 22. Select master with F4 for Server of Resource 23. Select lppaix61 with F4 Source of Install Images 24. Enter /export/spot for Location of Resources 25. Press enter +
+ + + + / + +
[/export/spot] yes []
no yes yes no no
24
IBM System p
25
IBM System p
|### | |# | |# | |########################### | %Entc= 8.6 I-Pack 5.5 0.0 KBPS 1860.0 0.0 CPU% 0.3 0.1 0.0 0.0 0.0 O-Pack 0.5 0.0 KB-In 0.3 0.0 KB-Out 0.1 0.0
2 258 0 256 0 0 0
TPS KB-Read KB-Writ 15.5 0.0 1860.0 0.0 0.0 0.0 PgSp 0.1 0.9 0.1 0.0 0.2 Owner root root root root root
0 0 0 0 0 0 0
PAGING SPACE Size,MB 1536 % Used 0.6 % Free 99.3 Press: "h" for help
26
IBM System p
26. Scroll to end of smit log Fast: hold shift (hit Esc then >)
27. Verify there are no messages after the Be Sure to check message
27
Defining Machines ( 1 of 3)
Network Installation Management
Move cursor to desired item and press Enter. Configure the NIM Environment Perform NIM Software Installation and Maintenance Tasks
IBM System p
--------------------
next
Manage Machines
Manage Resources 2. Manage Groups Backup/Restore the NIM Database Configure NIM Environment Options Rebuild the niminfo File on the Master Change the Master's Primary Interface Manage Alternate Master Environment Unconfigure NIM
Copyright IBM Corporation 2008
28
Defining Machines ( 2 of 3 )
Manage Machines
Move cursor to desired item and press Enter. List All Machines
IBM System p
This will fail if hostname is not resolved. If you get an error have assistant instructor help you.
Change/Show Characteristics of a Machine 3. Select Define a Machine Specify New Master for Client Machine and press Enter Remove a Machine Manage Network Install Interfaces Manage Network Install Resource Allocation Perform Operations on Machines Query Remote Machine Manage Secondary Adapter Definition Files 4. Enter hostname of AIX --------------------------- next screen -------------------------------
Define a Machine
Define a Machine
Type or select a value for the entry field. Press Enter AFTER making all desired changes.
[sys11_aix2]
5. Press Enter
QPS01 090 NIM_Config 29
Define a Machine Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] * NIM Machine Name * Machine Type * Hardware Platform Type Kernel to use for Network Boot Communication Protocol used by client Primary Network Install Interface * Cable Type Network Speed Setting Network Duplex Setting * NIM Network * Host Name Network Adapter Hardware Address Network Adapter Logical Device Name [MORE...4] F1=Help F5=Reset F9=Shell F2=Refresh F6=Command F10=Exit F3=Cancel F7=Edit Enter=Do [Entry Fields] [sys11_aix2] [standalone] [chrp] [64] [] bnc [] [] eth01 sys11_aix2 [0] []
+ + + + + + +
F4=List F8=Image
Press Enter
30
Select a TARGET for the operation Move cursor to desired item and press Enter. sys11_aix2 machines standalone ------------------next screen ------------------------------------
# smitty nim_bosinst
Select the installation TYPE Move cursor to desired item and press Enter. 39. Select rte rte - Install from installation images Hit Enter 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 We only have one client defined /=Find n=Find Next rte installs from lpp_source like
31
IBM System p
lppaix61
F1=Help F8=Image /=Find
resources
lpp_source
F3=Cancel Enter=Do
----------------------- next screen ----------------------------------Select the SPOT to use for the installation Move cursor to desired item and press Enter.
spotaix61
F1=Help F8=Image /=Find
resources
spot
F3=Cancel Enter=Do
IBM System p
Type or select values in entry fields. Press Enter AFTER making all desired changes. [TOP] * Installation Target * Installation TYPE * SPOT LPP_SOURCE ------- scroll down + Customization FB Script to run at first reboot [] [yes] [yes] [yes] [Entry Fields] sys11_aix2 rte spotaix61 [lppaix61]
If set to yes and hostname is wrong, could write over running system.
FORCE PUSH the installation?
[no] [no]
IBM System p
Cstate
prev_state Mstate boot nim_script
lpp_source spot
cpuid control
Copyright IBM Corporation 2008
= lppaix61
= BOS
= spotaix61
= nim_script
= 00CFB73C4C00 = master
QPS01 090 NIM_Config 34
# cat /etc/bootptab
Type 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 screen sys02_aix1:bf=/tftpboot/sys02_aix1:ip=10.31.197.25:ht=ethernet:sa=10.31.197.24: sm=255.255.240.0:
System will boot from bf= only if name resolution works
35
# exportfs
Type exportfs
# ls l /tftpboot
total 45736 -rw-r--r-1 root system lrwxrwxrwx 1 root system /tftpboot/spotaix61.chrp.64.ent -rw-r--r-1 root system 14342144 Oct 02 15:32 spotaix61.chrp.64.ent 31 Oct 02 14:56 sys05_aix1 -> 1115 Oct 02 14:56 sys05_aix1.info
The /tftpboot directory will contain a boot image, a configuration file (.info) and a symbolic link from the client file to the appropriate boot image
Copyright IBM Corporation 2008 QPS01 090 NIM_Config 36
37
Ah but I goofed
Wrong name for the NIM server..how do I reset?
IBM System p
# 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
Copyright IBM Corporation 2008
Hostname
QPS01 090 NIM_Config
MAC Address
38
Copyright IBM Corporation 2008 Course materials may not be reproduced in whole or in part without written permission.