Veritas-bu

Re: [Veritas-bu] Unexpected EOF reading image doing a bpimport (Jerry Rioux)

2008-04-17 11:35:28
Subject: Re: [Veritas-bu] Unexpected EOF reading image doing a bpimport (Jerry Rioux)
From: "Ian Jackson" <ianjackson5150 AT gmail DOT com>
To: veritas-bu AT mailman.eng.auburn DOT edu
Date: Thu, 17 Apr 2008 16:00:17 +0100
Hi Jerry,

You can use the debug_add_files touch file to get around your problem.
Here's a c&p of the relevant technote:

For Netbackup 4.5, 5.x
<install_path>\netbackup\db\images\<client_name>\<image
dir>\debug_add_files

For 6.0
<install_path>\netbackup\db\images\<client_name>\<image
dir>\tmp\debug_add_files




This touch file can be used under certain circumstances to restore from
a partial import if the catalog is in a binary format. If the catalog is
in an ASCII format, these steps can be used but you will not need to add
the touch file.
The first phase of an import creates the header file (non.f). The second
phase of an import creates the files file (.f file). If the import fails
during the phase two import for some reason (bad tape block, missing
tape in a multi-tape backup, or the backup was incomplete etc.),
NetBackup will not be able to browse the image for restore even though
both files needed are created (assuming that the second phase of the
import did not fail right away).
1.  Perform the phase one import. Your directory structure will look
something like this. The directory may have many images. This example
assumes there is only one image.
Directory of C:\Program Files\VERITAS\NetBackup\db\images\Sap\1058000000
07/22/2003 01:54 PM <DIR> .
07/22/2003 01:54 PM <DIR> ..
07/22/2003 01:51 PM <DIR> catstore
07/22/2003 01:51 PM 822 Sap_test_1058889087_FULL

2. Create the debug_add_files touch file. Here is an example showing the
new touch file.
Directory of C:\Program Files\VERITAS\NetBackup\db\images\Sap\1058000000
07/22/2003 01:54 PM <DIR> .
07/22/2003 01:54 PM <DIR> ..
07/22/2003 01:51 PM <DIR> catstore
07/22/2003 01:24 PM 0 debug_add_files
07/22/2003 01:51 PM 822 Sap_test_1058889087_FULL

3. Run the phase two import. As long as the phase two import gets to the
point that actually starts writing entries in the files file, the
structure may look like this.
Directory of C:\Program Files\VERITAS\NetBackup\db\images\Sap\1058000000
07/22/2003 01:54 PM <DIR> .
07/22/2003 01:54 PM <DIR> ..
07/22/2003 01:51 PM <DIR> catstore
07/22/2003 01:24 PM 0 debug_add_files
07/22/2003 01:51 PM 822 Sap_test_1058889087_FULL
07/22/2003 01:51 PM 181,627 Sap_test_1058889087_FULL.f
07/22/2003 01:50 PM 338,287 Sap_test_1058889087_FULL_debug.f

4. When the phase two import finally does fail or is stopped, rename the
.f to .f.old or any other name, and rename the _debug.f to just .f
Sap_test_1058889087_FULL.f becomes Sap_test_1058889087_FULL.f.old
Sap_test_1058889087_FULL_debug.f becomes Sap_test_1058889087_FULL.f

5. This is where you would start if you are running an import to an
ASCII catalog and it fails.
Edit the header file (Sap_test_1058889087_FULL).
Change the "IMAGE_TYPE" from 1 to 2. The IMAGE_TYPE is set to 0 (zero)
for backups, 1 after a phase one import and 2 after a successful phase
two import. If the IMAGE_TYPE is left at 1,  Backup, Archive and Restore
will not browse it for restores.

Example:
IMAGE_TYPE 2
Open the files file (Sap_test_1058889087_FULL.f) in a program that can
count line numbers. Textpad can do this by going to Configure |
Preferences | View, and selecting the checkbox for Line Numbers. Count
the number of lines in the files file.
Edit the NUM_FILES entry in the header file to represent the number of
lines as above.
Example:
NUM_FILES 1778

You should then be able to open up Backup, Archive and Restore and
browse the image for restore. Since this was a partial import, not all
files will be available for restore, but you may get the required file.


Hope this helps you,

regards,

Ian Jackson
_______________________________________________
Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Veritas-bu] Unexpected EOF reading image doing a bpimport (Jerry Rioux), Ian Jackson <=