Bacula-users

Re: [Bacula-users] Problem with jobs

2008-07-26 04:42:58
Subject: Re: [Bacula-users] Problem with jobs
From: Stefano Elmopi <stefano.elmopi AT sociale DOT it>
To: bacula-users AT lists.sourceforge DOT net
Date: Sat, 26 Jul 2008 10:43:04 +0200

nobody can help me?

A question, if I run the command "status then 2 and then 2" I see:

Connecting to Storage daemon spectra at slc02.sociale.it:9103

slc02-sd Version: 2.4.0 (04 June 2008) i686-redhat-linux-gnu redhat
Daemon started 26-Jul-08 10:13, 4 Jobs run since started.
  Heap: heap=454,656 smbytes=287,807 max_bytes=319,128 bufs=119 max_bufs=127
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8

Running Jobs:
Backup Job siav5.2008-07-25_23.05.59 waiting for Client connection.
Writing: Full Backup job siav5 JobId=444 Volume="Full-0042"
     pool="Full-Pool" device="Drive-0" (/dev/st0)
     spooling=0 despooling=0 despool_wait=0
     Files=0 Bytes=0 Bytes/sec=0
     FDSocket closed
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
  JobId  Level    Files      Bytes   Status   Finished        Name
===================================================================
    424  Full          0         0   Error    25-Jul-08 11:01 mysqlsistemi
    425  Full          0         0   Error    25-Jul-08 11:01 portali
    426  Full          0         0   Error    25-Jul-08 11:01 flussisias
    427  Full          0         0   Error    25-Jul-08 11:02 flussixml
    428  Full          0         0   Cancel   25-Jul-08 11:23 siav5
    432  Full          0         0   Cancel   25-Jul-08 12:47 BackupCatalog
    440  Full          0         0   Error    26-Jul-08 10:13 mysqlsistemi
    441  Full          0         0   Error    26-Jul-08 10:14 portali
    442  Full          0         0   Error    26-Jul-08 10:14 flussisias
    443  Full          0         0   Error    26-Jul-08 10:14 flussixml
====

Device status:
Autochanger "spectra" with devices:
    "Drive-0" (/dev/st0)
Device "FileStorage" (/opt/file) is not open.
Device "Drive-0" (/dev/st0) is not open.
     Drive 0 status unknown.
====

In Use Volume status:
Full-0042 on device "Drive-0" (/dev/st0)
     Reader=0 writers=0 devres=1 volinuse=1
====

====

Where does Bacula takes those JobId?
In the table Job of the DB Bacula a that JobId corresponds to an old job that 
was completed regularly.


Ing. Stefano Elmopi
Gruppo Darco - Area ICT Sistemi
Via Ostiense 131/L Corpo B, 00154 Roma

cell. 3466147165
tel.  0657060500
email:stefano.elmopi AT sociale DOT it


