cancel
Showing results for 
Search instead for 
Did you mean: 

Restoring LTO2 tapes from another system

jvdhoeven
Level 3

Hello everyone,

 

I've just strated using Netbackup in an effort to recover data stored on some LTO2 tapes. Unfortunately I'm running into the following problem whenever I try to inventory the tapes in order to be able to perform the 2 phase import process:

 

Unknown or corrupt media detected in drive

 

I'm currently using NetBackup 6.5 on Windows 2008 Server (32bit) and a standalone tape drive. 

Is there any way to get vmphyinv to inventory the tape even though I'm getting this error? 

 

Thank you for your help and time,

 

-Jorick

31 REPLIES 31

Mark_Solutions
Level 6
Partner Accredited Certified

If NBU can read the header it "should" then adjust to the block size that the tape was written with.

If you are running on Windows 2003 / 2008 then it should be able to use a 256kb block size - but if anything in the HBA driver does not permit this then it could cause the issue potentially.

As you are on 2008 you should be OK - but worth checking what the drivers registry entry says for the HBA you are using.

Identify the driver used - go to HKLM\System\CurrentControlSet\Drivers\driverused\Parameters\Device

and look for the MaximumSGList key

I believe it needs to be 65 decimal or 41 hex - any lower and it will not work - high should be OK (will need to support it to be changed as well as needing a reboot)

Hope this helps

 

mph999
Level 6
Employee Accredited
Good point mark, I wolud have thoughrt that although this would not allow it to read the block correctly, the part it does read should be correct, if not complete. Will shall see. M

mph999
Level 6
Employee Accredited
Good point mark, I wolud have thoughrt that although this would not allow it to read the block correctly, the part it does read should be correct, if not complete. Will shall see. M

jvdhoeven
Level 3

Hi everyone,

I've changed the block size and I'm not getting any results. I've tried randomly selecting tapes among those that I have and i've found that they all start like this:

 

 

 00000000:  00000000  00000000  00000000  00000000  00000001
 00000020:  00000000  00000300  cece0159  00000000  00000000
 
I've started hopping through the tape taking reads at certain points. fsf works fine so it can read different files so I know that the files exist. When I read file headers I get coherent data which conincides with the LTO4 tapes I have extracted before (ie backup policy names with a similar naming scheme). 
 
Is it at all possible that these tapes are part of a spanning volume in netbackup and that I need to find the first one?
 
Regards,
 
Jorick

jvdhoeven
Level 3

sorry let me ammend. Only up to 300 is it the same on all tapes

mph999
Level 6
Employee Accredited

Hi Jorick ...

Even a spanned tape will have a normal netbackup media header.

So if I understand correctly :

(1)

We cannot see a proper NBU header at the beginning of the tape (this WILL stop NBU reading the tape )

(2)

As you skip through the tape, you can read the NetBackup Backup header

...

very very odd .. it's looking like the header was incorrectly written and you only find out later ( like now) , but, this would have meant that every tape you found MUST have been written in one session (else it wouldn't have been able to remount them).

We have certainly seen some odd things with tape drive firmware, I wonder if this is another one ...

Marianne/ Mark - do you agree with me  ?

Thanks,

 

Martin

 

 

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Marianne/ Mark - do you agree with me  ?

Yes, I remember a very lengthy thread not-so-long-ago that was solved with updated firmware.

I actually stopped respondig to this thread after noticing that NBU media server was installed on 32-bit W2008.

Customer tried the same at my previous company. Device management service would not start after device config. Tried to troubleshoot for days.... Found the 32-bit compatibility issue.
Customer re-installed OS - this time 64-bit (was already 64-bit server). Installed 64-bit NBU and everything worked.

I am surprised to see all working fine with LTO4 media.

The other thing that comes to mind is if the tape is REALLY LTO2.

Any possibility it could be LTO1 media that was used in LTO2 drive?
Tape may even have LTO2 label on LTO1 tape....

mph999
Level 6
Employee Accredited

