AIX Restore an mksysb
id : 43n820pcpd
category : computer
blog : unix
created : 07/30/10 - 09:56:43

Prerequisites
  • Check your standalone machine is defined :
# lsnim | grep machines | grep <machine_name>

  • Check your mksysb ressource is defined :
# lsnim | grep mksysb | grep <machine_name>

  • Check if lpp_source and spot ressource of your TL are present :
# lsnim | egrep "spot|lpp_source" | grep 530TL12

  • Check your network is defined :
# lsnim | grep "network" | grep

Smit
  • Use smit to serve mksysb
# smit nim 

    • Step 1 :
  Configure the NIM Environment
  Perform NIM Software Installation and Maintenance Tasks <--
  Perform NIM Administration Tasks
  Create IPL ROM Emulation Media
  NIM POWER5 Tools
  Thin Server Maintenance

    • Step 2 :
 
Install and Update Software <-- List Software and Related Information Installation Inventory Software Maintenance and Utilities Alternate Disk Installation Manage Diskless/Dataless Machines Manage Workload Partition Machines

    • Step 3 :
 
Install the Base Operating System on Standalone Clients <-- Install Software Update Installed Software to Latest Level (Update All) Install Software Bundle Update Software by Fix (APAR) Install and Update from ALL Available Software Install Linux on a Standalone Client or Machine Group

    • Step 4 :
 
rte - Install from installation images mksysb - Install from a mksysb <-- spot - Install a SPOT copy

    • Step 5 :
 
[Entry Fields] * Installation Target <machine_name> * Installation Type mksysb * SPOT spot_aix530TL12 LPP_SOURCE [lpp_aix530TL12] MKSYSB mksysb-<machine_name> BOSINST_DATA to use during installation [] IMAGE_DATA to use during installation [] RESOLV_CONF to use for network configuration [] Customization SCRIPT to run after installation [] 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] -OR- Set bootlist for installation at the [no] next reboot? Additional BUNDLES to install [] -OR- Additional FILESETS to install [] (bundles will be ignored) installp Flags COMMIT software updates? [yes] SAVE replaced files? [no] AUTOMATICALLY install requisite software? [yes] EXTEND filesystems if space needed? [yes] OVERWRITE same or newer versions? [no] VERIFY install and check file sizes? [no] ACCEPT new license agreements? [no] (AIX V5 and higher machines and resources) Preview new LICENSE agreements? [no] Group controls (only valid for group targets): Number of concurrent operations [] Time limit (hours) [] Schedule a Job [no] Year [] Month [] Day [] Hour [] Minute []

    • Step 7 :
Verify exported fs with exportfs command
# exportfs
/app/list/nim/spot/AIX530/spot_aix530TL12/usr   -ro,root=<machine_name>,access=<machine_name>
/app/list/nim/lpp/AIX530/lpp_aix530TL12         -ro,root=<machine_name>,access=<machine_name>
/app/list/nim/mksysb/<machine_name>/mksysb-<machine_name> -ro,root=<machine_name>,access=<machine_name>
/export/nim/scripts/<machine_name>.script            -ro,root=<machine_name>,access=<machine_name>


SMS Boot and install
  • Boot on SMS menu and follow this steps :

    • 2 Setup Remote IPL :

    • 1 Choose first network adapter :

    • 1 Choose IPV4 :

    • 1 Choose Bootp :

    • 1 Choose IP parameters :

    • Fields are empty by default :

    • Setup your network adapter :

    • 1 Select Speed and Duplex :

    • 6 Choose 1000 Full if you can :

    • 1 Perform a ping test :


    • 1 Select Boot/Device

    • 6 Network :

    • 1 BOOTP :

    • 1 Select network adapter your chose in second image :

    • 2 Normal boot mode :


  • After this step you have to choose your disk (local and distant).
List file on mksysb
# restore -Tqvf <mksysb_file>