Solved

AIX mksysb

Posted on 2011-09-14
3
695 Views
Last Modified: 2013-11-17
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.....
0
Comment
Question by:mnis2008
  • 2
3 Comments
 
LVL 68

Expert Comment

by:woolmilkporc
ID: 36538917
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
 

Author Comment

by:mnis2008
ID: 36539080
If the mksysb is corrupted will it show it is corrupted..???
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 36539246
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Sed question 2 49
MarkLogic 1 51
unix example issues 18 49
How can i set a Environment Variable in my Unix script ? 3 19
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now