AIX mksysb

How do I check of a mksysb for an AIX server is intact and not corrupted. The only way I know is to restore it back to the test system.,....I there a simple way.....
mnis2008Asked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
With lsmksysb only the various tocs (tables of content) are checked and displayed.

A slightly more thorough method is using restore (I assume it's a file, not a tape):

restore -Tqvlf /path/to/file

This will access every file's header, but will not read it as a whole.

A byte-by-byte check can indeed only be achieverd by running a restore.

wmp
0
 
woolmilkporcCommented:
Try lsmksysb.

If your mksysb is in a file use

lsmksysb -lf /path/to/mksysb_file
and/or
lsmksysb -Lf /path/to/mksysb_file

For an mksysb on tape use /dev/rmtx instead of the file path.

Adittionally you can use

lsmksysb -Vf /dev/rmtx

wmp
0
 
mnis2008Author Commented:
If the mksysb is corrupted will it show it is corrupted..???
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.