Re: [Bacula-users] Labeling tapes

2014-09-03 Thread John Drescher
On Wed, Sep 3, 2014 at 3:24 PM, RAT  wrote:
> Closer...  I may have something described or labeled wrong? Thank goodness 
> for RCS.  Been trying al sorts of things but this is the closest I get 
> (configs at bottom)
>

I say neither. You may need to modify your
/usr/libexec/bacula/mtx-changer in either case you probably want to
run the autochanger tests in the manual.


John

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Labeling tapes

2014-09-03 Thread RAT
Closer...  I may have something described or labeled wrong? Thank goodness for 
RCS.  Been trying al sorts of things but this is the closest I get (configs at 
bottom) 


Label command failed for Volume 39L6.
Sending label command for Volume "53L6" Slot 15 ...
3307 Issuing autochanger "unload slot 19, drive 0" command.
3995 Bad autochanger "unload slot 19, drive 0": ERR=Child exited with code 1
Results=Unloading drive 0 into Storage Element 19...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 = 53
mtx: Request Sense: Additional Sense Qualifier = 03
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 256 to 4114 Failed

Label command failed for Volume 53L6.
Sending label command for Volume "23L6" Slot 18 ...
3307 Issuing autochanger "unload slot 19, drive 0" command.
3995 Bad autochanger "unload slot 19, drive 0": ERR=Child exited with code 1
Results=Unloading drive 0 into Storage Element 19...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 = 53
mtx: Request Sense: Additional Sense Qualifier = 03
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
MOVE MEDIUM from Element Address 256 to 4114 Failed

Label command failed for Volume 23L6.
Sending label command for Volume "59L6" Slot 19 ...
3910 Unable to open device ""Drive1" (/dev/nst1)": ERR=dev.c:513 Unable to open 
device "Drive1" (/dev/nst1): ERR=No medium found


Robert Threet
http://yesistilluseperl.blogspot.com/

------ Original Message --
From: "RAT" 
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Labeling tapes
Date: Wed, 3 Sep 2014 16:30:32 GMT

Hello Bacula Users!

I am trying to get Bacula running.  I have it working using disk.  I just need 
it to use my tape drive.  I am using Linux CentOS 7 (on Dell 720) and a Dell 
DL4000 tape library.  

P.S. Note the "Alert Command" setting (as I always get those 50/50 chances 
wrong).

ERROR:

03-Sep 11:21 bacula-sd JobId 13: Job DL4000.2014-09-03_11.21.39_05 is waiting. 
Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage:  "Drive1" (/dev/nst0)
Pool: Default
Media type:   LTO-6-Drive

CONFIG:

[bacula-dir.conf]
# Definition of DDS tape storage device
Storage {
  Name = DL4000
#  Do not use "localhost" here
   Address = [my FQDN here - RAT]  # N.B. Use a fully qualified name here
   SDPort = 9103
   Password = "[it's a secret]"# password for Storage daemon
   Device = Drive1 # must be same as Device in Storage 
daemon
   Device = Drive2 # must be same as Device in Storage 
daemon
   Device = Drive3 # must be same as Device in Storage 
daemon
   Device = Drive4 # must be same as Device in Storage 
daemon
   Media Type = LTO-6-Drive# must be same MediaType in Storage 
daemon
   Autochanger = yes   # enable for autochanger device
}

[bacula-sd.conf]

# My Attempt to add the Dell DL4000
#
Autochanger {
  Name = DL4000
  Device = Drive1
  Device = Drive2
  Device = Drive3
  Device = Drive4
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg5
}

Device {
  Name = Drive1  #
  Drive Index = 0
  Media Type = LTO-6-Drive
  Archive Device = /dev/nst0
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
#  #
#  # Enable the Alert command only if you have the mtx package loaded
#  # Note, apparently on some systems, tapeinfo resets the SCSI controller
#  #  thus if you turn this on, make sure it does not reset your SCSI
#  #  controller.  I have never had any problems, and smartctl does
#  #  not seem to cause such problems.
#  #
#  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'"
}

