You are on page 1of 26
he C) STG Technical Conferena Using Network Install Manager (NIM) to its fullest Bjorn Rodén gic INTRODUCTION Bjérn Rodén hhtto:/Awww linkedin,com/in/roden ‘Academic degrees = B&, Dips, DipsSe Industry certifications = IBM Certified Technical & Systems Expert since early 905) BM, HP, SUN & Linux Certified Systems Administrator IBM & Tivol Certified Specast Worked at BM Sweden with AX v2.2.1 and v8.1 = IBN BP-CBS UNIMAX in Sweden with AX v3.2.5 untllv4.3.3 and HACMP, TSM, SP/2 IBM BP PULSEN in Sweden with ADK VSL and HACMP, TSM, SP/2 Co-author of six (6) technical publications for IBM US: = NIM from A to Zin ADK SL (2007), ISBN 0738486310 = Linux Applications on pSeries (2003), SBN 0738427950 = Tivol Storage Manager Version 5.1 Technical Guide (2002), SBN 0738425192 = AIK'SL Performance Tools Handbook (200), ISBN 0738422983 5/6000 SP System Performance Tuning Update (2001), SBN 0738419281, IBM Director Best Practices (2006-2007), IBM xS:6003-R02 Rae AGENDA Basic principles of setting up a NIM Server. Managing AIX clients (LPAR). Establish an update strategy. Managing a Software repository using SUMA. Different ways to clone AIX systems. Using NIMHA with RSCT. ae Pome Hands-on: . . Creating a NIM server. objective You will learn how Installing on a NIM client. to setup and use a Manipulating the NIM client. NIM server to Installing a NIM client from scratch. manage NIM Configure NIMHA with RSCT. clients WAWNE ear) WORKSHOP material . This presentation, with hands-on instructions. . The accompanying workshop text with more examples and how to’s, based on the “NIM from A to Z in AIX 5L” Redbook. In addition: 5 The “NIM from A to Z in AIX 5L”, 2007, Redbook. = The other manual and documentation references on the “Related Documents” slide. cael Network Install Manager (quick version) Primary reference: . ANIM environment consists of at least one NIM server pant fon Aer 300 and at least one NIM client. eee Chris Gibson, Jean- . The NIM server has control over resources and their usage heel et for network installation and configuration of NIM clients. Seen = The NIM server allow other NIM servers or clients to be keepers of specific resources, these systems then become NIM resource servers. 4 = The NIM server can work in push-mode where the NIM server initiates the actions to be performed on the NIM client, but also in a pull-mode, where the actions are ws initiated from the NIM client. = The NIM database structure is divided into four classes: i Machines, Networks, Resources and Groups. a eee anna caren Basic principles of setting up a NIM Server 1. Decide the filesystem hierarchy for the NIM server storage: ad 7eftpboot eager jexport/Ipp_source anitty nincontig jenport/spet Jexport/inages = 2 2. Decide the naming convention for NIM objects: appcost>ctid> => 1pps306) spotcTLt> o> apers206 net_. net 10_ 24 3. Create and mount the NIM server filesystems: Letts -v jfs2 ~9 rootrg -a size=64 -m /tftpboot “A yes -p rw -a logname=INLINE 2leets wv }422 -g rootug -a sized -m /export/Ipp_source “A yes ~p sw ~a lognamecINLINE Slerfa -v jfs2 ~g rootug -a size=1G ~m /export/apot -A yes ~p rw -a lognane-IULINE \erta -v j£s2 ~g rootug -a size-6G -m /export/inages “A yes -p xv -a logname~T0LINE 4, Install the NIM server filesets: bos -sysngt nim.master 2.bos.sysmgt -nim. spot 5. Configure the NIM server basic setu nincontig ~a netnane-naster_net -a pit_namesend -a netboot_kernelemp -a cable_typest/A -a elient_regeyes tin =o define -t pp source -a serverchaster -2 location-/export/pp_source/1pp3006 "a" source=/ant_ippsse 1.nim'So define ~t\ spot “a servermmanter a locationt/export/apot -» sourcerippS206 -s installp_flagee-a0y spotS306 ‘Unim oo define -t standalone sa itietnaster et par? 0 ent" ipar2 rar cia Managing AIX clients (LPAR) 1. Installing a NIM client from LPP_SOURCE (push): | Allocate resources: = nim -o allocate -a spot=spotS306 -a 1pp_source=1pp5306 Ipar2 2.Execute installation: = nim -o bos_inst -a sourcesrte ~a installp_flags=agX -a accept_licensestyes Ipar2 smitty nim 2. Installing a NIM client from SPOT (push): ‘Allocate resources: = nim -0 allocate a spot-spotS306 -a Ipp_source=1pp5306 Ipar2 2.Execute installation: = nim -o bos_inst -a source=spot -a installp flags-agi 1par2 3. Running customizing scripts on the NIM client (push): 1. Create the script object and allocate it to the NIM client: = nim -0 define -t script - server-master -a location~/export/scripts/node_cust node_cust = nim -o allocate -a script=node_cust Ipar2 2. Execute installation: = nim 0 cust Lpar2 4, Create a NIM machine group resource: = nim -o define ~t mac_group ~a add_menbs par? Ipar_group ear Managing AIX clients (LPAR) cont. Listing all available resources for the client (pull): = ninelient =1 -L lpar? Allocating an Ipp_source to the client (pull): = ninelient =o allocate -a 1pp_source-1pp5306 Deallocate previoiusly allocated resources for the client (pull | nimelient -0 deallocate -a Ipp_source-1pp5306 Performing an update_all (cust) operation from the client (pull): ~ nimelient -o cust -a Ipp_source=1pp5206 ~a fixes-update_all. Resetting the NIM client state (pull): ~ nimelient -Fo reset Deallocate a resource from the client (pull): — nimelient -o deallocate -a Ipp_source-1pp5306 Rebuild and recover a NIM client /etc/niminfo file (pull): = niminit -a master=Iparl -a nane-lpar2 smitty nim cae) Establish an update strategy References: "IBM AX SL Operating system Release and s New AIX 5L OS Release and Service Strategy are implemented in ‘Service Strategy Changes for 2007 yay rsemeke BM AK 2007 for the AIX SL Version 5.3 OS: '5LO5 Program Director and “IBM Starts with Technolog Level (TL 6 which isthe fist TL update tobe supported for up ASL Open ee to two years. Practices” by Julie Craft, AIX ~~ Based on the previous AIX SL OS release strategy from 2006. Det, = The Concluding Service Pack is no longer used ~~ Maintain the AIX 5L operating systems by installing Service Packs (SP), Program. Temporary Fixes (PTF) or Interim Fixes for the entire support life of the TL. = AIXSLOS support for new hardware is divided into two categories of support and exploitation. — Starting with TL6, Service Packs will be labeled with their release date, using the ee YYWW format, where YY is the 2-digit year and WW is the 2 digit week the SP is $300-07-02-0811 available. — The 2007 strategy require changes to the Version.Release. Modification. Fix (VRMF) encoding used for AIXSL OS flleset levels, Starting with TL7, any filesets that are Updated will get anew ‘MY in the VRME. . Concurrent firmware (CFM) updates (nondisruptive concurrent or deferred). * Disruptive firmware updates (all firmware releases). Establish an update strategy cont. = Maintenance recommendations Always create backups (mksysb) of your system before and after any update or upgrade. If you are currently running with TLS, it is recommended to move TL6 or TL7. When moving to a new TL, move to the latest SP first, that way you are guaranteed the TL will install. Better safe than sorry You should move to a new TL: Pa acne ee ~ tfyour existing This ou orf about to go out of service. ~ You want to use new function and/or features ina new TL. nen, ~ You will install on new hardware, Don’t forget the You should move to a new SP: firmware ~ You have problems and there i fix fort. — if you ae eurcenty running ona AIINIM management and anor sme, deployment operations are ve performed on the NIM master server. wine Ni eH vite ee, > Using NIMHA to synchronize the NIM Le a. master db and resources to the NIM alternate_master server. /\ Tata Using NIMHA cont. Resume Operation from the alternate_master 1, The NIM master goes offline. 2. The NIM alternate_master RSCT detect that the NIM master is not online and starts the takeover. process. 3. The NIMalternate_master are now the master. > The NIM alternate_master can send SNMP traps to the SNMP manager for notification during the takeover process. STGsTechnical Conferenc Using NIMHA cont. 1. Configure the NIM alternate_master Install the following fileset: = bos.sysmgt.nim.master and bos.sysmgt.nim.spot for NIM servers = rsct.core and rsct.basic for RSCT . Create the same filesystems on the NIM alternate_master. . Configure the NIM alternate_master: smitty nim_mkaltmstr or = niminit -a is_alternate-yes ~a name=Ipar2 -a pif_name=en0 -a master=Iparl a platform=chrp a cable_typel=N/A On the NIM master synchronize the database and the resources: "nim -o sync ~a forcesyes -a replicate=yes 1par2 NOTE: Add the synchronization as a ron job (or sri). STGsTechnical Conferenc Using NIMHA cont. 2 Create a RSCT peer-domain cluster . Create the RSCT peer-domain definitions on the NIM mastet preprpnode -V lparl lpar2 . Create the RSCT peer-domain definitions on the NIM alternate_master: preprpnode -V Iparl 1par2 . Create the RSCT peer-domain cluster: mkrpdomain -V NIMCLUSTER lparl lpar2 |. Check the RSCT peer-domain cluster status: lsrpdomain NOTE: We don’t start the RSCT peer- domain cluster just yet! cael Using NIMHA cont. 3. Configure RSCT condition-response event takeover script 1. Create the takeover script: /local/rpd/rpd. takeover + nim -o takeover $(1snim -2 -t alternate master|awk -P: '1/*#/(print $lrexit}") 2. Create the RSCT response definition: 1. mkresponse -n ACTIVATE -s /local/rpd/rpd.takeover TAKEOVER 2. lsresponse TAKEOVER 3. Create the RSCT condition to monitor: 1. mkcondition -mp -Sc -n "lpar2 -e 'OpState <> 1' -E 'OpState 2. lscondition MASTER_IS_DOWN -r IBM.PeerNode 1’ MASTER_IS DOWN 4, Connect the condition with the response: ! 1. mkcondresp MASTER_IS_DOWN TAKEOVER ras 2. Lscondresp MASTER_IS_DOWN pe cee STGsTechnical Conferences Using NIMHA cont. 4. Activate RSCT condition-response event handling . Start the RSCT peer-domain cluster startrpdomain -V NIMCLUSTER . Wait a minute for the peer-domain cluster to come “Online”: Asrpdomain -V NIMCLUSTER . Start the RSCT monitoring - on the NIM alternate_master: startcondresp MASTER_IS_DOWN Now we are on-line! SCT are monitoring the NIM master from the alternate_master RECOMMENDATIONS = Always use a NIM server to install and maintain AIX servers (works with 0.1CPU and 128MB memory, but if possible allow uncapped 1 VCPU and 512MB). = Allocate as much disk as possible, or use TSM Space Management to store rarely used file systems. = Use two NIM servers for everyday usage of NIM functionality (use NIMHA for synchronization and RSCT for failure detection). ear) Related Documents IBM AIX Manuals — http://publib. boulder.ibm.com/infocenter/pseries/ IBM AIX Redbooks — http://www.redbooks.ibm.com/ ~ NIM from Ato Z in AIX SL IBM AIX Wiki ~ http://wikiO1. haw.ibm.com/collaboration/wiki/display/WikiPtype/Home IBM Support Fix Central ~ http://www.ibm.com/eserver/support/fixes/ — http://www14.software.ibm.com/webapp/set2/sas/f/best ~ http://www14.software.ibm.com/webapp/set2/sas/f/hmc — http://www ibm.com/eserver/support/fixes/FixReleaseinfo,jsp?system=2&release=5.3 Google = site:ibm.com nim ibm.com —_nimnconfig -ibm.com —_nimelient Using Network Install Manager (NIM) to its fullest LET'S DO THIS! Riga) WORKSHOP 1 Login to the Citrix MetaFrame Portal RnR REO we growse v0 User Password 1031.203.96-99 2. We have NIM servers (POWERS) and NIM clients on (POWERS) 3. The root password for all LPARS are: emai poe ae 10;31.201.134-139 4. AIIAIK 5.3 LPPs you need are located in 5 Create a NIM server the frst PAR) (ete the esystems stp. oure spt) Install ossysmgt.im master ad bos sysmatnim spot Run the rimeonfig command to configure the iM master, Ron the nim command orneta loses onthe NR cen from the Ipp_source. 2 2 5. Bowload an SPusing SUM, we 2 ‘rt (mounted from p570noavpt:/usr/sysinstimages/installp/ppe) \Write your group name inthe /etc/motd file on your two LPARS. /orkon the NIM client (the second LPAR): “Toke ver contol your NM cen tam Your NM server Check natalie lesets onthe NIM cet. ———p Insta ests using te pp_source. reste on mksysb rom the i cen Insta fests from the pp. source. Insta using te spt Insta using te mksysb Grats onan it toto te HM cet {rete peerdomain ond SCT cluster between the NIM sere and olemate_server 4OP done. THANK YOU for ATTENDING = Please fill in the evaluation questionnaire A16 Bjorn Rodén http://www.linkedin.com/in/roden

You might also like