Bacula-users

Re: [Bacula-users] dell PV-124T works with btape, but not with jobs

2013-02-08 09:16:42
Subject: Re: [Bacula-users] dell PV-124T works with btape, but not with jobs
From: Jonathan Horne <jhorne AT skopos DOT us>
To: "lst_hoe02 AT kwsoft DOT de" <lst_hoe02 AT kwsoft DOT de>, "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 8 Feb 2013 14:12:26 +0000
do you mean the MTX scripts?  they are root:root 755, and as far as i know
bacula should be able to access them (on another systems they are
identical owner:permissions, and this system works fine with its tape
drive).

in debug mode, i get this:

bacula-sd: askdir.c:182-76 <dird 1000 OK VolName=SK1028L1 VolJobs=0
VolFiles=0 VolBlocks=0 VolBytes=64512 VolMounts=0 VolErrors=0 VolWrites=0
MaxVolBytes=0 VolCapacityBytes=0 VolStatus=Append Slot=7 MaxVolJobs=0
MaxVolFiles=0 InChanger=1 VolReadTime=0 VolWriteTime=0 EndFile=0
EndBlock=0 VolParts=0 LabelType=0 MediaId=9
bacula-sd: askdir.c:205-76 do_reqest_vol_info return true slot=7
Volume=SK1028L1
bacula-sd: reserve.c:445-76 vol=SK1028L1 OK for this job
bacula-sd: reserve.c:455-76 vol=SK1028L1 is in changer
bacula-sd: reserve.c:390-76 Found changer device PV124TDrive0
bacula-sd: reserve.c:468-76 try vol=SK1028L1 on device=PV-124T
bacula-sd: reserve.c:615-76 chk MediaType device=LTO-3 request=LTO-3
bacula-sd: reserve.c:638-76 try reserve PV124TDrive0
bacula-sd: reserve.c:655-76 call reserve for append: have_vol=1
vol=SK1028L1
bacula-sd: reserve.c:831-76 3603 JobId=76 device "PV124TDrive0"
(/dev/nst0) is busy reading.
bacula-sd: reserve.c:747-76 Not OK.
bacula-sd: reserve.c:475-76 Suitable device=PV-124T, busy: not use
bacula-sd: reserve.c:492-76 lock volumes
bacula-sd: vol_mgr.c:659-76 free vol_list Volume=SK1028L1
dev="PV124TDrive0" (/dev/nst0)
bacula-sd: vol_mgr.c:803-76 deleted temp vol list
bacula-sd: vol_mgr.c:804-76 unlock volumes
bacula-sd: vol_mgr.c:211-76 List after free temp table: SK1028L1 in_use=0
on device "PV124TDrive0" (/dev/nst0)
bacula-sd: reserve.c:544-76 search res for PV-124T
bacula-sd: reserve.c:547-76 Try match changer res=PV-124T
bacula-sd: reserve.c:552-76 Try changer device PV124TDrive0
bacula-sd: reserve.c:615-76 chk MediaType device=LTO-3 request=LTO-3
bacula-sd: reserve.c:638-76 try reserve PV124TDrive0
bacula-sd: reserve.c:655-76 call reserve for append: have_vol=0 vol=
bacula-sd: reserve.c:831-76 3603 JobId=76 device "PV124TDrive0"
(/dev/nst0) is busy reading.
bacula-sd: reserve.c:747-76 Not OK.
bacula-sd: reserve.c:578-76 Try match res=FileStorage
bacula-sd: reserve.c:578-76 Try match res=PV124TDrive0
bacula-sd: reserve.c:520-76 No usable device found.
bacula-sd: reserve.c:530-76 Leave find_suit_dev: no dev found.




here is my device config:

Autochanger {
  Name = PV-124T
  Device = PV124TDrive0
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg8
}

Device {
  Name = PV124TDrive0
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/nst0
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg8
  Autochanger = yes
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes
  RandomAccess = no
  LabelMedia = no
  RequiresMount = yes
# Enable the Alert command only if you have the mtx package loaded
# If you have smartctl, enable this, it has more info than tapeinfo
  Alert Command = "sh -c 'smartctl -H -l error %c'"
}



[jhorne@d0lphb040 ~]$ lsscsi -g
[0:0:8:0]    enclosu DP       BACKPLANE        1.00  -         /dev/sg0
[0:2:0:0]    disk    DELL     PERC 5/i         1.03  /dev/sda   /dev/sg1
[0:2:1:0]    disk    DELL     PERC 5/i         1.03  /dev/sdb   /dev/sg2
[1:0:16:0]   enclosu DELL     MD1200           1.01  -         /dev/sg3
[1:2:0:0]    disk    DELL     PERC H800        2.10  /dev/sdc   /dev/sg4
[2:0:0:0]    cd/dvd  HL-DT-ST CD-ROM GCR-8240N 1.10  /dev/sr0   /dev/sg5
[4:0:0:0]    disk    Hitachi  HDS724040ALE640  MJAO  /dev/sdd   /dev/sg6
[5:0:6:0]    tape    IBM      ULTRIUM-TD3      93GM  /dev/st0   /dev/sg7
[5:0:6:1]    mediumx DELL     PV-124T          0090  /dev/sch0  /dev/sg8



this is boggling.  my first attempt at getting a tape library working, i
followed all the steps on dan langille's website until the PV4000 woke up
an wrote data.  after following all those same tests and even to the point
that all tests pass correctly, bacula still refuses to write.

I'm sure there is something i am overlooking, and its just a matter of
time until i put my finger on it :)

thanks,
jonathan




On 2/8/13 2:32 AM, "lst_hoe02 AT kwsoft DOT de" <lst_hoe02 AT kwsoft DOT de> 
wrote:

>
>Zitat von Jonathan Horne <jhorne AT skopos DOT us>:
>
>> as title says, i have a PV-124T that works with btape like a champ,
>> but not within bacula for running jobs.  when i submit a job to run
>> to tape, the jobs just sit there.
>>
>> i have identical job configuration on another server with a larger
>> power vault tape drive, and its runing like a top. when you submit a
>> tape job, it quickly changes to "running" state.
>>
>> if i can work with btape but not with jobs, here can i start the
>> troubleshooting?
>>
>> any advice greatly appreciated,
>> jonathan
>
>Hello
>
>check the permissions for the changer scripts and the changer/tape
>devices. Bacula normaly run as unpriviled user and maybe the script
>permissions don't match.
>
>Regards
>
>Andreas
>
>
>
>--------------------------------------------------------------------------
>----
>Free Next-Gen Firewall Hardware Offer
>Buy your Sophos next-gen firewall before the end March 2013
>and get the hardware for free! Learn more.
>http://p.sf.net/sfu/sophos-d2d-feb
>_______________________________________________
>Bacula-users mailing list
>Bacula-users AT lists.sourceforge DOT 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.

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users