Create a mksysb backup using NIM.

This post wil describe how to perform a mksysb backup of a AIX box that is a NIM client. The backup will be initiated from the NIM master and the mksysb file will be stored on the master.

1. Verify the file size limit (ulimit) for the root user is disabled or (or changed accordingly). The mksysb operation would fail if the backup file would be larger than the specified (u)limit.

# chuser fsize=-1 root
# lsuser -a fsize root
root fsize=-1

2. Using the smit fastpath below we will define a new mksysb NIM resource

 # smit nim_mkres 

                                                   Define a Resource                                                                                
Type or select values in entry fields.                                                                                                                                          
Press Enter AFTER making all desired changes.                                                                                                                                   
[TOP]                                                [Entry Fields]                                                                                                          
* Resource Name                                      [mksysb_p2]
* Resource Type                                       mksysb                                                                                                                    
* Server of Resource                                 [master]                                                                                                                  
* Location of Resource                               [/nim/mksysb]                                                                                                            
  NFS Client Security Method                         []                                                                                                                      
  NFS Version Access                                 []                                                                                                                      
  Comments                                           []
  Source for Replication                             []                                                                                                                      
  System Backup Image Creation Options:               
    CREATE system backup image?                       yes                                                                                                                      
    NIM CLIENT to backup                             [power2]                                                                                                                  
    PREVIEW only?                                     no                                                                                                                       
    IGNORE space requirements?                        no                                                                                                                       
    EXPAND /tmp if needed?                            yes                                                                                                                      
    Create MAP files?                                 yes                                                                                                                    
    Backup extended attributes?                       yes                                                                                                                    
    Number of BLOCKS to write in a single output     []                                                                                                                       
     (leave blank to use system default)
    Use local EXCLUDE file?                           no                                                                                                                     
     (specify no to include all files in backup)
    EXCLUDE_FILES resource                           []                                                                                                                      
     (leave blank to include all files in backup) 
    Backup encrypted files?                           yes                                                                                                                      

Before running the process, check if you have sufficient free disk space on the master server. The resulting mksysb file size can be determined by performing a preview operation by selecting “Preview only” in the above screen.

Command: OK            stdout: yes           stderr: no

Before command completion, additional instructions may appear below.

                System Backup Image Space Information
              (Sizes are displayed in 1024-byte blocks.)

Required = 2588757 (2529 MB)    Available = 3638980 (3554 MB)

Creating information file (/ for rootvg.

Creating list of files to back up

Backing up 60959 files

60959 of 60959 files backed up (100%)
0512-038 savevg: Backup Completed Successfully.

Verify the status of the mksysb object on the master server

# lsnim -l mk_p2_1201
   class         = resources
   type          = mksysb
   arch          = power
   Rstate        = ready for use
   prev_state    = unavailable for use
   location      = /nim/mksysb2
   version       = 6
   release       = 1
   mod           = 6
   oslevel_r     = 6100-05
   alloc_count   = 0
   server        = master
   creation_date = Wed Jan 4 12:01:45 2012
   source_image  = power2

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: