Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Verify mksysb with "AIX 4.1"

Status
Not open for further replies.

jriordan

MIS
Sep 9, 2002
14
US
Hi all,
I have been trying to find out how I can verify a mksysb tape in AIX 4.1. In 5.1 I would use "listvgbackup" and 4.3 I would use the menu in smit. Well, as I have discovered these options do not exist in 4.1. The man page on mksysb in 4.1 says to look at the 4.1 Installation guide to find out how to verify a mksysb tape. Well, I can't seem to find this guide and IBM's website has it but it can't be downloaded it needs to be ordered.

Any help would be greatly appreciated.
Thanks
John
 
AIX V4:

The mksysb tape has 4 images on it:
---------------------------------------------------------------------------
boot image | install image | empty TOC | system backup image
---------------------------------------------------------------------------

To test the first 3 images, use the following commands. All this does is checks for tape media errors. If you want to be absolutely sure, boot the tape.

# The first 3 images are always written in 512 byte blocks
#
chdev -l rmt0 -a block_size=512
dd if=/dev/rmt0.1 of=/dev/null
dd if=/dev/rmt0.1 of=/dev/null
dd if=/dev/rmt0.1 of=/dev/null

To test the 4th image, use the commands:

# The system backup image is written at whatever block size the
# tape device was set to when the mksysb was made. You might
# assume 512 and skip the commands up through 'chdev' and the
# optional 'ibs' parameter to dd in the subsequent section. If
# you do and the block size is not 512, you'll get an I/O error.
#
tctl rewind
restore -xqvf /dev/rmt0.1 -s2 ./tapeblksz
chdev -l rmt0 -a block_size=$(awk '{ print $1 }' tapeblksz)

dd if=/dev/rmt0 [ibs=$(awk '{ print $1 }' tapeblksz)] | restore -Tqf- >/dev/null


Check TOC:
tctl -f /dev/rmt# rewind
Restore –s4 –Tvqf /dev/rmt#.1 > /tmp/mksysb.log
 
Thanks, I appreciate your response.
I will give it a try
John
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top