On Jan 11, 2013, at 3:28 PM, Jonathan Horne wrote: > Super happy! Data is writing to tape! > > Interestingly, this is what I see at the console, with a job based on dan's > example from his website, using SQL query to pick out jobs from a specific > pool. > > Running Jobs: > Console connected at 11-Jan-13 14:02 > JobId Level Name Status > ====================================================================== > 271 Full ArchiveMonthlyToTape.2013-01-11_14.03.42_06 is running > 272 Full D0LPPB021_System_Backup.2013-01-11_14.03.42_07 is running > > > When I submit the ArchiveMonthlyToTape job to run, both of these 2 jobid's > pop up. I can see that the monthly filestore is open, and so far there is > just one file in the pool (only 1 monthly backup has run since I built this > bacula system). > > [root@d0lppb021 ~]# lsof|grep /opt/backups/ > bacula-sd 7159 root 5r REG 253,2 48025626350 > 20 /opt/backups/D0LPPB021-MNTH0011 > > the file is not growing, so I know its not writing (ie, not d0lppb021 is not > backing up). > > Yep, and while I was writing this, I got this: > > Terminated Jobs: > JobId Level Files Bytes Status Finished Name > ==================================================================== > 272 Full 178,867 42.07 G OK 11-Jan-13 14:20 > D0LPPB021_System_Backup > 271 Full 178,867 42.07 G OK 11-Jan-13 14:20 > ArchiveMonthlyToTape > > So can someone explalin to me what im seeing here? Why did the copy job kick > off 2 job ids?
That is normal. Always happens. I recall it was mentioned recently this list. > > -----Original Message----- > From: Jonathan Horne [mailto:jho...@skopos.us] > Sent: Friday, January 11, 2013 11:14 AM > To: Dan Langille; lst_ho...@kwsoft.de > Cc: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] getting my tape drive online > > -----Original Message----- > From: Dan Langille [mailto:d...@langille.org] > Sent: Friday, January 11, 2013 10:17 AM > To: lst_ho...@kwsoft.de > Cc: bacula-users@lists.sourceforge.net > Subject: Re: [Bacula-users] getting my tape drive online > > > On Jan 11, 2013, at 3:45 AM, lst_ho...@kwsoft.de wrote: > >> >> Zitat von Jonathan Horne <jho...@skopos.us>: >> >>> My drive appears to be working correctly, and the devices I poll here >>> correspond to configurations I use in my config file. Tests all seem >>> fine (to my layman's observation), but in practice actual commands >>> are failing. >> >> Have you also checked as user Bacula is running as? Maybe some missing >> permission on a script/directory? > > In my experience, this is likely the problem. In the URLs I pasted, you can > see how I tested and correctly those exact situations. > > -- > Dan Langille - http://langille.org > > > OK, Dan was right, further experimentation was required. Progress has been > made. > > First, I added bacula to tape group, based on what I see here. > > [root@d0lppb021 html]# ls -la /dev/sg6 > crw-rw---- 1 root tape 21, 6 Jan 8 16:03 /dev/sg6 > [root@d0lppb021 html]# ls -la /dev/nst1 /dev/nst1 > crw-rw---- 1 root tape 9, 129 Jan 8 16:03 /dev/nst1 > crw-rw---- 1 root tape 9, 129 Jan 8 16:03 /dev/nst1 > > then I change mtx.log so that bacula can access and write to it. I didn't at > first believe this was necessary, as bacula processes are running as root > (shown by ps command), but that doesn't mean that child processes might not > be forked as bacula user. I don't know, so I humor the concept. It seems to > have helped. > > [root@d0lppb021 html]# ls -la /var/spool/bacula/mtx.log > -rw-rw-r-- 1 root bacula 133794 Jan 11 11:07 /var/spool/bacula/mtx.log > > After the above changes, I now I have different output from the label > barcodes command: > > *label barcodes > Automatically selected Catalog: MyCatalog Using Catalog "MyCatalog" > The defined Storage resources are: > 1: File > 2: PV-TL4000 > Select Storage resource (1-2): 2 > Enter autochanger drive[0]: > Connecting to Storage daemon PV-TL4000 at d0lppb021.skopos.me:9103 ... > 3306 Issuing autochanger "slots" command. > Device "PV-TL4000" has 47 slots. > Connecting to Storage daemon PV-TL4000 at d0lppb021.skopos.me:9103 ... > 3306 Issuing autochanger "list" command. > The following Volumes will be labeled: > Slot Volume > ============== > 1 SK1004L3 > 2 SK1006L3 > 3 SK1009L3 > Do you want to label these Volumes? (yes|no): yes Defined Pools: > 1: Default > 2: Scratch > 3: YearlyBackups > 4: MonthlyBackups > 5: FullBackups > 6: IncrementalBackups > 7: DifferentialBackups > 8: TapeArchiveFullBackups > Select the Pool (1-8): 8 > Connecting to Storage daemon PV-TL4000 at d0lppb021.skopos.me:9103 ... > Sending label command for Volume "SK1004L3" Slot 1 ... > 3307 Issuing autochanger "unload slot 3, drive 0" command. > 3304 Issuing autochanger "load slot 1, drive 0" command. > 3305 Autochanger "load slot 1, drive 0", status is OK. > 3920 Cannot label Volume because it is already labeled: "SK1004L3" <---- I > didn't get this before Label command failed for Volume SK1004L3. > Sending label command for Volume "SK1006L3" Slot 2 ... > 3307 Issuing autochanger "unload slot 1, drive 0" command. > 3304 Issuing autochanger "load slot 2, drive 0" command. > 3305 Autochanger "load slot 2, drive 0", status is OK. > 3920 Cannot label Volume because it is already labeled: "SK1006L3" <---- I > didn't get this before Label command failed for Volume SK1006L3. > Sending label command for Volume "SK1009L3" Slot 3 ... > 3307 Issuing autochanger "unload slot 2, drive 0" command. > 3304 Issuing autochanger "load slot 3, drive 0" command. > 3305 Autochanger "load slot 3, drive 0", status is OK. > 3920 Cannot label Volume because it is already labeled: "SK1009L3" <---- I > didn't get this before Label command failed for Volume SK1009L3. > * > > So things are looking much better now, I think I just need to figure out how > to wipe those tapes, and im GTG. > > Thanks for the advice everyone! > jonathan > > ________________________________ > This is a PRIVATE message. If you are not the intended recipient, please > delete without copying and kindly advise us by e-mail of the mistake in > delivery. NOTE: Regardless of content, this e-mail shall not operate to bind > SKOPOS to any order or other contract unless pursuant to explicit written > agreement or government initiative expressly permitting the use of e-mail for > such purpose. > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and much more. > Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > > ________________________________ > This is a PRIVATE message. If you are not the intended recipient, please > delete without copying and kindly advise us by e-mail of the mistake in > delivery. NOTE: Regardless of content, this e-mail shall not operate to bind > SKOPOS to any order or other contract unless pursuant to explicit written > agreement or government initiative expressly permitting the use of e-mail for > such purpose. > > ------------------------------------------------------------------------------ > Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and > much more. Get web development skills now with LearnDevNow - > 350+ hours of step-by-step video tutorials by Microsoft MVPs and experts. > SALE $99.99 this month only -- learn more at: > http://p.sf.net/sfu/learnmore_122812 > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Dan Langille - http://langille.org ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. ON SALE this month only -- learn more at: http://p.sf.net/sfu/learnmore_123012 _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users