Bacula-users

Re: [Bacula-users] Rewinding + Restoring + Reusing

2008-09-08 10:36:16
Subject: Re: [Bacula-users] Rewinding + Restoring + Reusing
From: "Jason A. Kates" <jason AT kates DOT org>
To: Vladislav Korotkov <v.korotkov AT cti DOT ru>
Date: Mon, 08 Sep 2008 10:35:30 -0400
As the tape is just purged from the db and marked reusable,  it still
has the data until it's used again.  You could bscan the data back in if
need be, the the VolBytes listed is correct.   Once you start writing to
the tape again the volbytes will drop as the data isn't recoverable.

                                        -Jason

On Mon, 2008-09-08 at 18:18 +0400, Vladislav Korotkov wrote:
> I've marked several volumes as purged by your advice (bconsole > purge volume 
> > "Volume name"). But why do corresponding VolBytes and VolFiles fields still 
> contain non-zero values? 
> 
> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> | MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles | 
> VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten         |
> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> |       1 | 885ABN     | Purged    |       1 | 865,704,268,800 |      871 |   
> 31,536,000 |       1 |    8 |         1 | Ultrium 4 | 2008-09-02 14:43:49 |
> |       2 | 886ABN     | Purged    |       1 | 252,253,403,136 |      253 |   
> 31,536,000 |       1 |    6 |         1 | Ultrium 4 | 2008-09-02 21:05:54 |
> |       3 | 887ABN     | Purged    |       1 | 551,689,528,320 |      553 |   
> 31,536,000 |       1 |    1 |         1 | Ultrium 4 | 2008-09-08 02:24:24 |
> |       4 | 888ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |    9 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |       5 | 889ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   10 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |       6 | 890ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   12 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |       7 | 891ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   13 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |       8 | 892ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   14 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |       9 | 893ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   15 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      10 | 894ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   16 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      11 | 895ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   17 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      12 | 896ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   18 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      13 | 897ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   19 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      14 | 898ABN     | Purged    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   20 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      15 | 899ABN     | Append    |       1 |          64,512 |        0 |   
> 31,536,000 |       1 |   21 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      16 | 880ABN     | Purged    |       1 | 865,793,424,384 |      867 |   
> 31,536,000 |       1 |    7 |         1 | Ultrium 4 | 2008-09-05 20:25:36 |
> |      17 | 881ABN     | Append    |       1 |               0 |        0 |   
> 31,536,000 |       1 |    2 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      18 | 882ABN     | Append    |       1 |               0 |        0 |   
> 31,536,000 |       1 |    3 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      19 | 883ABN     | Append    |       1 |               0 |        0 |   
> 31,536,000 |       1 |    4 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> |      20 | 884ABN     | Append    |       1 |               0 |        0 |   
> 31,536,000 |       1 |    5 |         1 | Ultrium 4 | 0000-00-00 00:00:00 |
> +---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
> 
> Best regards,
> 
> Vladislav Korotkov
> IPTV Engineer
> Red Hat Certified Engineer
> 
> CTI -- Communications. Technology. Innovations.
> Phone: +7 495 784-73-13 ext. 2616
> Fax:   +7 495 784-73-14
> E-mail: v.korotkov AT cti DOT ru
> Web: www.cti.ru
> 
> 
> 
> -----Original Message-----
> From: Dan Langille [mailto:dan AT langille DOT org] 
> Sent: Thursday, September 04, 2008 7:23 PM
> To: John Drescher
> Cc: Vladislav Korotkov; bacula-users AT lists.sourceforge DOT net
> Subject: Re: [Bacula-users] Rewinding + Restoring + Reusing
> 
> John Drescher wrote:
> > 2008/9/4 Vladislav Korotkov <v.korotkov AT cti DOT ru>:
> >> No, I want to keep the label.
> >>
> > 
> > Then purge the volume.
> > 
> > In a bacula console type
> > 
> > purge volume
> > 
> > and follow the prompts
> 
> +1
> 
-- 
----------------------------------------------------------------------------
Jason A. Kates (jason AT kates DOT org) 
Fax:    208-975-1514
Phone:  212-400-1670 x2
============================================================================



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users