Bacula-users

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

2013-02-08 11:15:23
Subject: Re: [Bacula-users] dell PV-124T works with btape, but not with jobs
From: Jonathan Horne <jhorne AT skopos DOT us>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 8 Feb 2013 16:13:06 +0000
[root@d0lphb040 ~]# sudo -u bacula mtx -f /dev/sg8 status
  Storage Changer /dev/sg8:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Full (Storage Element 7 Loaded):VolumeTag =
SK1028L1
      Storage Element 1:Full :VolumeTag=SK1001L3
      Storage Element 2:Full :VolumeTag=SK1011L3
      Storage Element 3:Full :VolumeTag=CLNU00L1
      Storage Element 4:Full :VolumeTag=SK1020L1
      Storage Element 5:Full :VolumeTag=SK1022L1
      Storage Element 6:Full :VolumeTag=SK1024L1
      Storage Element 7:Empty
      Storage Element 8:Empty
[root@d0lphb040 ~]# sudo -u bacula mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (LTO-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN



those above look ok, but root gets the same output from mt as bacula
does...

[root@d0lphb040 ~]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x44 (LTO-3).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN




thanks,
jonathan






On 2/8/13 10:00 AM, "Jonathan Horne" <jhorne AT skopos DOT us> wrote:

>he (bacula) should be able to.
>
>[root@d0lphb040 bacula]# ls -la /dev/sg8
>crw-rw---- 1 root tape 21, 8 Feb  7 13:00 /dev/sg8
>[root@d0lphb040 bacula]# ls -la /dev/nst0
>crw-rw---- 1 root tape 9, 128 Feb  7 13:00 /dev/nst0
>[root@d0lphb040 bacula]# cat /etc/group|grep bacula
>disk:x:6:bacula
>tape:x:33:bacula
>bacula:x:133:
>
>
>i did find this tho, not sure what it means:
>
>as root:
>
>[root@d0lphb040 bacula]# tapeinfo -f /dev/nst0
>Product Type: Tape Drive
>Vendor ID: 'IBM     '
>Product ID: 'ULTRIUM-TD3     '
>Revision: '93GM'
>Attached Changer API: No
>SerialNumber: '9210226800'
>MinBlock: 1
>MaxBlock: 16777215
>SCSI ID: 6
>SCSI LUN: 0
>Ready: yes
>BufferedMode: yes
>Medium Type: 0x38
>Density Code: 0x44
>BlockSize: 0
>DataCompEnabled: yes
>DataCompCapable: yes
>DataDeCompEnabled: yes
>CompType: 0x1
>DeCompType: 0x1
>BOP: yes
>Block Position: 0
>Partition 0 Remaining Kbytes: -1
>Partition 0 Size in Kbytes: -1
>ActivePartition: 0
>EarlyWarningSize: 0
>
>
>
>
>same command, as user bacula:
>
>[root@d0lphb040 bacula]# sudo -u bacula tapeinfo -f /dev/nst0
>mtx: Request Sense: Long Report=yes
>mtx: Request Sense: Valid Residual=no
>mtx: Request Sense: Error Code=0 (Unknown?!)
>mtx: Request Sense: Sense Key=No Sense
>mtx: Request Sense: FileMark=no
>mtx: Request Sense: EOM=no
>mtx: Request Sense: ILI=no
>mtx: Request Sense: Additional Sense Code = 00
>mtx: Request Sense: Additional Sense Qualifier = 00
>mtx: Request Sense: BPV=no
>mtx: Request Sense: Error in CDB=no
>mtx: Request Sense: SKSV=no
>INQUIRY Command Failed
>
>
>that is where i am focusing right now.
>
>
>
>
>
>
>
>
>On 2/8/13 9:55 AM, "Alan Brown" <ucasabr AT ucl.ac DOT uk> wrote:
>
>>On 08/02/13 15:02, Jonathan Horne wrote:
>>> well, ill retry them all again, but the drive works enough to label all
>>> the barcodes in the drive.
>>
>>What uid is bacula-sd running as?
>>
>>Does that uid have permission to access the tape drives?
>>
>>
>>
>
>
>________________________________
>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


________________________________
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