If the media was incomatable with the drive, it wouold never load ...

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Also true for StandAlone?

I have once seen a customer who tried to write to LTO1 tapes in LTO3 drives. They thought the 'clever' thing would be to put LTO3 labels on.
Robot loaded the tape and only reported an error when trying to read header.

mph999
Level 6
Employee Accredited

Oohhh, I stand corrected .. intersting ...

I always though that the tape type was on the chip in ythe cartridge, and therefore it was inpossible to load the wrong tape into he wrong drive ...

Clearly not ...

M

Andy_Welburn
Level 6

that in the example M has quoted you *would* be able to load an LTO1 into an LTO3 drive....

...whereas initially, a few posts back, looking at the possibility that an LTO1 tape with an LTO2 label was being loaded into an LTO4 drive....phew...

jvdhoeven
Level 3

Wow this is getting interesting. So here are some more details as to what is going on now. I am sure that the tapes are LTO2 as they are from HP and HP LTO2 tapes are dark red each version of LTO in HP has a different color. 

I wasn't around for the initial extract of the LTO4 tapes but I did assist in the later extractions and as I said they worked fine. I do however know that they apparently had to change to W32-bit and *downgrade* the firmware on the drive that we were using to read the LTO4 tapes. 

If I can find a copy of W2008 64-bit I will install that and give it a shot in the mean time here are the file headers I've been reading from the tape using nt_ttu fsf to position myself and then read the first 1024 bytes:

 

Translator at: http://home.paulschou.net/tools/xlate/

 

Tape:

 

 00000000:  00000000  00000000  00000000  00000000  00000001
 00000020:  00000000  00000300  cece7072  00000000  00000000
 00000040:  00000000  00003131  2f33302f  30372038  3a303020
 00000060:  504d0000  00000000  00000000  00000000  00000000
 00000080:  00000000  00000000  00000000  00000000  00000000
 00000100:  00000000  00000000  00000000  00000000  00000000
 00000120:  00000000  00000000  00000000  00000000  00000000
 00000140:  00000000  00000000  00000000  00000000  00000000
 00000160:  00000000  00000000  00000000  00000000  00000000
 00000180:  00000000  00000000  00000000  00000000  00000000
 00000200:  00000000  00000000  00000000  00000000  00000000
 00000220:  00000000  00000000  00000000  00000000  00000000
 00000240:  00000000  00000000  00000000  00000000  00000000
 00000260:  00000000  00000000  00000000  00000000  00000000
 00000280:  00000000  00000000  00000000  00000000  00000000
 00000300:  00000000  00000000  00000000  00000000  00000000
 00000320:  00000000  00000000  00000000  00000000  00000000
 00000340:  00000000  00000000  00000000  00000000  00000000
 00000360:  00000000  00b85d50  47000038  f8f34c00  00000000
 00000380:  00000000  00000000  00000000  00000000  00000000
 00000400:  00000000  00000000  00000000  00000000  00000000
 00000420:  00000000  00000000  00000000  00000000  00000000
 00000440:  00000000  00000000  00000000  00000000  00000000
 00000460:  00000000  00000000  00000000  00000000  00000000
 00000480:  00000000  00000000  00000000  00000000  00000000
 00000500:  00000000  00000000  00000000  00000000  00000000
 00000520:  00000000  00000000  00000000  00000000  00000000
 00000540:  00000000  00000000  00000000  00000000  00000000
 00000560:  00000000  00000000  00000000  00000000  00000000
 00000580:  00000000  00000000  00000000  00000000  00000000
 00000600:  00000000  00000000  00000000  00000000  00000000
 00000620:  00000000  00000000  00000000  00000000  00000000
 00000640:  00000000  00000000  00000000  00000000  00000000
 00000660:  00000000  00000000  00000000  00000000  00000000
 00000680:  00000000  00000000  00000000  00000000  00000000
 00000700:  00000000  00000000  00000000  00000000  00000000
 00000720:  00000000  00000000  00000000  00000000  00000000
 00000740:  00000000  00000000  00000000  00000000  00000000
 00000760:  00000000  00000000  00000000  00000000  00000000
 00000780:  00000000  00000000  00000000  00000000  00000000
 00000800:  00000000  00000000  00000000  00000000  00000000
 00000820:  00000000  00000000  00000000  00000000  00000000
 00000840:  00000000  00000000  00000000  00000000  00000000
 00000860:  00000000  00000000  00000000  00000000  00000000
 00000880:  00000000  00000000  00000000  00000000  00000000
 00000900:  00000000  00000000  00000000  00000000  00000000
 00000920:  00000000  00000000  00000000  00000000  00000000
 00000940:  00000000  00000000  00000000  00000000  00000000
 00000960:  00000000  00000000  00000000  00000000  00000000
 00000980:  00000000  00000000  00000000  00000000  00000000
 00001000:  00000000  00000000  00000000  00000000  00000000
 00001020:  00000000

 

