Updating your nim image
Make sure you have a mksysb created of the server that you wish to recover onto another server.Then, create a simple script that disables all the items that you don't want to have running after the mksysb recovery, for example: /dev/null # Get rid of the crontabs mkdir -p /var/spool/cron/mv /var/spool/cron/crontabs/* /var/spool/cron/crontabs.org/ # Disable start scripts chmod 000 /etc/rc.d/rc2.d/S01app # copy cp /etc//etc/org # take out unwanted items cat /etc/org | grep -v bgssd /etc/# remove the hacmp cluster configuration if [ -x /usr/es/sbin/cluster/utilities/clrmclstr ] ; then /usr/es/sbin/cluster/utilities/clrmclstr fi # clear the error report errclear 0 # clean out mail queue rm /var/spool/mqueue/* # lsnim -l Un Config_Script Un Config_Script: class = resources type = script comments = Rstate = ready for use prev_state = unavailable for use location = /export/nim/cust_scripts/alloc_count = 0 server = master Select the client to install. Select a SPOT at the same level as the mksysb you are installing.
If you're using an AIX 5300-08 mksysb and allocate a 5300-09 lpp_source, this will update your target system to 5300-09.
Check with "lsvg rootvg" if you have enough space in rootvg and what the PP size is. Thus, to hold an ISO image of roughly 4.7 GB, we would need roughly 80 LPs of 64 MB.
When you're using AIX 7 / AIX 6.1: Significant changes have been made in AIX 7 and AIX 6.1 that add new support for NIM.
This will ensure you can easily identify your "image_data" NIM resource file locations, should you have the need for multiple "image_data" resources. A common way to name the file would be in relation to your clientname, for example: server1_image_data.
Run the nim command, or use smitty and the fast path 'nim_mkres' to define the file that you have edited using the steps above: From command line on the NIM master: Define a Resource Type or select values in entry fields. [Entry Fields] * Resource Name [server1_image_data] * Resource Type image_data * Server of Resource [master] * Location of Resource [/export/nim/image_data/server1_image_data] Comments  Source for Replication  # lsnim -l server1_image_data server1_image_data: class = resources type = image_data Rstate = ready for use prev_state = unavailable for use location = /export/nim/image_data/server1_image_data alloc_count = 0 server = master What you are looking for are the "lv_data" stanzas.