Bacula-users

Re: [Bacula-users] problem drive bacula

2016-07-22 12:04:53
Subject: Re: [Bacula-users] problem drive bacula
From: "Clark, Patti" <clarkpa AT ornl DOT gov>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 22 Jul 2016 16:03:52 +0000

You need to read up on udev.  I have posted several times on this list regarding the commands and configuration using udev rules.  Search the list for the information.   Otherwise, use the long path /dev/tape/by-path/… which is an ugly reference but is stable on reboots.  Use the “nst#” reference – it means no rewind, otherwise your tapes will rewind after each use by default.

 

Patti

 

From: nirvana <bacula-forum AT backupcentral DOT com>
Reply-To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Friday, July 22, 2016 at 11:20 AM
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Subject: [Bacula-users] problem drive bacula

 

Good day, Dear

 

I am installing Bacula and had already done tests of full, incremental and differential backup, but the library had a problem and restart the server bacula, but when I do a lsscsi it that has moved the position in the dev where it was mounted in so that searching the internet I found a script for the start mount it in Changer Device = / dev / changer and fine but the Archive Device = / dev / st0 each drive now does not work and before if it worked when I try to make a test tells me you can not find the medium that can be? any ideas please:

 

This is part of bacula-sd.conf

 

autochanger {

  Name = Autochanger

  Drive-device = 0

  Device = Drive-1

  Changer Command = "/ etc / bacula / mtx-changer% c% or% S% a% d"

  Changer Device = / dev / changer

}

Device {

  Drive-Name = 0

  Drive Index = 0

  Media Type = LTO-6

  Archive Device = / dev / st0

  AutomaticMount = yes;

  AlwaysOpen = yes;

  RemovableMedia = yes;

  Random Access = no;

  Autochanger = yes;

  Maximum Spool Size = 8G

}

Device {

  Name = Drive-1

  Drive Index = 1

  Media Type = LTO-6

 Archive Device = / dev / st1

  AutomaticMount = yes;

  AlwaysOpen = yes;

  RemovableMedia = yes;

  Random Access = no;

  Autochanger = yes;

  Maximum Spool Size = 8G

}

Messages {

  Name = Standard

  Director = srvbacula-dir = all

}

 

 

and this is the error that appears when I run a btape

 

root @ srvbacula: / dev # btape Drive-0

Tape block granularity is 1024 bytes.

btape: butil.c: 291-0 Using device: "Drive-0" for writing.

btape: Fatal Error at device.c: 300 because:

dev open failed: tape_dev.c: 164 Unable to open device "Drive-0" (/ dev / st0): ERR = Not found the average

 

Jul 22 11:08 btape: Fatal Error at device.c: 300 because:

dev open failed: tape_dev.c: 164 Unable to open device "Drive-0" (/ dev / st0): ERR = Not found the average

 

btape: butil.c: 199-0 Can not open "Drive-0" (/ dev / st0)

Jul 22 11:08 btape JobId 0: Fatal error: butil.c: 199 Can not open "Drive-0" (/ dev / st0)

 

and this is the status of the changer

 

root @ srvbacula: / dev # mtx -f / dev / changer status

  Storage Changer / dev / changer: 2 Drives 24 Slots (0 Import / Export)

Data Transfer Element 0: Empty

Data Transfer Element 1: Empty

      Storage Element 1: Full: VolumeTag = VXS001L6

      Storage Element 2: Full: VolumeTag = VXS002L6

      Storage Element 3: Full: VolumeTag = VXS003L6

      Storage Element 4: Full: VolumeTag = VXS004L6

      Storage Element 5: Full: VolumeTag = VXS005L6

      Storage Element 6: Full: VolumeTag = VXS006L6

      Storage Element 7: Full: VolumeTag = VXS007L6

      Storage Element 8: Full: VolumeTag = VXS008L6

      Storage Element 9: Full: VolumeTag = VXS009L6

      Storage Element 10: Full: VolumeTag = VXS010L6

      Storage Element 11: Full: VolumeTag = VXS011L6

      Storage Element 12: Full: VolumeTag = VXS012L6

      Storage Element 13: Full: VolumeTag = VXS013L6

      Storage Element 14: Full: VolumeTag = VXS014L6

      Storage Element 15: Full: VolumeTag = VXS015L6

      Storage Element 16: Full: VolumeTag = VXS016L6

      Storage Element 17: Full: VolumeTag = VXS017L6

      Storage Element 18: Full: VolumeTag = VXS018L6

      Storage Element 19: Full: VolumeTag = VXS019L6

      Storage Element 20: Full: VolumeTag = VXS020L6

      Storage Element 21: Full: VolumeTag = VXS021L6

      Storage Element 22: Full: VolumeTag = VXS022L6

      Storage Element 23: Full: VolumeTag = VXS023L6

      Storage Element 24: Full

 

this is the lsscsi -g

[1: 0: 0: 0] HP Ultrium tape SCSI 6-252W / dev / st0 / dev / SG7

[1: 0: 0: 1] HP MSL G3 Series mediumx 6.20 / dev / sch0 / dev / SG8

[3: 0: 0: 0] cd / dvd MATSHITA UJDA780 DVD / CDRW CA22 / dev / sr0 / dev / SG9

[5: 0: 0: 0] HP Ultrium tape SCSI 6-252W / dev / st1 / dev / sg10

 

please help.

 

+----------------------------------------------------------------------

|This was sent by nirvana_ve AT hotmail DOT com via Backup Central.

|Forward SPAM to abuse AT backupcentral DOT com.

+----------------------------------------------------------------------

 

 

 

 

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>