Hi. The problem is now gone, it was a version mismatch between sd (1) and dir (2).
Thanks a lot. On 9/25/07, Arno Lehmann <[EMAIL PROTECTED]> wrote: > Hi, > > 24.09.2007 20:58,, Alejandro Leyva wrote:: > > Hi all, i have a strange problem and i hope that somebody could give > > me some help. Thanks in advance. > > > > My configuration: > > Dell PowerEdge 2850 with Powervault 124T. > > Debian / bacula-sd 1.38.11-8 / bacula-dir 2.2.0-1. > > You should upgrade to 2.2.4, and the DIR and SD should be the same > version. For the FDs, that's not that important, but of course you > can't use newer features than what your FD knows. > > > I have the autoloader running fine, i can load / unload it with mtx / > > mtx-changer, i've run btape and all the tests suggested in the user > > guide and all is working right, but when i do a label: > > > > *label > > Automatically selected Storage: galileo-sd > > Connecting to Storage daemon galileo-sd at galileo.XXXXXX:9103 ... > > Enter new Volume name: 000001L3 > > Enter slot (0 or Enter for none): 1 > > Defined Pools: > > 1: Default > > 2: Scratch > > 3: LTO3-Full > > 4: LTO3-Inc > > Select the Pool (1-4): 3 > > Connecting to Storage daemon galileo-sd at galileo.XXXXXXX:9103 ... > > Sending label command for Volume "000001L3" Slot 1 ... > > 3301 Issuing autochanger "loaded drive 0" command. > > 3302 Autochanger "loaded drive 0", result is Slot 1. > > 3301 Issuing autochanger "loaded drive 0" command. > > 3302 Autochanger "loaded drive 0", result is Slot 1. > > 3000 OK label. Volume=000001L3 Device="LTO3" (/dev/nst0) > > Label command failed for Volume 000001L3. > > Do not forget to mount the drive!!! > > I suppose that could be due to a version mismatch between SD and DIR. > > If that doesn't fix it, at least that would be a basis for further > investigation. > > Arno > > > *list media > > Pool: Default > > No results to list. > > Pool: Scratch > > No results to list. > > Pool: LTO3-Full > > No results to list. > > Pool: LTO3-Inc > > No results to list. > > * > > > > After that the tape is labeled, but the media record doesnt exist, i > > dont have any messages in logs or anything else. > > If i create the media record with 'add' and run a job i get: > > > > 24-sep 01:06 bacula-dir: logger-full.2007-09-24_01.05.00 Fatal error: > > catreq.c:332 Invalid Catalog request: CatReq > > Job=logger-full.2007-09-24_01.05.00 CreateJobMedia FirstIndex=1 > > LastIndex=21440 StartFile=2 EndFile=2 StartBlock=0 EndBlock=6221 > > Copy=0 Strip=0 > > 24-sep 01:06 galileo-sd: logger-full.2007-09-24_01.05.00 Fatal error: > > Error creating JobMedia record: 1990 Invalid Catalog Request: CatReq > > Job=logger-full.2007-09-24_01.05.00 CreateJobMedia FirstIndex=1 > > LastIndex=21440 StartFile=2 EndFile=2 StartBlock=0 EndBlock=6221 > > Copy=0 Strip=0 > > > > 24-sep 01:06 galileo-sd: logger-full.2007-09-24_01.05.00 Fatal error: > > Could not create JobMedia record for Volume="000001L3" > > Job=logger-full.2007-09-24_01.05.00 > > 24-sep 01:06 bacula-dir: logger-full.2007-09-24_01.05.00 Fatal error: > > catreq.c:332 Invalid Catalog request: CatReq > > Job=logger-full.2007-09-24_01.05.00 UpdateMedia VolName=000001L3 > > VolJobs=1 VolFiles=3 VolBlocks=6222 VolBytes=401372287 VolMounts=0 > > VolErrors=0 VolWrites=6222 MaxVolBytes=0 EndTime=1190614018 > > VolStatus=Append Slot=1 relabel=0 InChanger=1 VolReadTime=0 > > VolWriteTime=0 VolParts=0 > > 24-sep 01:06 galileo-sd: logger-full.2007-09-24_01.05.00 Fatal error: > > Error getting Volume info: 1990 Invalid Catalog Request: CatReq > > Job=logger-full.2007-09-24_01.05.00 UpdateMedia VolName=000001L3 > > VolJobs=1 VolFiles=3 VolBlocks=6222 VolBytes=401372287 VolMounts=0 > > VolErrors=0 VolWrites=6222 MaxVolBytes=0 EndTime=1190614018 > > VolStatus=Append Slot=1 relabel=0 InChanger=1 VolReadTime=0 > > VolWriteTime=0 VolParts=0 > > 24-sep 01:06 logger-fd: logger-full.2007-09-24_01.05.00 Fatal error: > > job.c:1811 Bad response to Append End command. Wanted 3000 OK end > > > > The configuration is listed below. > > > > Thanks in advance. > > ----------------------------------------------------------------------- > > bacula-dir.conf: > > > > Director { > > Name = bacula-dir > > DIRport = 9101 > > QueryFile = "/etc/bacula/scripts/query.sql" > > WorkingDirectory = "/var/lib/bacula" > > PidDirectory = "/var/run/bacula" > > Maximum Concurrent Jobs = 5 > > Password = "XXXXXXXXXXX" > > Messages = Daemon > > DirAddress = XXXXXX > > } > > > > Storage { > > Name = galileo-sd > > Address = galileo.XXXXXXX > > SDPort = 9103 > > Password = "XXXXXXX" > > Device = LTO3 > > Media Type = LTO3 > > Autochanger = yes > > } > > > > ######## > > # Pool # > > ######## > > Pool { > > Name = LTO3-Full > > Maximum Volumes = 10 > > Pool Type = Backup > > Storage = galileo-sd > > Volume Use Duration = 6 days > > AutoPrune = yes > > Volume Retention = 15 days > > Recycle = yes > > } > > --------------------------------------------------------------- > > bacula-sd.conf: > > > > Storage { > > Name = galileo-sd > > SDPort = 9103 > > WorkingDirectory = "/var/lib/bacula" > > Pid Directory = "/var/run/bacula" > > Maximum Concurrent Jobs = 20 > > # SDAddress = 127.0.0.1 > > } > > > > Autochanger { > > Name = Autochanger-LTO3 > > Device = LTO3 > > Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d" > > Changer Device = /dev/sg10 > > } > > > > Device { > > Name = LTO3 > > Drive Index = 0 > > Media Type = LTO3 > > Archive Device = /dev/nst0 > > AutomaticMount = yes; > > LabelMedia = no > > AlwaysOpen = yes; > > RemovableMedia = yes; > > RandomAccess = no; > > AutoChanger = yes > > # Enable the Alert command only if you have the mtx package loaded > > Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'" > > } > > ------------------------------------------------------------------ > > > > ------------------------------------------------------------------------- > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > _______________________________________________ > > Bacula-users mailing list > > Bacula-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bacula-users > > -- > Arno Lehmann > IT-Service Lehmann > www.its-lehmann.de > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users