How to create a lppsource on the nim server in aix?
The below steps clearly explains you to create a lppsource (aix71_TL4SP2_lppsource ) on
the nim server using the similiar lppsource (which is already created
succesfully) from some other nim servers.
so what we can do is, we can copy
the content of the lppsource from other nim server and paste it on our target servers' filesystem and then define it as a lppsource resource.
create a separate filesystem for
the lppsource in our target server
=========================================================
# mklv -y lpplv -t jfs2 testvg 120
# crfs -v jfs2 -d lpplv -A yes -m
/lpp_source/aix71_TL4SP2_lppsource -a logname=INLINE -a logsize=245
# mount
/lppsource/aix71_TL4SP2_lppsource
# df -gt
/lppsource/aix71_TL4SP2_lppsource
Mount the similar
aix71_TL4SP2_lppsource from another NIM server (named testnim) to our target Nim
server
=======================================================================================
# mount
testnim:/lpp_source/aix71_TL4SP2_lppsource /mnt
Copy all the files from the mounted
lpp_source into the newly created filesystem
==================================================================
# cp -rp
/mnt/aix71_TL4SP2_lppsource/* /lpp_source/aix71_TL4SP2_lppsource
# cd
/lpp_source/aix71_TL4SP2_lppsource/installp/ppc
# chown root:system *
# chmod 644 *
Define the new lpp_source directory
as an LPP_SOURCE resource
=====================================================
# nim -o define -t lpp_source -a
server=master -a locatioin=/lpp_source/aix71_TL4SP2_lppsource aix71_TL4SP2_lppsource
# lsnim -l
aix71_TL4SP2_lppsource (** check the
"Rstate" equals "ready for use" and "simages"
equals yes**)
CREATE SPOT FROM NEW LPP_SOURCE
================================
===========
# nim -o define -t spot -a
server=master -a location=/export/spot -a source=aix71_TL4SP2_lppsource
aix71_TL4SP2_spot
# lsnim -l aix71_TL4SP2_spot -> make sure the spot resource has been created.
Check if bos.alt_disk_install.rte
is in spot
=============================================
# nim -o showres
aix71_TL04SP2_spot|grep -i bos.alt_disk_install.rte
#nim -o cust -a lpp_source=aix71_TL4SP2_lppsource -a filesets=bos.alt_disk_install.rte aix71_TL4SP2_spot
# nim -o showres
aix71_TL4SP2_spot|grep -i bos.alt_disk_install.rte
# lsnim -l aix71_TL4SP2_spot