Bacula-users

Re: [Bacula-users] Please mount volume...

2010-07-16 18:41:31
Subject: Re: [Bacula-users] Please mount volume...
From: John Drescher <drescherjm AT gmail DOT com>
To: "Jeremiah D. Jester" <jjest AT u.washington DOT edu>
Date: Fri, 16 Jul 2010 18:39:30 -0400
> How did you determine it is corrupt? This?
> "Could not unserialize Volume"

It could not find the signature for the tape header see below for my
explanation.

>
> Here is the output for just KL0339.
>
> |     102 | KL0339     | Append    |       1 |          64,512 |        0 |   
> 15,552,000 |       1 |    2 |         1 | LTO2      | 0000-00-00 00:00:00 |
>

Good. There was nothing on the volume anyways.

> Not sure how to verify if /dev/nst0 is valid. This is how I originally 
> determined to use /dev/st0.
>
>
> [root@monk bacula]# dmesg | grep -B 2 -A 2 "tape"
> e1000: 0000:06:07.0: e1000_probe: (PCI:66MHz:32-bit) 00:11:43:e1:0f:a1
> st: Version 20070203, fixed bufsize 32768, s/g segs 256
> st 1:0:1:0: Attached scsi tape st0
> st0: try direct i/o: yes (alignment 512 B)
> st 1:0:2:0: Attached scsi tape st1
> st1: try direct i/o: yes (alignment 512 B)
> e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
>
> Although, nst0 file does exist.
>
>
> [root@monk bacula]# ls /dev/nst0
> 0 /dev/nst0
>
The difference between /dev/st0 and /dev/nst0 is that /dev/nst0 does
not rewind after operations while /dev/st0 does. With /dev/st0 there
is a slight chance of bacula corrupting tapes if the tape was rewound
and bacula expected the tape to be positioned at the end.

Now looking at the list media result I do not think that is what
happened because list media said that bacula never wrote to this
volume. Even with that I still recommend on changing your config to
use /dev/nst0 instead.

Is it possible that there was data on this volume when you first used
it with bacula? I think somehow the label barcodes failed because
there was data on the tape but it still put it in the database.

BTW, I have to leave soon. Its 6:36 PM here and I am still at work.. I
will try to help you as much as you can before I go though.

John

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users