Bacula-users

[Bacula-users] Tip: How to relabel an old tape without interrupting a running job that needs it

2009-07-06 18:00:21
Subject: [Bacula-users] Tip: How to relabel an old tape without interrupting a running job that needs it
From: Phil Stracchino <alaric AT metrocast DOT net>
To: bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Mon, 06 Jul 2009 16:37:00 -0400
Problem:

You have a running job which turns out to need one volume more than you
anticipated.  You don't have another labelled tape ready.  You DO have
some available tapes waiting to be relabelled, but they're volumes with
a different label scheme from an earlier installation.

You can't use the label command because the tapes are already labelled.
 You can't use btape to label them because the sd has your tape drive
locked, and you can't release the tape drive without stopping the sd,
which will interrupt the job.  You can't use the relabel command because
the old tapes don't exist in the database.  You've just backed up over
half a terabyte of data, and you REALLY don't want to have to cancel and
restart the job.


Solution:

1. Create new volumes in your scratch pool matching the existing labels
on the old tapes.
2. Purge those new volumes.  There's nothing on them according to your
catalog, but that's OK, purge them anyway.  You need their volume labels
to be either 'Purged' or 'Recycled'.
3. Once you've done that, NOW you can use the relabel command to label
them the way you need them labelled, without having to stop the SD or
release the drive.
4. Mount your newly-relabelled tape, and you're back in business; your
paused job will pick up where it left off.


-- 
  Phil Stracchino, CDK#2     DoD#299792458     ICBM: 43.5607, -71.355
  alaric AT caerllewys DOT net   alaric AT metrocast DOT net   phil AT 
co.ordinate DOT org
         Renaissance Man, Unix ronin, Perl hacker, Free Stater
                 It's not the years, it's the mileage.

------------------------------------------------------------------------------
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>