File 1:

 

 00000000:  86d3dddd  53564e46  5047454e  3030312f  5359533a
 00000020:  00000000  00000000  00000000  00000000  00000000
 00000040:  00000000  00000000  00000000  00000000  00000000
 00000060:  00000000  00000000  00000000  00000000  00000000
 00000080:  00000000  00000000  00000000  00000000  00000000
 00000100:  00000000  00000000  00000000  00000000  00000000
 00000120:  00000000  00000000  00000000  00000000  00000000
 00000140:  00000000  00000000  00000000  00000000  00000000
 00000160:  00000000  00000000  00000000  00000000  00000000
 00000180:  00000000  00000000  00000000  00000000  00000000
 00000200:  00000000  646f6d67  656e3030  32202620  66706765
 00000220:  6e303031  20446169  6c792046  756c6c20  4261636b
 00000240:  75700000  00000000  00000000  00000000  00000000
 00000260:  00000000  00000000  00000000  00000000  00000000
 00000280:  00000000  0c000a84  30000000  00000000  00000000
 00000300:  00000000  00000000  00000000  00000000  00000000
 00000320:  00000000  00000000  00000000  0100377e  a00e0101
 00000340:  00000000  00000000  00000000  00000000  00000000
 00000360:  00000000  00000000  00000000  00000000  00000000
 00000380:  00000000  00000000  00000000  00000000  00000000
 00000400:  00000000  00000000  00000000  00000000  00000000
 00000420:  00000000  01000000  00000010  00000000  00000000
 00000440:  00000000  00000000  00000000  00000000  00ffb4d1
 00000460:  13d38dcf  45b0e8e9  4773e9b1  07000000  00000000
 00000480:  00000000  00000000  00000000  00000000  00000000
 00000500:  00000000  00000000  00000000  baabbaab  00000000
 00000520:  00000000  00000000  00000000  00000000  00000000
 00000540:  00000000  00000000  00000000  00000000  00000000
 00000560:  00000000  00000000  00000000  00000000  00000000
 00000580:  00000000  00000000  00000000  00000000  00000000
 00000600:  00000000  00000000  00000000  00000000  00000000
 00000620:  00000000  00000000  00000000  00000000  00000000
 00000640:  00000000  00000000  00000000  00000000  00000000
 00000660:  00000000  00000000  00000000  00000000  00000000
 00000680:  00000000  00000000  00000000  00000000  00000000
 00000700:  00000000  00000000  00000000  00000000  00000000
 00000720:  00000000  00000000  00000000  00000000  00000000
 00000740:  00000000  00000000  00000000  00000000  00000000
 00000760:  00000000  00000000  00000000  00000000  00000000
 00000780:  00000000  00000000  00000000  00000000  00000000
 00000800:  00000000  00000000  00000000  00000000  00000000
 00000820:  00000000  00000000  00000000  00000000  00000000
 00000840:  00000000  00000000  00000000  00000000  000000ca
 00000860:  accaac10  00daad00  00000000  00000000  00000000
 00000880:  00000038  00dada00  000000ca  accaac0c  00daad00
 00000900:  00000011  00000000  00000000  00000017  00dada00
 00000920:  00000053  564e4650  47454e30  30312f53  59533a00
 00000940:  000000ca  accaac0f  00daad00  00000007  00000000
 00000960:  00000000  00000016  00dada00  00000063  61726f6f
 00000980:  740000ca  accaac00  00000000  00000000  00000000
 00001000:  00000000  00000000  00000000  00000000  00000000
 00001020:  00000000
 