Stefano Elmopi wrote:
> 
> Hi,
> 
> I have a strange problem !!
> I get e-mail control of the various jobs that are configured in this way:
> 
> 22-Jul 23:05 slc02-dir JobId 385: No prior Full backup Job record found.
> 22-Jul 23:05 slc02-dir JobId 385: No prior or suitable Full backup found in 
> catalog. Doing FULL backup.
> 22-Jul 23:05 slc02-dir JobId 385: Start Backup JobId 385, 
> Job=sicuro.2008-07-22_23.05.13
> 22-Jul 23:05 slc02-sd JobId 385: 3307 Issuing autochanger "unload slot 39, 
> drive 0" command.
> 22-Jul 23:06 slc02-dir JobId 385: Using Device "Drive-0"
> 22-Jul 23:06 slc02-sd JobId 385: Invalid slot=0 defined in catalog for Volume 
> "Full-0040" on
> "Drive-0" (/dev/st0). Manual load may be required.
> 22-Jul 23:06 slc02-sd JobId 385: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 22-Jul 23:06 slc02-sd JobId 385: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> 22-Jul 23:06 slc02-sd JobId 385: 3301 Issuing autochanger "loaded? drive 0" 
> command.
> 22-Jul 23:07 slc02-sd JobId 385: 3302 Autochanger "loaded? drive 0", result: 
> nothing loaded.
> 22-Jul 23:07 sicuro: sicuro.2008-07-22_23.05.13 Fatal error: job.c:1811 Bad 
> response to Append Data
> command. Wanted 3000 OK data
> , got 3903 Error append data
> 
> 22-Jul 23:07 slc02-sd JobId 385: Error: Could not open device "Drive-0" 
> (/dev/st0): ERR=dev.c:432
> Unable to open device "Drive-0" (/dev/st0): ERR=No medium found
> 
> 22-Jul 23:07 slc02-sd JobId 385: Fatal error: Could not ready device 
> "Drive-0" (/dev/st0) for append.
> 22-Jul 23:07 slc02-dir JobId 385: Error: Bacula slc02-dir 2.2.8 (26Jan08): 
> 22-Jul-2008 23:07:02
>    Build OS:               i686-redhat-linux-gnu redhat
>    JobId:                  385
>    Job:                    sicuro.2008-07-22_23.05.13
>    Backup Level:           Full (upgraded from Incremental)
>    Client:                 "sicuro" 2.2.4 (14Sep07) i686-pc-linux-gnu,suse,9
>    FileSet:                "sicuro_fileset" 2008-04-09 23:05:00
>    Pool:                   "Full-Pool" (From Job FullPool override)
>    Storage:                "spectra" (From Job resource)
>    Scheduled time:         22-Jul-2008 23:05:00
>    Start time:             22-Jul-2008 23:06:49
>    End time:               22-Jul-2008 23:07:02
>    Elapsed time:           13 secs
>    Priority:               10
>    FD Files Written:       0
>    SD Files Written:       0
>    FD Bytes Written:       0 (0 B)
>    SD Bytes Written:       0 (0 B)
>    Rate:                   0.0 KB/s
>    Software Compression:   None
>    VSS:                    no
>    Storage Encryption:     no
>    Volume name(s):
>    Volume Session Id:      2
>    Volume Session Time:    1216718934
>    Last Volume Bytes:      0 (0 B)
>    Non-fatal FD errors:    0
>    SD Errors:              0
>    FD termination status:  Error
>    SD termination status:  Error
>    Termination:            *** Backup Error ***
> 
> the problem is that the version of Bacula is 2.8, the JobId is not in the 
> catalog and the volume
> "Full-0040" does not exist.
> If I make the status of the tape, I see this:
> 
> slc02-sd Version: 2.4.0 (04 June 2008) i686-redhat-linux-gnu redhat
> Daemon started 22-Jul-08 11:28, 6 Jobs run since started.
>   Heap: heap=585,728 smbytes=423,797 max_bytes=423,907 bufs=153 max_bufs=155
> Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8
> 
> Running Jobs:
> Writing: Incremental Backup job sicuro JobId=2602 Volume=""
>      pool="Inc-Pool" device="Drive-0" (/dev/st0)
>      spooling=0 despooling=0 despool_wait=0
>      Files=0 Bytes=0 Bytes/sec=0
>      FDReadSeqNo=6 in_msg=6 out_msg=4 fd=4
> Writing: Full Backup job arianna JobId=390 Volume="Full-0040"
>      pool="Full-Pool" device="Drive-0" (/dev/st0)
>      spooling=0 despooling=0 despool_wait=0
>      Files=0 Bytes=0 Bytes/sec=0
>      FDSocket closed
> ====
> 
> Jobs waiting to reserve a drive:
>     3608 JobId=390 wants Pool="Full-Pool" but have Pool="Inc-Pool" nreserve=1 
> on drive "Drive-0"
> (/dev/st0).
> ====
> 
> Terminated Jobs:
>   JobId  Level    Files      Bytes   Status   Finished        Name
> ===================================================================
>     371  Full          0         0   Error    22-Jul-08 10:07 polis
>     372  Full          0         0   Cancel   22-Jul-08 10:08 contabilita
>    2600  Incr        115    480.8 M  OK       22-Jul-08 10:34 elearning
>     384  Full          0         0   Cancel   22-Jul-08 11:22 BackupCatalog
>    2601  Full         69    622.9 G  OK       22-Jul-08 16:20 oracle
>     385  Full          0         0   Error    22-Jul-08 23:07 sicuro
>     386  Full          0         0   Error    22-Jul-08 23:07 sia
>     387  Full          0         0   Error    22-Jul-08 23:07 polis
>     388  Full          0         0   Other    22-Jul-08 23:37 contabilita
>     389  Full          0         0   Error    22-Jul-08 23:37 elearning
> ====
> 
> Device status:
> Autochanger "spectra" with devices:
>     "Drive-0" (/dev/st0)
> Device "FileStorage" (/opt/file) is not open.
> Device "Drive-0" (/dev/st0) is not open.
>      Device is BLOCKED waiting to create a volume for:
>         Pool:        Inc-Pool
>         Media type:  LTO-3
>      Drive 0 status unknown.
> ====
> 
> In Use Volume status:
> Full-0040 on device "Drive-0" (/dev/st0)
>      Reader=0 writers=0 devres=1 volinuse=1
> ====
> 
> 390 job does not exist in the catalogue while 2602 is what should be done.
> If I try to cancel the 390:
> 
> *cancel JobId=390
> JobId 390 is not running. Use Job name to cancel inactive jobs.
> 
> Bacula where you take the Id 390?
> I am desperate, someone help me knows?
> Thank you
> 
> 
> 
> 
> 
> 

-------------------------------------------------------------------------
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

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