Hello,

please reply to the list, so others can benefit from this discussion, too.

(Or pay my consulting rates ;-)

On 2/21/2007 12:42 PM, Geir Asle Borgen wrote:
> On 2/20/07, *Arno Lehmann* <[EMAIL PROTECTED] 
> <mailto:[EMAIL PROTECTED]>> wrote:
> 
>     Hello,
> 
>     On 2/20/2007 10:02 AM, Geir Asle Borgen wrote:
>      > Sorry I forgot to send the error messages:
>      >
>      > 16-Feb 16:02 dracula-sd: Please mount Volume
>     "VOlUME-Dracula-Tape-2007.02.14" on Storage Device "DLT8000-Dracula"
>     (/dev/nst0) for Job Torvalds.2007-02-16_15.49.17
>      >
>      >
>      > 16-Feb 15:49 helsing-dir: Start Backup JobId 2845,
>     Job=Torvalds.2007-02-16_15.49.17
>      > 16-Feb 16:02 dracula-sd: Invalid slot=0 defined, cannot autoload
>     Volume.
>      > 16-Feb 16:02 dracula-sd: 3301 Issuing autochanger "loaded drive
>     0" command.
>      >
>      > 16-Feb 16:02 dracula-sd: 3302 Autochanger "loaded drive 0",
>     result: nothing loaded.
>      > 16-Feb 16:02 dracula-sd: 3301 Issuing autochanger "loaded drive
>     0" command.
>      > 16-Feb 16:02 dracula-sd: 3302 Autochanger "loaded drive 0",
>     result: nothing loaded.
>      >
>      > 16-Feb 16:02 dracula-sd: Invalid slot=0 defined, cannot autoload
>     Volume.
>      > 16-Feb 16:02 dracula-sd: Please mount Volume "
>     VOlUME-Dracula-Tape-2007.02.14" on Storage Device "DLT8000-Dracula"
>     (/dev/nst0) for Job
> 
>     This looks more like Bacula does not know which volumes are available.
>     Have you ever used the 'update slots' command? 
> 
> No
> 
>     If not, now is the time to do so.
> 
> Yes, this gives me:
> 
> *update slots
> The defined Storage resources are:
>      1: File-Helsing
>      2: File-Dracula
>      3: Autochanger-Dracula
>      4: Full-Tape-Dracula
> Select Storage resource (1-4): 3
> Connecting to Storage daemon Autochanger-Dracula at dracula.hrp.no:9103 
> <http://dracula.hrp.no:9103> ...
> 3306 Issuing autochanger "slots" command.
> Device "Autochanger-Dracula" has 9 slots.
> Connecting to Storage daemon Autochanger-Dracula at dracula.hrp.no:9103 
> <http://dracula.hrp.no:9103> ...
> 3301 Issuing autochanger "loaded drive 0" command.
> 3302 Autochanger "loaded drive 0", result: nothing loaded.
> 3306 Issuing autochanger "list" command.
> No Volumes found to label, or no barcodes.
> 
> To me this looks like bacula treys to load slot 0 (that I thinck is 
> "moving slot") and not slot 1.

No, theres no try to load a tape. What is reported is the query for the 
slot which tape in drive 0 was loaded from.

The key here is "no barcodes".

Use the 'update slots scan' syntax. This is, by the way, described in 
the manual.

> So everything looks the same as before.
> 
>     There should also exist a query to show what Bacula thinks is loaded in
>     the autochanger. Just try the 'query' command.
> 
> I tryed 'query' , but on this I don't understand which to select I tryed 
> 10:

That's not the one that helps you. IIRC, in recent versions there is a 
query to list the volumes in the autochangers, as known to Bacula. If 
you don't have that one, and I really recall correctly, you're running 
an older version of Bacula. You can add the query to the query.sql file 
manually, if you want. It can be found in the cvs repository, for example.

Anyway, 'update slots scan' should make the volumes known to Bacula.

It might help you to reread the manual sections explaining the commands 
and pool and volume usage, too...

Arno

