SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Corrupted volume. How do I recover?
Author Message
Post Corrupted volume. How do I recover? 
I believe I confused bacula by restarting the sd with my tapes mounted
in my autochanger. The end result is one of the tapes appears to have
been corrupted:

15-Mar 16:12 dev6-sd: 3305 Autochanger "load slot 21, drive 1", status is OK.
15-Mar 16:12 dev6-sd: 3301 Issuing autochanger "loaded? drive 1" command.
15-Mar 16:12 dev6-sd: 3302 Autochanger "loaded? drive 1", result is Slot 21.
15-Mar 16:12 dev6-sd: PLuSSArchive-Job.2007-03-15_16.06.16 Error:
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "".
Buffer discarded.

I try bls and I get more of the same:
# bls -c /etc/bacula/bacula-sd.conf -V* /dev/nst1 -L
bls: butil.c:283 Using device: "/dev/nst1" for reading.
15-Mar 17:14 bls: Invalid slot=0 defined, cannot autoload Volume.
15-Mar 17:14 bls: 3301 Issuing autochanger "loaded? drive 1" command.
15-Mar 17:14 bls: 3302 Autochanger "loaded? drive 1", result is Slot 21.
15-Mar 17:14 bls: bls Error: block.c:275 Volume data error at 0:0!
Wanted ID: "BB02", got "". Buffer discarded.

Now this tape (3rd in an archive pool) had 34GB of backups on it the
first question I have is how do I find out what jobs were run on this
volume? Also If I purge the volume which should contain 2 to 4
incremental jobs can I run an incremental backup again on the data so
that bacula backups any files that were new along with the purged
files. Or will bacula try to do a full backup?

I am using bacula-2.0.0 on the sd with the director on a different box
running svn code from a few days ago.

Thanks in advance,
John M. Drescher

Post Corrupted volume. How do I recover? 
I believe I confused bacula by restarting the sd with my tapes mounted
in my autochanger. The end result is one of the tapes appears to have
been corrupted:

<snip>

Now this tape (3rd in an archive pool) had 34GB of backups on it the
first question I have is how do I find out what jobs were run on this
volume?

I found this one. Use the query command from the console.

John

Post Corrupted volume. How do I recover? 
Now this tape (3rd in an archive pool) had 34GB of backups on it the
first question I have is how do I find out what jobs were run on this
volume?

I found this one. Use the query command from the console.

query
Available queries:
1: List up to 20 places where a File is saved regardless of the directory
2: List where the most recent copies of a file are saved
3: List last 20 Full Backups for a Client
4: List all backups for a Client after a specified time
5: List all backups for a Client
6: List Volume Attributes for a selected Volume
7: List Volumes used by selected JobId
8: List Volumes to Restore All Files
9: List Pool Attributes for a selected Pool
10: List total files/bytes by Job
11: List total files/bytes by Volume
12: List Files for a selected JobId
13: List Jobs stored on a selected MediaId
14: List Jobs stored for a given Volume name
15: List Volumes Bacula thinks are in changer
16: List Volumes likely to need replacement from age or errors
Choose a query (1-16): 14
Enter Volume name: A00023

+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+
| jobid | name | starttime | type | level |
files | bytes | status |

+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+
| 3,867 | HOLOGICArchive-Job | 2007-03-12 15:17:46 | B | I |
13,216 | 118,405,453,610 | T |

+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+

It says there is only one job on the tape which I worry about as it
says there are ~34GB of data on the tape but since this job only had
13GB where was the other data from?

list media pool=LTO2-Archived-Data

+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes |
volfiles | volretention | recycle | slot | inchanger | mediatype |
lastwritten |

+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 121 | A00008 | Full | 1 | 293,324,113,143 |
301 | 31,536,000 | 0 | 8 | 1 | LTO-2 |
2006-10-17 14:37:37 |
| 135 | A00010 | Archive | 1 | 262,766,020,608 |
269 | 31,536,000 | 0 | 10 | 1 | LTO-2 |
2007-03-12 16:27:04 |
| 154 | A00023 | Append | 1 | 32,146,910,208 |
33 | 31,536,000 | 0 | 21 | 1 | LTO-2 |
2007-03-12 16:58:42 |

John

Post Corrupted volume. How do I recover? 
On Thu, 15 Mar 2007 17:28:03 -0400, John Drescher said:

