Re: [Bacula-users] How to specify drive of Autochanger?
Op 20121116 om 07:37 schreef Wolfgang Denk: > John Drescher wrote: > > > > > However, no matter what I enter at the prompt "Enter autochanger > > > drive[0]:", the director will always send a command to access drive > > > index 0. > > > > Where do you get this prompt? I have never ever been asked this and I > > have had an autochanger at work since 2006 and I used it with bacula > > from the start since I was already using bacula for years before I got > > the changer.. > > It's when running a mount command on bconsole: > > This is the full output: > > *mount > The defined Storage resources are: > 1: File > 2: LTOLIB > 3: LTO3-0 > 4: LTO3-1 > 5: ltos_temp > 6: SLR100-0 > 7: SLR100-1 > 8: SLR100-2 > 9: DDS-3 > Select Storage resource (1-9): 2 > Connecting to Storage daemon LTOLIB at ltos.denx.de:9103 ... > Enter autochanger drive[0]: 1 Why '1'? With what does it match? With what _should_ it match? Below is told what is _wanted_ c.q. what is _desired_. > Enter autochanger slot: 25 > 3304 Issuing autochanger "load slot 25, drive 0" command. > 3305 Autochanger "load slot 25, drive 0", status is OK. > 3001 Mounted Volume: INC000L3 > 3001 Device ""LTO3-0" (/dev/tape/by-id/scsi-35000e11802947001-nst)" is > mounted with Volume "INC000L3" > > Note that already the "3304 Issuing autochanger "load slot 25, drive 0" > command." > is incorrect, it should have "drive 1" instead. I assume it is allready wrong before the 'Enter autochanger drive[0]:' prompt that John Drescher is warning about. I do read it as "Confirm autochanger drive[0]:" prompt. HtH Geert Stappers -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
Dear John Drescher, In message you wrote: > > > Where do you get this prompt? I have never ever been asked this and I > > have had an autochanger at work since 2006 and I used it with bacula > > from the start since I was already using bacula for years before I got > > the changer.. > > Although this could be because I use the autochanger in an unsupported > way. What I mean is in my bacula-dir.conf I have a device for the > autochanger and devices for each drive instead of just the autochanger > device. I did the same (to test the drives individualy, to make sure these are actually available and working); see the full configuration I posted before here: http://article.gmane.org/gmane.comp.sysutils.backup.bacula.general/72107 BTW - I'm running on Fedora 17, i. e. version 5.2.11 : bacula-common-5.2.11-3.fc17.x86_64 bacula-console-5.2.11-3.fc17.x86_64 bacula-console-bat-5.2.11-3.fc17.x86_64 bacula-director-5.2.11-3.fc17.x86_64 bacula-docs-5.2.11-1.fc17.noarch bacula-libs-5.2.11-3.fc17.x86_64 bacula-libs-sql-5.2.11-3.fc17.x86_64 bacula-storage-5.2.11-3.fc17.x86_64 Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Never underestimate the bandwidth of a station wagon full of tapes. -- Dr. Warren Jackson, Director, UTCS -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
Dear John Drescher, In message you wrote: > > > However, no matter what I enter at the prompt "Enter autochanger > > drive[0]:", the director will always send a command to access drive > > index 0. > > Where do you get this prompt? I have never ever been asked this and I > have had an autochanger at work since 2006 and I used it with bacula > from the start since I was already using bacula for years before I got > the changer.. It's when running a mount command on bconsole: This is the full output: *mount The defined Storage resources are: 1: File 2: LTOLIB 3: LTO3-0 4: LTO3-1 5: ltos_temp 6: SLR100-0 7: SLR100-1 8: SLR100-2 9: DDS-3 Select Storage resource (1-9): 2 Connecting to Storage daemon LTOLIB at ltos.denx.de:9103 ... Enter autochanger drive[0]: 1 Enter autochanger slot: 25 3304 Issuing autochanger "load slot 25, drive 0" command. 3305 Autochanger "load slot 25, drive 0", status is OK. 3001 Mounted Volume: INC000L3 3001 Device ""LTO3-0" (/dev/tape/by-id/scsi-35000e11802947001-nst)" is mounted with Volume "INC000L3" Note that already the "3304 Issuing autochanger "load slot 25, drive 0" command." is incorrect, it should have "drive 1" instead. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de An expert is a person who avoids the small errors while sweeping on to the grand fallacy. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Use modify time, not access time
> You should include the Job {} in question, and any JobDefs in use. > > I suspect you are doing accurate backups. > That I switched off already; may have been the cause. I always got excessive incremental backup sizes, 500 MB while expecting 10-50 MB. Issue at hand is that I moved a mailbox, then moved it back (original location) and it's still being backuped. That's not good. Wouter. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Bacula tapes marked FULL too early - VolBytes too low
On Thu, Nov 15, 2012 at 8:07 PM, UserMOP wrote: > Hello, > > First time poster, love the community, been reading it for years but never > had an issue worth posting, until today. :) > > Using Bacula Version: 5.0.1 (24 February 2010). > > Our brand new LTO3 tapes are filling up too quick. Tapes that normally take > 420GB are full at 320GB. This is a major concern for us. Please advise as to > what may be causing this? > Dirty or Bad tape drive or bad media are the most common causes. Remember bacula will write to a tape until the drive returns the write did not succeed and at that point bacula assumes that the tape is full. Bacula does not know the difference between tape write error or a full tape. > Example: > > | MediaId | VolumeName | VolStatus | Enabled | VolBytes| VolFiles | > VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten > | > +-++---+-+-+--++-+--+---+---+-+ > | 1 | Tape 1 | Full | 1 | 325,470,071,808 | 326 | > 31,536,000,000 | 0 |1 | 1 | LTO3 | 2012-11-16 12:26:42 > | > > All our tapes show VolStatus like this, brand new or used only ones (which > was 420GB Full) > > I am sorry I do not know how to make this selection a quote. > > Thankyou in advance. > :P > > +-- > |This was sent by goran@momento.com.au via Backup Central. > |Forward SPAM to ab...@backupcentral.com. > +-- > > > > -- > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- John M. Drescher -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
On Thu, Nov 15, 2012 at 11:49 PM, John Drescher wrote: > On Thu, Nov 15, 2012 at 2:10 PM, Wolfgang Denk wrote: >> Dear Dan, >> >> In message you wrote: >>> >>> > I must be missing something very basic. I can address both drives in >>> > my autoloader directly. But when using the autoloader device, it >>> > always grabs device 0 only, like this: >>> > >>> > Storage server xxx - bacula-sd.conf: >>> > >>> > Autochanger { >>> > Name = Autochanger >>> > Device = LTO3-0 >>> > Device = LTO3-1 >>> > Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" >>> >>> I would start by debugging this script: /usr/libexec/bacula/mtx-changer >>> >>> Make sure it is passing the correct values to the robot. >> >> This works like a charm. When I use the single drives directly (i. e. >> through the names "LTO3-0" resp. "LTO3-1", I can see that the last >> argument (%d) receives the correct drive index, and this does exactly >> what it is supposed to do. >> >> However, no matter what I enter at the prompt "Enter autochanger >> drive[0]:", the director will always send a command to access drive >> index 0. > > Where do you get this prompt? I have never ever been asked this and I > have had an autochanger at work since 2006 and I used it with bacula > from the start since I was already using bacula for years before I got > the changer.. Although this could be because I use the autochanger in an unsupported way. What I mean is in my bacula-dir.conf I have a device for the autochanger and devices for each drive instead of just the autochanger device. John -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
On Thu, Nov 15, 2012 at 2:10 PM, Wolfgang Denk wrote: > Dear Dan, > > In message you wrote: >> >> > I must be missing something very basic. I can address both drives in >> > my autoloader directly. But when using the autoloader device, it >> > always grabs device 0 only, like this: >> > >> > Storage server xxx - bacula-sd.conf: >> > >> > Autochanger { >> > Name = Autochanger >> > Device = LTO3-0 >> > Device = LTO3-1 >> > Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" >> >> I would start by debugging this script: /usr/libexec/bacula/mtx-changer >> >> Make sure it is passing the correct values to the robot. > > This works like a charm. When I use the single drives directly (i. e. > through the names "LTO3-0" resp. "LTO3-1", I can see that the last > argument (%d) receives the correct drive index, and this does exactly > what it is supposed to do. > > However, no matter what I enter at the prompt "Enter autochanger > drive[0]:", the director will always send a command to access drive > index 0. Where do you get this prompt? I have never ever been asked this and I have had an autochanger at work since 2006 and I used it with bacula from the start since I was already using bacula for years before I got the changer.. John -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
Dear Josh, In message <50a550fc.30...@pvct.com> you wrote: > > > Storage server xxx - bacula-sd.conf: > > > > Autochanger { > >Name = Autochanger > >Device = LTO3-0 > >Device = LTO3-1 > >Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" > >Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_00DE64100465_LL0 > > } > > Try replacing the two Device= lines with one line: > Device = LT03-0,LT02-1 Thanks for the idea - done, but unfortunately this does not change the behaviour in any way. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Every little picofarad has a nanohenry all its own. - Don Vonada -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Use modify time, not access time
On Fri, 2012-11-16 at 15:46 +1100, Gary R, Schmidt wrote: > On 16.11.2012 13:52, Wouter van Marle wrote: > [SNIP] > > Result: yesterday I moved a big mail folder with subfolders, causing > > the > You *moved* a directory, and you are surprised that the files in it are > being backed up? Sorry I was incomplete. Files were accidentally moved, and subsequently moved back to the exact original location. Wouter. > > Bacula has never seen these files in that location before, if it > *didn't* back them up that would be a total failure. > > Cheers, > GaryB-) > > > -- > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from $795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > ___ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Use modify time, not access time
On Nov 15, 2012, at 9:52 PM, Wouter van Marle wrote: > Hi, > > I have a big problem with Bacula and the backup of my Cyrus mail store: > it is backing up way too much. > > When doing incremental it's supposed to look at modify time (which for > many mails - one file per e-mail - is months or years past), but it > appears to look at the access time instead. > > Result: yesterday I moved a big mail folder with subfolders, causing the > access time but not the modify time of all contents to change, and now > Bacula is backing up everything. Looking at the restore function in > bconsole, I see the file time given is the access time, not the modify > time. > > When doing `ls -la` I see the original modify time, long time ago. > When doing `ls -lu` I see the access time, which is the time these mail > boxes were moved (yesterday). > And when doing `dir` in `bconsole` the time that I see is the access > time; not the modify time! > > How to stop this unnecessary backup? It's annoying and wasting disk > space. You should include the Job {} in question, and any JobDefs in use. I suspect you are doing accurate backups. -- Dan Langille - http://langille.org -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Use modify time, not access time
On 16.11.2012 13:52, Wouter van Marle wrote: [SNIP] > Result: yesterday I moved a big mail folder with subfolders, causing > the You *moved* a directory, and you are surprised that the files in it are being backed up? Bacula has never seen these files in that location before, if it *didn't* back them up that would be a total failure. Cheers, GaryB-) -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Bacula tapes marked FULL too early - VolBytes too low
Hello, First time poster, love the community, been reading it for years but never had an issue worth posting, until today. :) Using Bacula Version: 5.0.1 (24 February 2010). Our brand new LTO3 tapes are filling up too quick. Tapes that normally take 420GB are full at 320GB. This is a major concern for us. Please advise as to what may be causing this? Example: | MediaId | VolumeName | VolStatus | Enabled | VolBytes| VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | +-++---+-+-+--++-+--+---+---+-+ | 1 | Tape 1 | Full | 1 | 325,470,071,808 | 326 | 31,536,000,000 | 0 |1 | 1 | LTO3 | 2012-11-16 12:26:42 | All our tapes show VolStatus like this, brand new or used only ones (which was 420GB Full) I am sorry I do not know how to make this selection a quote. Thankyou in advance. :P +-- |This was sent by goran@momento.com.au via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Use modify time, not access time
Hi, I have a big problem with Bacula and the backup of my Cyrus mail store: it is backing up way too much. When doing incremental it's supposed to look at modify time (which for many mails - one file per e-mail - is months or years past), but it appears to look at the access time instead. Result: yesterday I moved a big mail folder with subfolders, causing the access time but not the modify time of all contents to change, and now Bacula is backing up everything. Looking at the restore function in bconsole, I see the file time given is the access time, not the modify time. When doing `ls -la` I see the original modify time, long time ago. When doing `ls -lu` I see the access time, which is the time these mail boxes were moved (yesterday). And when doing `dir` in `bconsole` the time that I see is the access time; not the modify time! How to stop this unnecessary backup? It's annoying and wasting disk space. Wouter. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
On 11/15/2012 2:27 PM, Wolfgang Denk wrote: > ... > > > Storage server xxx - bacula-sd.conf: > > Autochanger { >Name = Autochanger >Device = LTO3-0 >Device = LTO3-1 >Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" >Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_00DE64100465_LL0 > } Try replacing the two Device= lines with one line: Device = LT03-0,LT02-1 -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
[Bacula-users] Delete Backup files from Scratch pool
Hi there Bacula community, I have noticed a growing number of files appearing in my Scratch pool. The files are also marked as purged. It would be safe to delete the files from the file system at this point. My question is: Is there an easy way to delete these backup files in my scratch pool since they are no longer needed? Thanks. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Copy + Migrate to different ppols - was: Tape-to-tape copy job?
Dear Adrian, In message <2012165221.ga25...@r2d2.s.lihas.de> you wrote: > > On Sun, Nov 11, 2012 at 03:05:12PM +0100, Wolfgang Denk wrote: > > OK, the task is: > > 1) Backup some jobs to pool DISK > > 2) Copy these jobs from pool DISK to pool ARCHIVE > > 3) Migrate the same jobs from pool DISK to pool TAPE > > I have the very same setup. > My solution had been to write a job that replaces the NextPool > statement and reloads bacula. I can give you the script. Thnaks, but this appears to be quite fragile - it will break as soon as two such jobs which need different settings happen to run simultaneously for one reason or another. > However, there seems to be a better solution, someone posted it on > this list a few months ago: > Use a dummy-Pool with the correct NextPool statement, select the jobs to > be copied by e.g. jobid (I use an sql select there) and they will still > be copied, even if they are in some other pool. The original post is at > http://thread.gmane.org/gmane.comp.sysutils.backup.bacula.devel/14084 Thanks. This is the way to go, then. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de panic: kernel trap (ignored) -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
Dear Dan, In message you wrote: > > > I must be missing something very basic. I can address both drives in > > my autoloader directly. But when using the autoloader device, it > > always grabs device 0 only, like this: > > > > Storage server xxx - bacula-sd.conf: > > > > Autochanger { > > Name = Autochanger > > Device = LTO3-0 > > Device = LTO3-1 > > Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" > > I would start by debugging this script: /usr/libexec/bacula/mtx-changer > > Make sure it is passing the correct values to the robot. This works like a charm. When I use the single drives directly (i. e. through the names "LTO3-0" resp. "LTO3-1", I can see that the last argument (%d) receives the correct drive index, and this does exactly what it is supposed to do. However, no matter what I enter at the prompt "Enter autochanger drive[0]:", the director will always send a command to access drive index 0. > FYI here is what I wrote up about debugging mtx-changer. Thanks, but this is not a mtx-changer problem - that part works. It's some problem with the director (or more likely with it's configuration) that causes it to always use drive index 0 only. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de GUIs are virtually useless. Learn tools. They're configurable, scriptable, automatable, cron-able, interoperable, etc. We don't need no brain-dead winslurping monolithic claptrap. -- Tom Christiansen in 371140df@csnews -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
On Nov 15, 2012, at 2:27 PM, Wolfgang Denk wrote: > Dear John, > > In message > you > wrote: >> >> Yes. The robot works on all 3 devices. > > I must be missing something very basic. I can address both drives in > my autoloader directly. But when using the autoloader device, it > always grabs device 0 only, like this: > > Storage server xxx - bacula-sd.conf: > > Autochanger { > Name = Autochanger > Device = LTO3-0 > Device = LTO3-1 > Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" I would start by debugging this script: /usr/libexec/bacula/mtx-changer Make sure it is passing the correct values to the robot. FYI here is what I wrote up about debugging mtx-changer. http://www.freebsddiary.org/tape-library.php (look for: Does mtx-changer work?) -- Dan Langille - http://langille.org -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] How to specify drive of Autochanger?
Dear John, In message you wrote: > > Yes. The robot works on all 3 devices. I must be missing something very basic. I can address both drives in my autoloader directly. But when using the autoloader device, it always grabs device 0 only, like this: *mount The defined Storage resources are: 1: File 2: LTOLIB 3: LTO3-0 4: LTO3-1 5: ltos_temp 6: SLR100-0 7: SLR100-1 8: SLR100-2 9: DDS-3 Select Storage resource (1-9): 2 Connecting to Storage daemon LTOLIB at ltos.denx.de:9103 ... Enter autochanger drive[0]: 1 Enter autochanger slot: 25 3304 Issuing autochanger "load slot 25, drive 0" command. 3305 Autochanger "load slot 25, drive 0", status is OK. 3001 Mounted Volume: INC000L3 3001 Device ""LTO3-0" (/dev/tape/by-id/scsi-35000e11802947001-nst)" is mounted with Volume "INC000L3" I select drive 1, but the mount command operates on drive 0 instead. director - bacula-dir.conf : # Definition of LTO(3) autoloader Storage { Name = LTOLIB Address = xxx SDPort= 9103 Password = yyy Device= LTO3-0, LTO3-1 Media Type= LTO-3 Autochanger = yes Maximum Concurrent Jobs = 6 } # Definition of LTO(3) drive #0 in the autoloader Storage { Name = LTO3-0 Address = xxx SDPort= 9103 Password = yyy Device= LTO3-0 Media Type= LTO-3 Maximum Concurrent Jobs = 6 } # Definition of LTO(3) drive #1 in the autoloader Storage { Name = LTO3-1 Address = xxx SDPort= 9103 Password = yyy Device= LTO3-1 Media Type= LTO-3 Maximum Concurrent Jobs = 6 } Storage server xxx - bacula-sd.conf: Autochanger { Name = Autochanger Device = LTO3-0 Device = LTO3-1 Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_00DE64100465_LL0 } Device { Name = LTO3-0 Media Type = LTO-3 Drive Index = 0 Archive Device = /dev/tape/by-id/scsi-35000e11802947001-nst AutomaticMount = yes; AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 5GB Maximum Block Size = 512K Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_00DE64100465_LL0 AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" # If you have smartctl, enable this, it has more info than tapeinfo # Alert Command = "sh -c 'smartctl -H -l error %c'" # Spool Data to disk before writing to tape Spool Directory = /backup/spool Maximum Spool Size = 5120GB Maximum Job Spool Size = 5120GB } Device { Name = LTO3-1 Media Type = LTO-3 Drive Index = 1 Archive Device = /dev/tape/by-id/scsi-35000e11802947004-nst AutomaticMount = yes; AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no; Maximum File Size = 5GB Maximum Block Size = 512K Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d" Changer Device = /dev/tape/by-id/scsi-1BDT_FlexStor_II_00DE64100465_LL0 AutoChanger = yes # Enable the Alert command only if you have the mtx package loaded # Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" # If you have smartctl, enable this, it has more info than tapeinfo Alert Command = "sh -c 'smartctl -H -l error %c'" # Spool Data to disk before writing to tape Spool Directory = /backup/spool Maximum Spool Size = 5120GB Maximum Job Spool Size = 5120GB } Any attempt to access storage "LTOLIB" will always go to drive 0 (aka "LTO3-0" = /dev/tape/by-id/scsi-35000e11802947001-nst) only. What am I missing? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de As a general rule, the freedom of any people can be judged by the volume of their laughter. -- Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users