Bacula-users

Re: [Bacula-users] cannot access tape device

2008-05-13 16:56:19
Subject: Re: [Bacula-users] cannot access tape device
From: Randy Schultz <schulra AT earlham DOT edu>
To: Bacula-users AT lists.sourceforge DOT net
Date: Tue, 13 May 2008 16:56:58 -0400 (EDT)
On Tue, 13 May 2008, Attila F�l�p spaketh thusly:

-}> The hardware is a Dell Powervault 124T with 1 drive, and shows up as:
-}> root dude ? camcontrol devlist
-}>     <QUANTUM ULTRIUM 3 2023>           at scbus0 target 6 lun 0 (sa0,pass0)
-}>     <DELL PV-124T 0053>                at scbus0 target 6 lun 1 (ch0,pass1)
-}> 
-}> tapeinfo shows:
-}>     root dude ? tapeinfo -f /dev/pass0
-}>     Product Type: Tape Drive
-}>     Vendor ID: 'QUANTUM '
-}>     Product ID: 'ULTRIUM 3       '
-}>     Revision: '2023'
-}>     Attached Changer API: No
-}>     SerialNumber: 'JN0746AME50728'
-}>     MinBlock: 1
-}>     MaxBlock: 16777215
-}>     Ready: no
-}> 
-}>     root dude ? tapeinfo -f /dev/pass1
-}>     Product Type: Medium Changer
-}>     Vendor ID: 'DELL    '
-}>     Product ID: 'PV-124T         '
-}>     Revision: '0053'
-}>     Attached Changer API: No
-}>     SerialNumber: 'CK8CCD5299'
-}>     Ready: yes
-}> 
-}> 
-}> As I read this, pass1, or ch0, is the autochanger and pass0, or sa0, is the
-}> actual drive.  From this I have in my bacula-sd.conf:
-}>     Autochanger {
-}>       Name = Autochanger
-}>       Device = Drive-1
-}>       Changer Command = "/usr/local/share/bacula/mtx-changer %c %o %S %a %d"
-}>       Changer Device = /dev/pass1
-}>     }
-}> 
-}>     Device {
-}>       Name = Drive-1                      #
-}>       Drive Index = 0
-}>       Media Type = "Ultrium 2"
-}>       Archive Device = /dev/pass0
-}
-}Change this to Archive Device = /dev/nsa0
-}
-}The raw scsi device is only needed by mtx to control the changer.

Urk.  Forgot to mention that I tried this.  I even have the link up yet where
I found to try it:
   http://www.bacula.org/en/dev-manual/Autochanger_Support.html

I didn't use nsa0, but instead used nsa0.0 as the above link suggested, with
the same error:
   root dude ? btape -c /usr/local/etc/bacula-sd.conf /dev/nsa0.0
   Tape block granularity is 1024 bytes.
   btape: butil.c:285 Using device: "/dev/nsa0.0" for writing.
   13-May 16:49 btape JobId 0: 3301 Issuing autochanger "loaded? drive 0"
   command.
   13-May 16:49 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command:
   ERR=Child exited with code 1.
   Results=mtx: Request Sense: Long Report=yes
   mtx: Request Sense: Valid Residual=no
   mtx: Request Sense: Error Code=70 (Current)
   mtx: Request Sense: Sense Key=Illegal Request
   mtx: Request Sense: FileMark=no
   mtx: Request Sense: EOM=no
   mtx: Request Sense: ILI=no
   mtx: Request Sense: Additional Sense Code = 20
   mtx: Request Sense: Additional Sense Qualifier = 00
   mtx: Request Sense: BPV=no
   mtx: Request Sense: Error in CDB=no
   mtx: Request Sense: SKSV=no
   READ ELEMENT STATUS Command Failed

   13-May 16:49 btape: Fatal Error at device.c:297 because:
   dev open failed: dev.c:433 Unable to open device "Drive-1" (/dev/nsa0.0):
   ERR=Device not configured

   13-May 16:49 btape JobId 0: Fatal error: butil.c:194 Cannot open "Drive-1"
   (/dev/nsa0.0)

FWIW, /dev contains:
   root dude ? ls -l /dev/nsa*
   lrwxr-xr-x  1 root  wheel            6 Dec 31  1969 /dev/nsa0 -> nsa0.0
   crwxrwxrwx  1 root  bacula      0,  96 May 13 13:31 /dev/nsa0.0
   crw-rw----  1 root  operator    0, 102 May 13 13:31 /dev/nsa0.1
   crw-rw----  1 root  operator    0, 105 May 13 13:31 /dev/nsa0.2
   crw-rw----  1 root  operator    0, 108 May 13 13:31 /dev/nsa0.3


--
 Randy    (schulra AT earlham DOT edu)      765.983.1283         <*>

Love with your heart, think with your head;  not the other way around.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users