Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- From: "j3" <jeffrey_e_ross2@xxxxxxxxxxx>
- Date: 27 Feb 2007 12:41:57 -0800
Here are some of my notes on analysing the contents of a mksysb tape.
You may find them a good starting point for looking at your savevg
tape. The mksysb produces several tape files and if you skip past the
header ones to the actual data you can read the data with a simple
restore command. The same is probably true for your savevg tape, so
if you can recognised the filenames for the VG that you're looking for
you may be able to extract them manually if you can't get the restvg
to work.
To read and identify the block size on a tape use
lsattr -El rmt0 # Note the existing block size, say ???
chdev -l rmt0 -a block_size=0 # Allow variable block size to be used
dd if=/dev/rmt0 of=/tmp/block bs=128k count=1
wc -c /tmp/block # Display the size of the first block on the tape
file /tmp/block # Display the type of the data on the tape
# A mksysb tape will have "data or International Language text" as
the first file type
rm /tmp/block
chdev -l rmt0 -a block_size=??? # Restore the original block size
To check if a tape is in mksysb format use
lsattr -El rmt0 # Note the existing block size, say ???
chdev -l rmt0 -a block_size=512 # Use block size of 512 bytes
mt fsf 2
dd if=/dev/rmt0 count=1
# A mksysb tape will have "Dummy tape TOC" as the third file data
chdev -l rmt0 -a block_size=??? # Restore the original block size
To determine the time that a mksysb tape was written use
lsattr -El rmt0 # Note the existing block size, say ???
chdev -l rmt0 -a block_size=512 # Use block size of 512 bytes
mt fsf 1
restore -tqf /dev/rmt0.1 # Display the tape file's header including
timestamp
mt rewind # Rewind the tape ("restore -tqf /dev/rmt0" fails)
chdev -l rmt0 -a block_size=??? # Restore the original block size
.
- References:
- failing & corrupt hdisks & mirror... restore VG's from tape?
- From: p595pimp
- Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- From: j3
- Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- From: p595pimp
- Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- From: Michael W. Ryder
- Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- From: p595pimp
- failing & corrupt hdisks & mirror... restore VG's from tape?
- Prev by Date: Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- Next by Date: LINUX for POWER install problem
- Previous by thread: Re: failing & corrupt hdisks & mirror... restore VG's from tape?
- Next by thread: Is there a g++ 3.4.3 (or better) binary available for AIX 4.3.3 ?
- Index(es):
Relevant Pages
|