Bacula-users

[Bacula-users] Bscan - No results to list

2010-05-12 02:33:17
Subject: [Bacula-users] Bscan - No results to list
From: "Ken Barclay" <ken.barclay AT qbmore DOT com>
To: <Bacula-users AT lists.sourceforge DOT net>
Date: Wed, 12 May 2010 13:11:13 +0700

Hi,

Yesterday afternoon I managed to successfully run my first Migration Job from Tape to Disk, all went well (see email output below).   After the job had completed, I used bconsole query ‘List Jobs stored on a selected MediaId’ to check that the data was now on the new Disk storage, it was all there, Great!

The plan for today was to Migrate that same data from Disk to a new Tape.  But, alas, when I ran the same bconsole query as yesterday it said “No results to list.”  I assume this happened because I had left Recycle and AutoPrune for the new Disk Pool on the default values.

Okay, I thought, not a problem, I can just bscan the Disk Volume and have the data put back in the catalog, then I can continue with today’s plan.

Here’s the output from bscan:

[root@SVR03 sbin]# ./bscan -s -m -c /etc/bacula/bacula-sd.conf -v -V File-0001 /vmtmp/BaculaStore

bscan: butil.c:282 Using device: "/vmtmp/BaculaStore" for reading.

12-May 09:36 bscan JobId 0: Ready to read from volume "File-0001" on device "Disk" (/vmtmp/BaculaStore).

bscan: bscan.c:309 Using Database: bacula, User: bacula

bscan: bscan.c:451 Pool record for Mig2Disk found in DB.

bscan: bscan.c:465 Pool type "Backup" is OK.

bscan: bscan.c:475 Media record for File-0001 found in DB.

bscan: bscan.c:493 Media type "Disk" is OK.

bscan: bscan.c:503 VOL_LABEL: OK for Volume: File-0001

bscan: bscan.c:521 SOS_LABEL: Found Job record for JobId: 22760

bscan: bscan.c:689 32,768 file records. At file:blk=1:3,500,211,336 bytes=7,790,769,568

bscan: bscan.c:689 65,536 file records. At file:blk=1:4,158,362,662 bytes=8,448,604,989

bscan: bscan.c:1037 Fileset "Zabbix162 Set" already exists.

bscan: bscan.c:1152 Could not update JobId=10293 record. ERR=sql_update.c:196 Update failed: affected_rows=0 for UPDATE Job SET JobStatus='T',EndTime='2009-07-29 22:19:12',ClientId=24,JobBytes=8885378522,ReadBytes=0,JobFiles=71721,JobErrors=0,VolSessionId=1,VolSessionTime=1273565665,PoolId=12,FileSetId=81,JobTDate=1248880752,RealEndTime='2009-07-29 22:19:12',PriorJobId=0 WHERE JobId=10293

bscan: bscan.c:1250 Created JobMedia record JobId 10293, MediaId 84

12-May 09:44 bscan JobId 0: End of Volume at file 2 on device "Disk" (/vmtmp/BaculaStore), Volume "File-0001"

bscan: bscan.c:338-10293 ========== JobId=0 ========

bscan: bscan.c:970 Updated Media record at end of Volume: File-0001

12-May 09:44 bscan JobId 0: End of all volumes.

bscan: bscan.c:970 Updated Media record at end of Volume: File-0001

bscan: bscan.c:638 End of all Volumes. VolFiles=2 VolBlocks=0 VolBytes=8,889,199,325

Records added or updated in the catalog:

      1 Media

      1 Pool

      1 Job

  71721 File

 

That looks to be ok.  But when I run the bconsole query again on both the mediaid and Volume name, I get:

No results to list.

*

Why?

And from the command-line:

[root@SVR03 sbin]# ll /vmtmp/BaculaStore/

total 8694208

-rw-r----- 1 bacula disk 8894162049 May 11 15:47 File-0001

 

Also of note, or perhaps an offer of some kind of explanation:  Before running the Migration Job yesterday, I needed to bscan the Tape as it had long passed its retention period.  That was ok and the tape had about 15 jobs put back into the catalog.  Today, not surprisingly, all of those jobs had been pruned from the catalog except for the Job which had been migrated, which is now marked as type M.

Can anybody offer any explanation as to why there are ‘No results to list’ after today’s bscan?

What did I miss, or misunderstand?

Email output from the Migration Job:

11-May 15:17 KenTest-dir JobId 22769: The following 1 JobId was chosen to be migrated: 22760 11-May 15:17 KenTest-dir JobId 22769: Migration using JobId=22760 Job=Zabbix162.2009-07-29_22.00.27 11-May 15:17 KenTest-dir JobId 22769: Bootstrap records written to /var/lib/bacula/KenTest-dir.restore.1.bsr

11-May 15:17 KenTest-dir JobId 22769: Start Migration JobId 22769, Job=MigrateTapeToDisk.2010-05-11_15.17.04_03

11-May 15:17 KenTest-dir JobId 22769: Using Device "Disk"

11-May 15:17 KenTest-sd JobId 22769: Ready to read from volume "000031L3" on device "FileStorage" (/dev/tape).

11-May 15:17 KenTest-sd JobId 22769: Wrote label to prelabeled Volume "File-0001" on device "Disk" (/vmtmp/BaculaStore) 11-May 16:07 KenTest-dir JobId 22769: Bacula KenTest-dir 3.0.2 (18Jul09): 11-May-2010 16:07:40

  Build OS:               x86_64-redhat-linux-gnu redhat

  Prev Backup JobId:      22760

  Prev Backup Job:        Zabbix162.2009-07-29_22.00.27

  New Backup JobId:       22770

  Current JobId:          22769

  Current Job:            MigrateTapeToDisk.2010-05-11_15.17.04_03

  Backup Level:           Full

  Client:                 Zabbix-1.6-fd

  FileSet:                "Zabbix162 Set" 2010-01-29 22:00:00

  Read Pool:              "Monthly" (From Job resource)

  Read Storage:           "File" (From Job resource)

  Write Pool:             "Mig2Disk" (From Job Pool's NextPool resource)

  Write Storage:          "Disk" (From Storage from Pool's NextPool resource)

  Catalog:                "MyCatalog" (From Client resource)

  Start time:             11-May-2010 15:17:08

  End time:               11-May-2010 16:07:40

  Elapsed time:           50 mins 32 secs

  Priority:               10

  SD Files Written:       71,721

  SD Bytes Written:       8,885,378,522 (8.885 GB)

  Rate:                   2930.5 KB/s

  Volume name(s):         File-0001

  Volume Session Id:      1

  Volume Session Time:    1273565665

  Last Volume Bytes:      8,894,162,049 (8.894 GB)

  SD Errors:              0

  SD termination status:  OK

  Termination:            Migration OK

 

Thanks in advance,

Ken Barclay

 

------------------------------------------------------------------------------

_______________________________________________
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>
  • [Bacula-users] Bscan - No results to list, Ken Barclay <=