Hello,

I upgraded from 1.38.0 to 1.38.11 (28 June 2006), all running on FC4.

Now the 'update slots' command does not recognize the number of slots in my 
autochanger [1] anymore. Here is the console conversation:

    *update slots storage=tape1
    Enter autochanger drive[0]: 0
    Connecting to Storage daemon tape1 at dd-lx-backup.dd.net-linx:9103 ...
    3306 Issuing autochanger "slots" command.
    Device "changer1" has 0 slots.
    No slots in changer to scan.

the mtx-changer script however, seems to work as expected:

    # /etc/bacula/mtx-changer /dev/sg5 slots 0 /dev/nst0 0
    30
    #

    # /etc/bacula/mtx-changer /dev/sg5 list 0 /dev/nst0 0
    1:001154L2
    2:001153L2
    3:001152L2
    [...]
    27:001157L2
    28:001156L2
    #

I read somewhere in the manual manual (or list?) that the 'slots' command 
should actually return the number of slots - *not* print it. The released 
mtx-changer script, however, *does* print this number. I modified it to 
return the number of slots but that did not have any effect on the 'update 
slots' console command.

Am I doing something wrong here?

thanks and regards,
Stephan

[1] the autochanger setup is as follows:

Autochanger {
    Name            = "changer1"
    Device          = tape1, tape2
    Changer Device  = /dev/sg5      # why 5? Don't know...
    Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Device {
    Name            = tape1
    Autochanger     = yes

    Media Type      = LTO
    Archive Device  = /dev/nst0
    Drive Index     = 0

    Removable Media = yes
    Automatic Mount = yes
    Always Open     = yes

    Spool Directory        = /u01/bacula-spool
    Maximum Job Spool Size = 100000000000
}


Device {
    Name            = tape2
    Autochanger     = yes

    Media Type      = LTO
    Archive Device  = /dev/nst1
    Drive Index     = 1

    Automatic Mount = yes
    Always Open     = yes
    Removable Media = yes

    Spool Directory        = /u01/bacula-spool
    Maximum Job Spool Size = 100000000000
}

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