(similar X4 for the rest of drives)

Robert Threet
http://yesistilluseperl.blogspot.com/

Apple's new iPhone?
Look closely. Because as 

Re: [Bacula-users] Labeling tapes

2014-09-03 Thread John Drescher
I assume you have a barcode reader on your autochanger. The command to
label is label barcodes. I do this and put all of the volumes in the
Scratch pool. When bacula does not have an appendable tape in a pool
it will fetch it from the Scratch pool.

John

On Wed, Sep 3, 2014 at 12:30 PM, RAT  wrote:
> Hello Bacula Users!
>
> I am trying to get Bacula running.  I have it working using disk.  I just 
> need it to use my tape drive.  I am using Linux CentOS 7 (on Dell 720) and a 
> Dell DL4000 tape library.
>
> P.S. Note the "Alert Command" setting (as I always get those 50/50 chances 
> wrong).
>
> ERROR:
>
> 03-Sep 11:21 bacula-sd JobId 13: Job DL4000.2014-09-03_11.21.39_05 is 
> waiting. Cannot find any appendable volumes.
> Please use the "label" command to create a new Volume for:
> Storage:  "Drive1" (/dev/nst0)
> Pool: Default
> Media type:   LTO-6-Drive
>
> CONFIG:
>
> [bacula-dir.conf]
> # Definition of DDS tape storage device
> Storage {
>   Name = DL4000
> #  Do not use "localhost" here
>Address = [my FQDN here - RAT]  # N.B. Use a fully qualified name here
>SDPort = 9103
>Password = "[it's a secret]"# password for Storage daemon
>Device = Drive1 # must be same as Device in Storage 
> daemon
>Device = Drive2 # must be same as Device in Storage 
> daemon
>Device = Drive3 # must be same as Device in Storage 
> daemon
>Device = Drive4 # must be same as Device in Storage 
> daemon
>Media Type = LTO-6-Drive# must be same MediaType in Storage 
> daemon
>Autochanger = yes   # enable for autochanger device
> }
>
> [bacula-sd.conf]
>
> # My Attempt to add the Dell DL4000
> #
> Autochanger {
>   Name = DL4000
>   Device = Drive1
>   Device = Drive2
>   Device = Drive3
>   Device = Drive4
>   Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
>   Changer Device = /dev/sg5
> }
>
> Device {
>   Name = Drive1  #
>   Drive Index = 0
>   Media Type = LTO-6-Drive
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;   # when device opened, read it
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no;
>   AutoChanger = yes
> #  #
> #  # Enable the Alert command only if you have the mtx package loaded
> #  # Note, apparently on some systems, tapeinfo resets the SCSI controller
> #  #  thus if you turn this on, make sure it does not reset your SCSI
> #  #  controller.  I have never had any problems, and smartctl does
> #  #  not seem to cause such problems.
> #  #
> #  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'"
> }
>
> (similar X4 for the rest of drives)
>
> Robert Threet
> http://yesistilluseperl.blogspot.com/
> 
> Apple's new iPhone?
> Look closely. Because as you might guess, Apple is hiding something…
> http://thirdpartyoffers.netzero.net/TGL3231/54074283939e742822c7est03duc
> --
> Slashdot TV.
> Video for Nerds.  Stuff that matters.
> http://tv.slashdot.org/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



-- 
John M. Drescher

--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Labeling tapes

2014-09-03 Thread RAT
Hello Bacula Users!

I am trying to get Bacula running.  I have it working using disk.  I just need 
it to use my tape drive.  I am using Linux CentOS 7 (on Dell 720) and a Dell 
DL4000 tape library.  

P.S. Note the "Alert Command" setting (as I always get those 50/50 chances 
wrong).

ERROR:

03-Sep 11:21 bacula-sd JobId 13: Job DL4000.2014-09-03_11.21.39_05 is waiting. 
Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage:  "Drive1" (/dev/nst0)
Pool: Default
Media type:   LTO-6-Drive

CONFIG:

[bacula-dir.conf]
# Definition of DDS tape storage device
Storage {
  Name = DL4000
#  Do not use "localhost" here
   Address = [my FQDN here - RAT]  # N.B. Use a fully qualified name here
   SDPort = 9103
   Password = "[it's a secret]"# password for Storage daemon
   Device = Drive1 # must be same as Device in Storage 
daemon
   Device = Drive2 # must be same as Device in Storage 
daemon
   Device = Drive3 # must be same as Device in Storage 
daemon
   Device = Drive4 # must be same as Device in Storage 
daemon
   Media Type = LTO-6-Drive# must be same MediaType in Storage 
daemon
   Autochanger = yes   # enable for autochanger device
}

[bacula-sd.conf]

# My Attempt to add the Dell DL4000
#
Autochanger {
  Name = DL4000
  Device = Drive1
  Device = Drive2
  Device = Drive3
  Device = Drive4
  Changer Command = "/usr/libexec/bacula/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg5
}

Device {
  Name = Drive1  #
  Drive Index = 0
  Media Type = LTO-6-Drive
  Archive Device = /dev/nst0
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
#  #
#  # Enable the Alert command only if you have the mtx package loaded
#  # Note, apparently on some systems, tapeinfo resets the SCSI controller
#  #  thus if you turn this on, make sure it does not reset your SCSI
#  #  controller.  I have never had any problems, and smartctl does
#  #  not seem to cause such problems.
#  #
#  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'"
}

(similar X4 for the rest of drives)

Robert Threet
http://yesistilluseperl.blogspot.com/

Apple's new iPhone?
Look closely. Because as you might guess, Apple is hiding something…
http://thirdpartyoffers.netzero.net/TGL3231/54074283939e742822c7est03duc
--
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Labeling tapes - keeps checking all drives

2012-03-12 Thread Alan Brown
On 12/03/12 15:42, Ethier, Michael wrote:
> Hi Alan,
>
> Thanks for the hint, I am running bacula-sd as root and root was not a member 
> of the tape group. I added it now:

root should be able to go anywhere on the system.

Linux by default sets the euid to bacula as bacula-sd starts up. Other 
OSes might do the same.

If that's the case you need to add bacula to the tape group.

Alan





--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Labeling tapes - keeps checking all drives

2012-03-12 Thread Ethier, Michael
Hi Alan,

Thanks for the hint, I am running bacula-sd as root and root was not a member 
of the tape group. I added it now:

[root@rcbackup ~]# ls -l /dev/nst4
crw-rw 1 root tape 9, 132 Mar  1 12:19 /dev/nst4
[root@rcbackup ~]# ls -l /dev/sg6
crw-rw 1 root tape 21, 6 Mar  1 12:19 /dev/sg6
[root@rcbackup ~]# id
uid=0(root) gid=0(root) 
groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),33(tape),495(sfcb)

To test if this fixes it, can I just do a reload in bconsole or do I have to 
restart the bacula daemons ? I have a backup
running.

Thanks,
Mike

-Original Message-
From: Alan Brown [mailto:a...@mssl.ucl.ac.uk] 
Sent: Monday, March 12, 2012 11:40 AM
To: Ethier, Michael
Cc: Bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Labeling tapes - keeps checking all drives

On 10/03/12 15:29, Ethier, Michael wrote:
> Hello,
>
> We have a brand new robot with LTO-5 tapes, and I installed Bacula 
> 5.2.6. When I try to label tapes, Bacula keeps trying to check if all 
> the tape drives are loaded even though it asked me what tape drive to use for 
> labeling (see below) in the beginning. I told it drive 0. Why is it doing 
> this ?

Do the permissions and ownership of the drives/changer match that of the userid 
running Bacula-sd?





--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Labeling tapes - keeps checking all drives

2012-03-12 Thread Alan Brown
On 10/03/12 15:29, Ethier, Michael wrote:
> Hello,
>
> We have a brand new robot with LTO-5 tapes, and I installed Bacula 5.2.6. 
> When I try to label tapes,
> Bacula keeps trying to check if all the tape drives are loaded even though it 
> asked me what tape drive to use
> for labeling (see below) in the beginning. I told it drive 0. Why is it doing 
> this ?