> *query
> Available queries:
>      1: List Job totals:
>      2: List up to 20 places where a File is saved regardless of the 
> directory:
>      3: List where the most recent copies of a file are saved:
>      4: List last 20 Full Backups for a Client:
>      5: List all backups for a Client after a specified time
>      6: List all backups for a Client
>      7: List Volume Attributes for a selected Volume:
>      8: List Volumes used by selected JobId:
>      9: List Volumes to Restore All Files:
>     10: List Pool Attributes for a selected Pool:
>     11: List total files/bytes by Job:
>     12: List total files/bytes by Volume:
>     13: List Files for a selected JobId:
>     14: List Jobs stored in a selected MediaId:
>     15: List Jobs stored for a given Volume name:
> Choose a query (1-15): 10
> Enter Pool name: Dracula-Full-Tape-Pool
> +---------+--------------+----------------+------------+-------------+-------------+
> | Recycle | VolRetention | VolUseDuration | MaxVolJobs | MaxVolFiles | 
> MaxVolBytes |
> +---------+--------------+----------------+------------+-------------+-------------+
> |       1 |   30,240,000 |          3,600 |          0 |           0 
> |           0 |
> +---------+--------------+----------------+------------+-------------+-------------+
>  
> 
> 
> But this does not say anything about available slots. 
> 
>     Hope this helps,
> 
> I also hope so, but i dos'n ...
> 
> 21-Feb 12:20 helsing-dir: Start Backup JobId 2881, 
> Job=Torvalds.2007-02-21_12.20.25
> 21-Feb 12:33 dracula-sd: Invalid slot=0 defined, cannot autoload Volume.
> 21-Feb 12:33 dracula-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 
> 21-Feb 12:33 dracula-sd: 3302 Autochanger "loaded drive 0", result: nothing 
> loaded.
> 21-Feb 12:33 dracula-sd: 3301 Issuing autochanger "loaded drive 0" command.
> 21-Feb 12:33 dracula-sd: 3302 Autochanger "loaded drive 0", result: nothing 
> loaded.
> 
> 21-Feb 12:33 dracula-sd: Invalid slot=0 defined, cannot autoload Volume.
> 21-Feb 12:33 dracula-sd: Please mount Volume "VOlUME-Dracula-Tape-2007.02.14" 
> on Storage Device "DLT8000-Dracula" (/dev/nst0) for Job 
> Torvalds.2007-02-21_12.20.25
> 21-Feb 12:21 helsing-dir: Bacula 1.38.11 (28Jun06): 21-Feb-2007 12:21:10
> 
> 
>      > Torvalds.2007-02-16_15.49.17
>      > 16-Feb 15:50 helsing-dir: Bacula 1.38.11 (28Jun06): 16-Feb-2007
>     15:50:25
>      >   JobId:                  2845
>      >   Job:                    Torvalds.2007-02-16_15.49.17
>      >   Backup Level:           Full
>      >
>      >   Client:                 "torvalds-fd"
>     i486-pc-linux-gnu,debian,testing/unstable
>      >   FileSet:                "Torvalds Set" 2007-02-06 11:52:19
>      >   Pool:                   "Dracula-Full-Tape-Pool"
>      >
>      >   Storage:                "Autochanger-Dracula"
>      >   Scheduled time:         16-Feb-2007 15:48:55
>      >   Start time:             16-Feb-2007 15:49:20
>      >   End time:               16-Feb-2007 15:50:25
>      >   Elapsed time:           1 min 5 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
>      >
>      >   Volume name(s):
>      >   Volume Session Id:      1
>      >   Volume Session Time:    1171637555
>      >   Last Volume Bytes:      0 (0 B)
>      >   Non-fatal FD errors:    0
>      >   SD Errors:              0
>      >   FD termination status:  Canceled
>      >
>      >   SD termination status:  Canceled
>      >   Termination:            Backup Canceled
>      >
>      > On 2/20/07, *Geir Asle Borgen* <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>      > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
>      >
>      >     I run bacula-1.38.11 on some Debian Sarge boxes, on one of them I
>      >     have a Sun L9 DLT8000 autochanger. Backing up to tape works and I
>      >     can run mtx-cahnger script manually, but when I try to run
>     backup to
>      >     the autochanger in sted of to the tape the mtx-changer script
>     will
>      >     not load tape. I suspect that it tries to load slot 0 in
>     stead of 1.
>      >     Any one that can help me on this? My bacula-sd is like this:
>      >
>      >     Storage {                             # definition of myself
>      >       Name = dracula-sd
>      >       SDPort = 9103                  # Director's port
>      >       WorkingDirectory = "/var/lib/bacula"
>      >       Pid Directory = "/var/run/bacula"
>      >       Maximum Concurrent Jobs = 20
>      >     }
>      >
>      >     Director {
>      >       Name = helsing-dir
>      >       Password = "some_password"
>      >     }
>      >
>      >     Device {
>      >       Name = FileStorage-Dracula
>      >       Media Type = File
>      >       Archive Device = /disks/DRACULA2/FileStorage-Dracula
>      >       LabelMedia = yes;                   # lets Bacula label
>     unlabeled
>      >     media
>      >       Random Access = Yes;
>      >       AutomaticMount = yes;               # when device opened,
>     read it
>      >       RemovableMedia = no;
>      >       AlwaysOpen = no;
>      >     }
>      >
>      >     Autochanger {
>      >       Name = Autochanger-Dracula
>      >       Device = DLT8000-Dracula
>      >       Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S
>     %a %d"
>      >       Changer Device = /dev/sg1
>      >     }
>      >
>      >     Device {
>      >       Name = DLT8000-Dracula
>      >       Drive Index = 0
>      >       Media Type = DLT8000-L9
>      >       Archive Device = /dev/nst0
>      >       AutomaticMount = yes;               # when device opened,
>     read it
>      >       AlwaysOpen = yes;
>      >       RemovableMedia = yes;
>      >       RandomAccess = no;
>      >       AutoChanger = yes
>      >       Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>      >       Label media = yes
>      >     }
>      >
>      >     Messages {
>      >       Name = Standard
>      >       director = helsing-dir = all
>      >     }
>      >
>      >     Parts of my bacula-dir is like this:
>      >
>      >     Director {                            # define myself
>      >       Name = helsing-dir
>      >       DIRport = 9101                # where we listen for UA
>     connections
>      >       QueryFile = "/etc/bacula/scripts/query.sql"
>      >       WorkingDirectory = "/var/lib/bacula"
>      >       PidDirectory = "/var/run/bacula"
>      >       Maximum Concurrent Jobs = 20
>      >       Password = "some_password"         # Console password
>      >       Messages = Daemon
>      >     }
>      >
>      >     # Dracula-Autochanger
>      >     Storage {
>      >       Name = Autochanger-Dracula
>      >       Maximum Concurrent Jobs = 1
>      >     # Do not use "localhost" here
>      >       Address = dracula.hrp.no <http://dracula.hrp.no>
>     <http://dracula.hrp.no>             #
>      >     N.B. Use a fully qualified name here
>      >       SDPort = 9103
>      >       Password = "some_password"
>      >       Device = Autochanger-Dracula
>      >       Media Type = DLT8000-L9
>      >       Autochanger = yes
>      >     }
>      >
>      >     # Dracula-Tape
>      >     Storage {
>      >       Name = Full-Tape-Dracula
>      >       Maximum Concurrent Jobs = 1
>      >     # Do not use "localhost" here
>      >       Address = dracula.hrp.no <http://dracula.hrp.no> <
>     http://dracula.hrp.no>             #
>      >     N.B. Use a fully qualified name here
>      >       SDPort = 9103
>      >       Password = "some_password"
>      >       Device = DLT8000-Dracula
>      >       Media Type = DLT8000-L9
>      >       Autochanger = yes
>      >     }
>      >
>      >     Pool {
>      >       Name = Dracula-Full-Tape-Pool
>      >       Recycle Oldest Volume = yes
>      >       Label Format =
>      >     "VOlUME-Dracula-Tape-${Year}.${Month:p/2/0/r}.${Day:p/2/0/r}.${
>      >     Hour:p/2/0/r}"
>      >       Pool Type = Backup
>      >       Volume Use Duration = 1h
>      >       Recycle = yes                      # Bacula can automatically
>      >     recycle Volumes
>      >       AutoPrune = yes                    # Prune expired volumes
>      >       Volume Retention = 350 days        # almost year
>      >       Accept Any Volume = yes            # write on any volume in
>     the pool
>      >     }
>      >
>      >     Job {
>      >       Name = "Torvalds"
>      >       JobDefs = "DefaultJob"
>      >       Client = torvalds-fd
>      >       Schedule = "NoRun"
>      >       FileSet = "Torvalds Set"
>      >       Storage = Autochanger-Dracula
>      >       Pool = Dracula-Full-Tape-Pool
>      >       Write Bootstrap = "/var/lib/bacula/Torvalds.bsr"
>      >     }
>      >
>      >     FileSet {
>      >       Name = "Torvalds Set"
>      >       Include {
>      >         Options {
>      >           compression=GZIP
>      >           signature = MD5
>      >           keepatime=yes
>      >         }
>      >         File = /disks/TORVALDS2
>      >       }
>      >     }
>      >
>      >     Client {
>      >       Name = torvalds-fd
>      >       Address = torvalds.hrp.no <http://torvalds.hrp.no>
>     <http://torvalds.hrp.no>
>      >       FDPort = 9102
>      >       Catalog = MyCatalog
>      >       Password = "some_password"    # password for FileDaemon
>      >       File Retention = 350 days          # almost a year
>      >       Job Retention = 350 days           # almost a year
>      >       AutoPrune = yes                     # Prune expired Jobs/Files
>      >     }
>      >
>      >
>      >
>      >     --
>      >     Phone: +47 69809853 +47 99521685 (o_  <><
>      >                                                           //\
>      >     ICQ: 48948625 MSM: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>    V_/_ i n u x
>      >     Registered Linux User # 171776 ( http://counter.li.org
>      >     <http://counter.li.org>)
>      >
>      >
>      >
>      >
>      > --
>      > Phone: +47 69809853 +47 99521685 (o_  <><
>      >                                                       //\
>      > ICQ: 48948625 MSM: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>     <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>    V_/_ i n u x
>      > Registered Linux User # 171776 (http://counter.li.org
>     <http://counter.li.org>)
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      >
>     -------------------------------------------------------------------------
>      > Take Surveys. Earn Cash. Influence the Future of IT
>      > Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>      > opinions on IT & business topics through brief surveys-and earn cash
>      >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>      >
>      >
>      >
>     ------------------------------------------------------------------------
>      >
>      > _______________________________________________
>      > Bacula-users mailing list
>      > Bacula-users@lists.sourceforge.net
>     <mailto:Bacula-users@lists.sourceforge.net>
>      > https://lists.sourceforge.net/lists/listinfo/bacula-users
>     <https://lists.sourceforge.net/lists/listinfo/bacula-users>
> 
>     --
>     IT-Service Lehmann                    [EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>
>     Arno Lehmann                  http://www.its-lehmann.de
> 
>     -------------------------------------------------------------------------
> 
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys-and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Bacula-users mailing list
>     Bacula-users@lists.sourceforge.net
>     <mailto:Bacula-users@lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/bacula-users
>     <https://lists.sourceforge.net/lists/listinfo/bacula-users>
> 
> 
> 
> 
> -- 
> Phone: +47 69809853 +47 99521685 (o_  <><
>                                                       //\
> ICQ: 48948625 MSM: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>    V_/_ i n u 
> x
> Registered Linux User # 171776 (http://counter.li.org)

-- 
IT-Service Lehmann                    [EMAIL PROTECTED]
Arno Lehmann                  http://www.its-lehmann.de

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to