What is mksysb And What Are Its Components

January 7th, 2009

What is mksysb

mksysb is a command to create backup of rootvg on AIX systems.  It creates bootable image of all the filesystems mounted at the time of taking mksysb backup. And backup created is called mksysb backup. Ultimately we can use this backup to restore the exact image of the system which it had at the time of taking backup.

Important Ideas About mksysb

1. mksysb Does Not Backup Everything

mksysb does not backup everything on the system. Any user defined paging spaces and raw devices are not backed up.

2. mksysb Image Is Bootable Only If Taken On Tape

mksysb image is only bootable if its taken on some device like tape. If it’s stored as file then it won’t be a bootable image.

Components of mksysb

mksysb has 4 important components:

  1. BOS boot image.
  2. mkinsttape image.
  3. dummy.toc
  4. rootvg data

These are explained briefly one by one.

BOS Boot Image

This is the first image in mksysb backup. BOS is Base Operating System. It contains kernel device drivers. Its used to boot the system from mksysb image. It uses block size of 512 KB.

mkinsttape Image

mkinsttape is the second image in mksysb backup. It also uses block size of 512KB. It has 3 important files:

./tapeblksz

This contains block size on tape which was set at the time of taking backup.

./bosinst.data

This file contains customized BOS install procedure. This is used to tailor the mksysb to adjust to the target system.

./image.data

This file has the information regarding sizes, names, maps and mount points of logical volumes(LVs). This file can also be customized using mkszfile command. It can be used to exclude certain files and directories from mksysb backup.

dummy.toc

It contains dummy Table of Contents. It’s used so that mksysb tape will have same number of images as on BOS install tape.

rootvg Data

This has all of the data of rootvg. Whatever filesystems are mounted at the time of mksysb image, will be backed up.

Can We Exclude Some File From Backup

Yes. Simply create a file as /etc/exclude.rootvg.

In this file you can list absolute paths of files and directories to be excluded, one per line:

e.g

/tmp

/usr

etc.

How To Take Backup Using mksysb

You can take mksysb backup as mentioned below:

1. Use command as below:

mksysb /dev/rmt0

2. If you want to exclude file as per specifications in /etc/exclude.rootvg

then run the command as:

mksysb -e /dev/rmt0

Tags: , , , , , , , ,
Posted in Backups | 3 Comments »

Comments

3 Responses to “What is mksysb And What Are Its Components”

  1. mahadevan Says:

    hi ganesh.

    I am first time I seen your articles. It is very very very useful to me. Then, Lpar video is not opening in your site. kinly send that does videos.

    Regards
    Mahadevan.S.

  2. Todd Says:

    This is a nice and easy post, thanks.

  3. Restoring Files From Aix mksysb Backup | World is Welcome To The World of Unix!!! Says:

    […] interested in knowing more about mksysb backup image contents can read my earlier article What is mksysb And What Are Its Components. For those who want to read all of my aix backup articles can follow backup link in categories list […]

Leave a Reply

 Comment Form 

 



More articles from the category: Backups


The dd Command FAQs

Whosoever has worked in Unix environment must be aware of dd command. The specialty of dd command lies in fact that it can copy a file, convert character mapping of files and do various other operations. In this article I am going to introduce various uses of dd command in the form of FAQs…

Solving Incorrect Block Size Problem In Backup Tapes

Its common phenomena to take Unix tape backups on one system and restore on another. Moving tapes to another site for safety sake is also called offsite backup. The problem often occurs while restoring tape data on another server. The tape backup access is very much dependent upon the block size used on the Unix server. For example on one unix server the block size can be 2048 Bytes and on another it may be 1024 Bytes….

Restoring Files From Aix mksysb Backup

You may be aware that the mksysb command creates the bootable image of all the mounted files systems on rootvg, at the time of creation of mksysb image. Here I am going to discuss how to restore data from mksysb backup image. I’ll discuss how to restore single file, multiple files and directories from mksysb backup image….

How To Use mksysb Command

Here I am going to discuss what you can do with the mksysb command. But before proceeding further let’s have a look on important command line options. Consult mksysb man page from IBM for more information….

Some Interesting Facts About mksysb

While I was writing about mksysb notes from IBM manuals, I came to know of some interesting facts about mksysb command in the man pages. Not everyone is interested in navigating through man pages or so. Here, I’m presenting the facts in my own language…

All You Wanted To Know About AIX Tape Device Backups-II

Welcome to the second article of the series about rmt devices in AIX. In first article I discussed about the common but confusing terminology used for tape devices. I hope you found the article All You Wanted To Know About AIX Tape Device Backups-I, interesting and useful. In this second article I am gonna explain the other naming conventions for rmt tape devices…

All You Wanted To Know About AIX Tape Device Backups-I

The tape devices in AIX are designated as rmt devices. The rmt are specifically used for backups. During the study of AIX tape backups, lots of confusion arises in the terminology. Before discussing in detail about rmt tape types I would like to discuss these six confusing terms used in context to tape backups and restores…

What is mksysb And What Are Its Components

mksysb is a command to create backup of rootvg on AIX systems. It creates bootable image of all the filesystems mounted at the time of taking mksysb backup. And backup created …