ITEM: BK8397L

How to get at raw lvs appened to the end of my sysback tape



Question:

Env:
  AIX 3.2.5
  RISC 550
  sysback 3.3.2.10

Desc:
  I am getting  a error message when trying to restore my raw lv data using
  this command lvrestore -i8 -xf /dev/rmt0
  Unable to read the volume header on device /dev/rmt0.1.
  The customer created the tape using this command
  sysback -xf /dev/rmt0 vg1 vg2
  Then ran the fsback.post script to append several raw lvs to the end of
  the tape.

Action:
  The customer is using the fsback.post script to append
  raw logical volume backups to the full system backup tape.
  Since the first 4 images are created with non sbwrite
  commands you will have to first fast forward on the tape to
  position yourself.

  MAP of a fullsystem backup.

      1          2            3           4        5       6      7       8
 -----------------------------------------------------------------------------
  |         |            |           |         |        |      |       |       |
  | Bosboot | Mkinsttape | Dummy TOC | sysback | rootvg | vg1  | vg2   | raw   |
  |  Image  |   Image    |   Image   |  Image  |  data  | data | data  |  lv   |
  |         |            |           |         |        |      |       |       |
  |-----------------------------------------------------------------------------
  |                                            |                               |
  |\<-------------- Block Size 512 ------------>| Block size determined by the  |
  |                                            | file on the sysback Image (4) |
  |                                            | ./tmp/...blksz                |
  |                                            |                               |

The full system backup contains 4 boot images at block size
512.  Each volume group is its own file image on the tape block
size of whatever the tape was set at pior to running the
sysback command.  Rootvg is always included and is always the
5th image on the full system backup tape.

To restore your raw logical volume (image 8) run these commands.

If you don't know the block size your backup was made at do
steps 1-4.  If you know the block size of your backup skip to
step 5

1.  chdev -l rmt\# -a block_size=512
2.  tctl -f /dev/rmt\# rewind
3.  restore -s4 -xvqf /dev/rmt\#.1 ./tmp/...blksz
4.  cat ./tmp/...blksz
    If the value in step 4 is not 512 run this command
    chdev -l rmt\# -a block_size=\

    IF THE FIRST MKLVBACK BACKUP IS ON THE FIRST TAPE USE STEPS 5 - 7
    ----------------------------------------------------------------
5.  tctl -f /dev/rmt\# rewind
6.  tctl -f /dev/rmt\#.1 fsf 7
       Postion yourself to the beginning of the 8th image
7.  lvrestore -nxf /dev/rmt\# lvname
       Do this for each mklvback appended to the end of the system backup
       tape

  IF THE FIRST MKLVBACK BACKUP IS ON A TAPE OTHER THAN THE FIRST ONE USE
  STEPS 8 - 10
  -----------------------------------------------------------------------
8.  tctl -f /dev/rmt\# rewind
9.  tctl -f /dev/rmt\#.1 fsf 4    postion yourself to the beginning of the
                                 rootvg image

10. sbfwd -s3 /dev/rmt\#.1

    The sbfwd command helps when the file images will possible span
    to multiple tapes.  The sbfwd command will automatictly span to the
    next tape and continue.  This way you don't have to know where each
    image is located realitive to the tape.

11.  lvrestore -nxf /dev/rmt\# lvname
       Do this for each mklvback appended to the end of the system backup
       tape


Next Action:
  Closing with customer approval



Support Line: How to get at raw lvs appened to the end of my sysback tape ITEM: BK8397L
Dated: June 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:21
Comments or suggestions? Contact us