Saturday, May 23, 2015

How to confirm the mksysb backup is good for restore in aix?

How to confirm the mksysb backup is good for restore in aix?


Being as a system admin, many times we are dealing with mksysb backup. We need to take the mksysb backup before we are doing any maintenance activity. 

If you executing the mksysb backup, then you can able to identify whether the mksysb is successfully taken or not by the output of the mksysb command. In case, someone already taken the mksysb or script taken the mksysb, in this case you really should not know the mksysb backup is successfully taken or not.

Actually speaking, There is no true verification of the “restorability” of a mksysb other than actually restoring it. Taking precautions such as understanding the flags used for the creation of the mksysb, checking your error report for any serious disk related errors before running the mksysb, and verifying the readability of the mksysb after creation are all good checks.

To verify the readability of your backup run the following command.

listvgbackup -f <mksysb_name>

#listvgbackup –f /tmp/mksysb_tst01

once you execute the command, It will list out a long output, dont panic.if you get the prompt (#) then we can confirm that the mksysb is backed up successfully without any issues.

Any errors that occur while reading the headers of any of the files will be displayed, otherwise only the initial backup header information will be displayed. Keep in mind that this check tests the readability of the data only, not the writeability.


If you happy with above topic, Kindly rate your reactions/comments below