On Tuesday 10 March 2009 20:16:41 Tomasz Westrych wrote:
> Thanks Kern for advice.
>
> I was able to find out where the problem was.

Great.

>
> For each Autochanger with one drive only Drive Index should = 0.

Hmmm. Yes, I hadn't noticed that.  Pretty important :-)

Regards,

Kern

>
> Regards,
>
> Tomasz
>
> -----Wiadomość oryginalna-----
> Od: Kern Sibbald [mailto:k...@sibbald.com]
> Wysłano: 9 marca 2009 16:32
> Do: bacula-devel@lists.sourceforge.net
> DW: Tomasz Westrych
> Temat: Re: [Bacula-devel] Device not found - problem
>
> I suggest you turn on debug level say 200 or 400 in the storage daemon.
> That will give you a lot more information on why it is failing (probably
> permissions problems).
>
> Regards,
>
> Kern
>
> On Monday 09 March 2009 08:52:27 Tomasz Westrych wrote:
> > Hi,
> >
> > I've posted alredy on Bacula-user list but have no reply yet so mabye
> > some of you can look at my config and tell if there is some mistake.
> >
> > We use serwer_bacula Version: 2.5.12 (07 October 2008).
> >
> > Problem is with autochanger and mounting volumes, when I want to mount
> > volumes with bconsole I get "Device not found or could not be opened".
> > I have 4 drives and problem is with 4: VTS-Robot_arch  5:
> > VTS-Robot_arch2. When I start backup job with 4: VTS-Robot_arch or 5:
> > VTS-Robot_arch2 it works fine autochanger loads volumes, mount and
> > umounts etc.
> >
> > Manualy mounting is impossible.
> >
> > *mo
> > The defined Storage resources are:
> >      1: File
> >      2: VTS-Robot
> >      3: VTS-Robot2
> >      4: VTS-Robot_arch
> >      5: VTS-Robot_arch2
> > Select Storage resource (1-5): 4
> > Enter autochanger slot: 0
> > 3999 Device "robotarch" not found or could not be opened.
> >
> > *mo
> > Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog"
> > The defined Storage resources are:
> >      1: File
> >      2: VTS-Robot
> >      3: VTS-Robot2
> >      4: VTS-Robot_arch
> >      5: VTS-Robot_arch2
> > Select Storage resource (1-5): 5
> > Connecting to Storage daemon VTS-Robot_arch2 at serwer_bacula:9103 ...
> > Enter autochanger slot: 1
> > 3999 Device "robotarchdrugi" not found or could not be opened.
> >
> >
> >
> > bacula-sd.conf:
> >
> > Autochanger {
> >   Name = robot
> >   Device = Drive-1
> >   Changer Command = "/etc/bacula/mtx_vts.pl %c %o %S %a %d"
> >   Changer Device = 126.177.44.30:50200 }
> >
> > Autochanger {
> >   Name = robotarch
> >   Device = Drive-2
> >   Changer Command = "/etc/bacula/mtx_vts.pl %c %o %S %a %d"
> >   Changer Device = 126.177.44.30:50200 }
> >
> >
> > Device {
> >   Name = Drive-1                      #
> >   Drive Index = 0
> >   Media Type = VTS
> >   Archive Device = /dev/tape1
> >   AutomaticMount = no;               # when device opened, read it
> >   AlwaysOpen = yes;
> >   RemovableMedia = yes;
> >   RandomAccess = no;
> >   AutoChanger = yes;
> >   LabelMedia = yes;
> >   Label Type = IBM;
> >   Hardware End of Medium  = no
> >   BSF at EOM              = yes
> >   Backward Space Record   = no
> >   Fast Forward Space File = no
> >   TWO EOF                 = yes
> >   Use MTIOCGET                = no
> >   Maximum Changer Wait = 1h
> > }
> >
> > Device {
> >   Name = Drive-2
> >   Drive Index = 1
> >   Media Type = VTS
> >   Archive Device = /dev/tape2
> >   AutomaticMount = no;               # when device opened, read it
> >   AlwaysOpen = yes;
> >   RemovableMedia = yes;
> >   RandomAccess = no;
> >   AutoChanger = yes;
> >   LabelMedia = yes;
> >   Label Type = IBM
> >   Hardware End of Medium  = no
> >   BSF at EOM              = yes
> >   Backward Space Record   = no
> >   Fast Forward Space File = no
> >   TWO EOF                 = yes
> >   Use MTIOCGET                = no
> >   Maximum Changer Wait = 1h
> > }
> >
> > Autochanger {
> >   Name = robotdrugi
> >   Device = Drive-3
> >   Changer Command = "/etc/bacula/mtx_vts.pl %c %o %S %a %d"
> >   Changer Device = 126.177.44.30:50400
> > }
> >
> > Autochanger {
> >   Name = robotarchdrugi
> >   Device = Drive-4
> >   Changer Command = "/etc/bacula/mtx_vts.pl %c %o %S %a %d"
> >   Changer Device = 126.177.44.30:50400
> > }
> >
> >
> > Device {
> >   Name = Drive-3                    #
> >   Drive Index = 0
> >   Media Type = VTS2
> >   Archive Device = /dev/tape3
> >   AutomaticMount = no;               # when device opened, read it
> >   AlwaysOpen = yes;
> >   RemovableMedia = yes;
> >   RandomAccess = no;
> >   LabelMedia = yes;
> >   AutoChanger = yes
> >   Label Type = IBM
> >   Hardware End of Medium  = no
> >   BSF at EOM              = yes
> >   Backward Space Record   = no
> >   Fast Forward Space File = no
> >   TWO EOF                 = yes
> >   Use MTIOCGET                = no
> >   Maximum Changer Wait = 1h
> > }
> >
> > Device {
> >   Name = Drive-4
> >   Drive Index = 1
> >   Media Type = VTS2
> >   Archive Device = /dev/tape4
> >   AutomaticMount = no;               # when device opened, read it
> >   AlwaysOpen = yes;
> >   RemovableMedia = yes;
> >   RandomAccess = no;
> >   LabelMedia = yes;
> >   AutoChanger = yes
> >   Label Type = IBM
> >   Hardware End of Medium  = no
> >   BSF at EOM              = yes
> >   Backward Space Record   = no
> >   Fast Forward Space File = no
> >   TWO EOF                 = yes
> >   Use MTIOCGET                = no
> >   Maximum Changer Wait = 1h
> > }
> >
> >
> > bacula-dir.cfg:
> >
> > Storage {
> >  Name = VTS-Robot
> >  Address = serwer_bacula
> >  SDPort = 9103
> >  Password = "xxx"
> >  Device = robot
> >  Media Type = VTS
> >  Autochanger = yes                   # enable for autochanger device
> > }
> >
> > Storage {
> >  Name = VTS-Robot2
> >  Address = serwer_bacula
> >  SDPort = 9103
> >  Password = "xxx"
> >  Device = robotdrugi
> >  Media Type = VTS2
> >  Autochanger = yes             # enable for autochanger device
> > }
> >
> > Storage {
> >  Name = VTS-Robot_arch
> >  Address = serwer_bacula
> >  SDPort = 9103
> >  Password = "xxx"
> >  Device = robotarch
> >  Media Type = VTS
> >  Autochanger = yes
> > }
> >
> > Storage {
> >  Name = VTS-Robot_arch2
> >  Address = serwer_bacula
> >  SDPort = 9103
> >  Password = "xxx"
> >  Device = robotarchdrugi
> >  Media Type = VTS2
> >  Autochanger = yes
> > }
> >
> > # Default pool definition
> > Pool {
> >   Name = VTS
> >   Pool Type = Backup
> >   Maximum Volume Jobs = 1
> >   Recycle = yes                       # Bacula can automatically recycle
> > Volumes AutoPrune = yes                     # Prune expired volumes
> >   Volume Retention = 14 days
> >   Label Format = "Y0"
> > }
> >
> > # Default pool definition
> > Pool {
> >   Name = VTS2
> >   Pool Type = Backup
> >   Maximum Volume Jobs = 1
> >   Recycle = yes                       # Bacula can automatically recycle
> > Volumes AutoPrune = yes                     # Prune expired volumes
> >   Volume Retention = 14 days
> >   Label Format = "Y5"
> > }
> >
> > # Scratch pool definition
> > Pool {
> >   Name = Scratch
> >   Pool Type = Backup
> > }
> >
> >
> > # Archive pool definition
> >
> > Pool {
> >   Name = VTS1ARCH
> >   Pool Type = Backup
> >   Maximum Volume Jobs = 1
> >   Recycle = yes                       # Bacula can automatically recycle
> > Volumes AutoPrune = yes                     # Prune expired volumes
> >   Next Pool = VTS2ARCH
> >   Storage = VTS-Robot_arch
> >   Volume Retention = 730 days
> > }
> >
> > # Archive pool definition
> > Pool {
> >   Name = VTS2ARCH
> >   Pool Type = Backup
> >   Maximum Volume Jobs = 1
> >   Recycle = yes                       # Bacula can automatically recycle
> > Volumes AutoPrune = yes                     # Prune expired volumes
> >   Storage = VTS-Robot_arch2
> >   Volume Retention = 730 days
> > }
> >
> >
> > Thanks,
> >
> > Tomasz
> >
> >
> > ----------------------------------------------------------------------
> > Program tylko dla graczy komputerowych!
> > Ogladaj >>> http://link.interia.pl/f207f
>
> ---------------------------------------------------------------------------
>
> >--- Open Source Business Conference (OSBC), March 24-25, 2009, San
> > Francisco, CA -OSBC tackles the biggest issue in open source: Open
>
> Sourcing
>
> > the Enterprise -Strategies to boost innovation and cut costs with open
> > source participation -Receive a $600 discount off the registration fee
>
> with
>
> > the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
> > _______________________________________________
> > Bacula-devel mailing list
> > Bacula-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-devel
>
> ----------------------------------------------------------------------
> "Teraz gry" - program dla prawdziwych graczy! >>>
> http://link.interia.pl/f2080
>
>
> ---------------------------------------------------------------------------
>--- _______________________________________________
> Bacula-devel mailing list
> Bacula-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-devel



------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to