File 2:

 

00000000:  86d3dddd  53564e46  5047454e  3030312f  564f4c31
00000020:  3a000000  00000000  00000000  00000000  00000000
00000040:  00000000  00000000  00000000  00000000  00000000
00000060:  00000000  00000000  00000000  00000000  00000000
00000080:  00000000  00000000  00000000  00000000  00000000
00000100:  00000000  00000000  00000000  00000000  00000000
00000120:  00000000  00000000  00000000  00000000  00000000
00000140:  00000000  00000000  00000000  00000000  00000000
00000160:  00000000  00000000  00000000  00000000  00000000
00000180:  00000000  00000000  00000000  00000000  00000000
00000200:  00000000  646f6d67  656e3030  32202620  66706765
00000220:  6e303031  20446169  6c792046  756c6c20  4261636b
00000240:  75700000  00000000  00000000  00000000  00000000
00000260:  00000000  00000000  00000000  00000000  00000000
00000280:  00000000  0c000a84  30000000  00000000  00000000
00000300:  00000000  00000000  00000000  00000000  00000000
00000320:  00000000  00000000  00000000  0100377e  a0c00201
00000340:  00000000  00000000  00000000  00000000  00000000
00000360:  00000000  00000000  00000000  00000000  00000000
00000380:  00000000  00000000  00000000  00000000  00000000
00000400:  00000000  00000000  00000000  00000000  00000000
00000420:  00000000  01000000  00000010  00000000  00000000
00000440:  00000000  00000000  00000000  00000000  00af04f1
00000460:  2a72462d  4fa56852  9e58cb1f  35000000  00000000
00000480:  00000000  00000000  00000000  00000000  00000000
00000500:  00000000  00000000  00000000  baabbaab  00000000
00000520:  00000000  00000000  00000000  00000000  00000000
00000540:  00000000  00000000  00000000  00000000  00000000
00000560:  00000000  00000000  00000000  00000000  00000000
00000580:  00000000  00000000  00000000  00000000  00000000
00000600:  00000000  00000000  00000000  00000000  00000000
00000620:  00000000  00000000  00000000  00000000  00000000
00000640:  00000000  00000000  00000000  00000000  00000000
00000660:  00000000  00000000  00000000  00000000  00000000
00000680:  00000000  00000000  00000000  00000000  00000000
00000700:  00000000  00000000  00000000  00000000  00000000
00000720:  00000000  00000000  00000000  00000000  00000000
00000740:  00000000  00000000  00000000  00000000  00000000
00000760:  00000000  00000000  00000000  00000000  00000000
00000780:  00000000  00000000  00000000  00000000  00000000
00000800:  00000000  00000000  00000000  00000000  00000000
00000820:  00000000  00000000  00000000  00000000  00000000
00000840:  00000000  00000000  00000000  00000000  000000ca
00000860:  accaac10  00daad00  00000000  00000000  00000000
00000880:  00000038  00dada00  000000ca  accaac0c  00daad00
00000900:  00000012  00000000  00000000  00000017  00dada00
00000920:  00000053  564e4650  47454e30  30312f56  4f4c313a
00000940:  000000ca  accaac0f  00daad00  00000007  00000000
00000960:  00000000  00000016  00dada00  00000063  61726f6f
00000980:  740000ca  accaac00  00000000  00000000  00000000
00001000:  00000000  00000000  00000000  00000000  00000000
00001020:  00000000