Do the permissions and ownership of the drives/changer match that of the 
userid running Bacula-sd?





--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Labeling tapes - keeps checking all drives

2012-03-10 Thread Ethier, Michael
Hello,

We have a brand new robot with LTO-5 tapes, and I installed Bacula 5.2.6. When 
I try to label tapes,
Bacula keeps trying to check if all the tape drives are loaded even though it 
asked me what tape drive to use
for labeling (see below) in the beginning. I told it drive 0. Why is it doing 
this ?

Also I noticed in the dmesg of the bacula server messages like:
st4: Failed to read 64512 byte block with 80 byte transfer.
st4: Failed to read 64512 byte block with 80 byte transfer.

I ran btape test and it worked fine. Are these messages ok or troublesome ? Is 
there way to fix this ?

Thanks in advance,
Mike

[root@rcbackup ~]# bconsole
Connecting to Director rcbackup:9101
1000 OK: rcbackup-dir Version: 5.2.6 (21 February 2012)
Enter a period to cancel a command.
*label barcodes slots=14-16
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
The defined Storage resources are:
 1: File
 2: Autochanger
Select Storage resource (1-2): 2
Connecting to Storage daemon Autochanger at rcbackup:9103 ...
Enter autochanger drive[0]:
Connecting to Storage daemon Autochanger at rcbackup:9103 ...
3306 Issuing autochanger "slots" command.
Device "Autochanger" has 224 slots.
Connecting to Storage daemon Autochanger at rcbackup:9103 ...
3306 Issuing autochanger "list" command.
The following Volumes will be labeled:
Slot  Volume
==
  14  000162
  15  000161
  16  000136
Do you want to label these Volumes? (yes|no): yes
Defined Pools:
 1: Default
 2: jabba
 3: File
 4: Scratch
Select the Pool (1-4): 2
Connecting to Storage daemon Autochanger at rcbackup:9103 ...
Sending label command for Volume "000162" Slot 14 ...
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 1" command.
3302 Autochanger "loaded? drive 1", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 2" command.
3302 Autochanger "loaded? drive 2", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 3" command.
3302 Autochanger "loaded? drive 3", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 4" command.
3302 Autochanger "loaded? drive 4", result: nothing loaded.
3304 Issuing autochanger "load slot 14, drive 0" command.
3305 Autochanger "load slot 14, drive 0", status is OK.
dev.c:506 Unable to open device "Drive-0" (/dev/nst4): ERR=No medium found
block.c:1001 Read error on fd=6 at file:blk 0:0 on device "Drive-0" 
(/dev/nst4). ERR=Input/output error.
3000 OK label. VolBytes=64512 DVD=0 Volume="000162" Device="Drive-0" (/dev/nst4)
Catalog record for Volume "000162", Slot 14  successfully created.
Sending label command for Volume "000161" Slot 15 ...
3307 Issuing autochanger "unload slot 14, drive 0" command.
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 1" command.
3302 Autochanger "loaded? drive 1", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 2" command.
3302 Autochanger "loaded? drive 2", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 3" command.
3302 Autochanger "loaded? drive 3", result: nothing loaded.
3301 Issuing autochanger "loaded? drive 4" command.
3302 Autochanger "loaded? drive 4", result: nothing loaded.
3304 Issuing autochanger "load slot 15, drive 0" command.
3305 Autochanger "load slot 15, drive 0", status is OK.
block.c:1001 Read error on fd=6 at file:blk 0:0 on device "Drive-0" 
(/dev/nst4). ERR=Input/output error.
block.c:1001 Read error on fd=6 at file:blk 0:0 on device "Drive-0" 
(/dev/nst4). ERR=Input/output error.
3000 OK label. VolBytes=64512 DVD=0 Volume="000161" Device="Drive-0" (/dev/nst4)
Catalog record for Volume "000161", Slot 15  successfully created.
Sending label command for Volume "000136" Slot 16 ...
3307 Issuing autochanger "unload slot 15, drive 0" command.




--
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users