I have a Dell PowerVault 124T (LTO3) autochanger that I'm having trouble
connecting to Bacula. I've worked half-way through the default scripts for
installation, and now I want to do the btape tests, but I'm running into
errors on both the changer and the tape drive itself. I'm running Bacula
2.0.3 on SlackWare 10 with Linux kernel 2.6.9. I'm logged-in as root, and I
still have this trouble when I try to test my tape drive:

[EMAIL PROTECTED]:~/bacula/bin# ./btape -c bacula-sd.conf /dev/sg2
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/sg2" for writing.
27-Apr 14:33 btape: 3301 Issuing autochanger "loaded? drive 0" command.
27-Apr 14:33 btape: 3991 Bad autochanger "loaded? drive 0" command: ERR=No
such file or directory.
Results=
27-Apr 14:33 btape: Fatal Error at device.c:280 because:
dev open failed: dev.c:425 Unable to open device "LTO-3" (/dev/sg2):
ERR=Operation not permitted
 
27-Apr 14:33 btape: btape Fatal error: butil.c:195 Cannot open "LTO-3"
(/dev/sg2)

My first assumption is that I neglected to mount a tape, so I examine the
autochanger's status, and I see that there's nothing wrong here:

[EMAIL PROTECTED]:~/bacula/bin# mtx -f /dev/sg3 status
  Storage Changer /dev/sg3:1 Drives, 16 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 1 Loaded):VolumeTag = 000010L3
      Storage Element 1:Empty
      Storage Element 2:Full :VolumeTag=000011L3
      Storage Element 3:Full :VolumeTag=000012L3
      Storage Element 4:Full :VolumeTag=000013L3
      Storage Element 5:Full :VolumeTag=000014L3
      Storage Element 6:Empty
      Storage Element 7:Empty
      Storage Element 8:Empty
      Storage Element 9:Empty
      Storage Element 10:Empty
      Storage Element 11:Empty
      Storage Element 12:Empty
      Storage Element 13:Empty
      Storage Element 14:Empty
      Storage Element 15:Empty
      Storage Element 16:Empty

If I unmount the tape and try again, I get the same error message (I'll
spare you this listing.) Here's how I've edited the tape volume -related
section of bacula-sd.conf:
 
Autochanger {
  Name = Autochanger
  Device = LTO-3
  Changer Command = "/home/kern/bacula/bin/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg3
}
 
Device {
  Name = LTO-3                      #
  Drive Index = 0
  Media Type = LTO-3
  Archive Device = /dev/sg2
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = no
#  # 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'"
}

and here's my bacula-dir.conf:

# Definition of LTO3 tape storage device
Storage {
  Name = LTO-3
  Do not use "localhost" here
  Address = epimetheus.ap.com                # N.B. Use a fully qualified
name here
  SDPort = 9103
  Password = "66I2GryjVO6SDpEt9/iEtXiryRYEMPjwon+9rVezMszM"          #
password for Storage daemon
  Device = LTO-3                      # must be same as Device in Storage
daemon
  Media Type = LTO-3                  # must be same as MediaType in Storage
daemon
  Autochanger = yes                   # enable for autochanger device
}

If I try to isolate the tape drive by setting "Autochanger = no" in both
files and commenting-out the autochanger section in the first file, I get
this error instead:

[EMAIL PROTECTED]:~/bacula/bin# ./btape -c bacula-sd.conf /dev/sg2
Tape block granularity is 1024 bytes.
btape: butil.c:286 Using device: "/dev/sg2" for writing.
27-Apr 14:41 btape: Fatal Error at device.c:280 because:
dev open failed: dev.c:425 Unable to open device "LTO-3" (/dev/sg2):
ERR=Operation not permitted
 
27-Apr 14:41 btape: btape Fatal error: butil.c:195 Cannot open "LTO-3"
(/dev/sg2)

I've looked through the documentation and done a little google searching,
but I don't have a clue yet. Can anyone suggest something more I can try?
 
-dP
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to