I believe I confused bacula by restarting the sd with my tapes mounted
in my autochanger. The end result is one of the tapes appears to have
been corrupted:

15-Mar 16:12 dev6-sd: 3305 Autochanger "load slot 21, drive 1", status is OK.
15-Mar 16:12 dev6-sd: 3301 Issuing autochanger "loaded? drive 1" command.
15-Mar 16:12 dev6-sd: 3302 Autochanger "loaded? drive 1", result is Slot 21.
15-Mar 16:12 dev6-sd: PLuSSArchive-Job.2007-03-15_16.06.16 Error:
block.c:275 Volume data error at 0:0! Wanted ID: "BB02", got "".
Buffer discarded.

I try bls and I get more of the same:
# bls -c /etc/bacula/bacula-sd.conf -V* /dev/nst1 -L
bls: butil.c:283 Using device: "/dev/nst1" for reading.
15-Mar 17:14 bls: Invalid slot=0 defined, cannot autoload Volume.
15-Mar 17:14 bls: 3301 Issuing autochanger "loaded? drive 1" command.
15-Mar 17:14 bls: 3302 Autochanger "loaded? drive 1", result is Slot 21.
15-Mar 17:14 bls: bls Error: block.c:275 Volume data error at 0:0!
Wanted ID: "BB02", got "". Buffer discarded.

Now this tape (3rd in an archive pool) had 34GB of backups on it the
first question I have is how do I find out what jobs were run on this
volume? Also If I purge the volume which should contain 2 to 4
incremental jobs can I run an incremental backup again on the data so
that bacula backups any files that were new along with the purged
files. Or will bacula try to do a full backup?

It will run an incremental again as long as it can find the Full backup job.
The output of list jobs should show which jobs it knows about.

__Martin

Post Corrupted volume. How do I recover? 
On Mon, 19 Mar 2007 11:56:33 -0400, John Drescher said:

Now this tape (3rd in an archive pool) had 34GB of backups on it the
first question I have is how do I find out what jobs were run on this
volume?

I found this one. Use the query command from the console.

query
Available queries:
1: List up to 20 places where a File is saved regardless of the directory
2: List where the most recent copies of a file are saved
3: List last 20 Full Backups for a Client
4: List all backups for a Client after a specified time
5: List all backups for a Client
6: List Volume Attributes for a selected Volume
7: List Volumes used by selected JobId
8: List Volumes to Restore All Files
9: List Pool Attributes for a selected Pool
10: List total files/bytes by Job
11: List total files/bytes by Volume
12: List Files for a selected JobId
13: List Jobs stored on a selected MediaId
14: List Jobs stored for a given Volume name
15: List Volumes Bacula thinks are in changer
16: List Volumes likely to need replacement from age or errors
Choose a query (1-16): 14
Enter Volume name: A00023
+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+
| jobid | name | starttime | type | level | files | bytes | status |
+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+
| 3,867 | HOLOGICArchive-Job | 2007-03-12 15:17:46 | B | I | 13,216 | 118,405,453,610 | T |
+-------+--------------------+---------------------+------+-------+--------+-----------------+--------+

It says there is only one job on the tape which I worry about as it
says there are ~34GB of data on the tape but since this job only had
13GB where was the other data from?

list media pool=LTO2-Archived-Data
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 121 | A00008 | Full | 1 | 293,324,113,143 | 301 | 31,536,000 | 0 | 8 | 1 | LTO-2 | 2006-10-17 14:37:37 |
| 135 | A00010 | Archive | 1 | 262,766,020,608 | 269 | 31,536,000 | 0 | 10 | 1 | LTO-2 | 2007-03-12 16:27:04 |
| 154 | A00023 | Append | 1 | 32,146,910,208 | 33 | 31,536,000 | 0 | 21 | 1 | LTO-2 | 2007-03-12 16:58:42 |

In fact it is the other way round -- the job was 118GB. Possibly the start of
the job is on A00010?

__Martin

Post Corrupted volume. How do I recover? 
In fact it is the other way round -- the job was 118GB. Possibly the start of
the job is on A00010?

Martin,
Thank You!

User error... I guess I could put some blame on the messed up
formatting on my gnome console.

This is a good thing then as I will only need to redo a single backup.
I now feel confident to purge tape A00023 and run another incremental
HOLOGICArchive-Job job.

Thanks again,
John

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB