Bacula-users

[Bacula-users] Python New Volume

2011-10-17 11:23:50
Subject: [Bacula-users] Python New Volume
From: Judi Cushing <jpc AT thinksrs DOT com>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 17 Oct 2011 08:21:18 -0700
Good Morning,

I am new to bacula.  Most of what I have tried has worked wonderfully, with one exception.  I know I must be doing something wrong, but I cannot figure out what.

Technical Details:  Bacula 5.0.3 running on SLES 11

Problem:  I am getting the error:

11-Oct 08:28 SRSBackup-sd JobId 55: Please mount Volume "Server_180001" or label a new one for:
    Job:          ServerNapa3Backup.2011-10-11_08.28.00_03
    Storage:      "Server" (/dev/st0)
    Pool:         SRS_Server
    Media type:   LTO-4


I have a new tape in the drive.  My device is defined as:

Device {
  Name = Server
  Media Type = LTO-4
  Archive Device = /dev/st0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  Maximum File Size = 5GB
  LabelMedia = yes;                   # lets Bacula label unlabeled media
}

and I have in NewVolume defined in Dirstartup.py.  I know that python is running because I get:

11-Oct 08:34 SRSBackup-dir JobId 56: Python Dir JobEnd output: JobId=56 Status=A Client=SRSBackup-fd.
11-Oct 08:28 SRSBackup-dir JobId 55: Python Dir JobStart: JobId=55 Client=Napa3-fd NumVols=1

I have the line:

print "New Volume is requested\n"

in my NewVolume script before doing anything else and it does not show up in the log.  It seems that NewVolume in not begin called.  Why? Bacula needs a new volume and I have LabelMedia=yes in my device definition.  Why is the NewVolume command not being called? What am I missing?

Thanks,

Judi Cushing, Ph.D.
Software Engineer/IT
Stanford Research Systems
1290C Reamwood Ave
Sunnyvale, CA 94089
408-744-9047 ext 233

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
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>