[Bacula-users] Bacula and Dell Powervault 124T

2011-08-08 Thread lokinc
I got past that point without changing the mtx script. But now I get a 
different error when running the autochanger test in btape.

Do you wish to continue with the Autochanger test? (y/n): y


=== Autochanger test ===

3301 Issuing autochanger loaded command.
Slot 1 loaded. I am going to unload it.
3302 Issuing autochanger unload 1 0 command.
unload status=OK 0
3303 Issuing autochanger load 1 0 command.
3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer /dev/changer load 
1 /dev/st0 0
3993 result=Loading media from Storage Element 1 into drive 0...done
: ERR=Child died from signal 15: Termination
You must correct this error or the Autochanger will not work.

Anyone know how to get rid of this problem?

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-08-08 Thread Craig White
On Mon, 2011-08-08 at 04:35 -0700, lokinc wrote:
 I got past that point without changing the mtx script. But now I get a 
 different error when running the autochanger test in btape.
 
 Do you wish to continue with the Autochanger test? (y/n): y
 
 
 === Autochanger test ===
 
 3301 Issuing autochanger loaded command.
 Slot 1 loaded. I am going to unload it.
 3302 Issuing autochanger unload 1 0 command.
 unload status=OK 0
 3303 Issuing autochanger load 1 0 command.
 3993 Bad autochanger command: /usr/libexec/bacula/mtx-changer /dev/changer 
 load 1 /dev/st0 0
 3993 result=Loading media from Storage Element 1 into drive 0...done
 : ERR=Child died from signal 15: Termination
 You must correct this error or the Autochanger will not work.
 
 Anyone know how to get rid of this problem?

forgetting bacula for a second... can you actually run mtx yourself?

mtx -f /dev/changer unload 1 0

I think not... sounds like there isn't any /dev/changer - try it a
different way...

mtx -f /dev/sg? unload 1 0

Obviously replace /dev/sg? with whichever your autoloader identifies as
which should be identifiable with 'cat /proc/scsi/scsi'

If that command is working outside of bacula, you should then know how
to configure bacula-sd.conf which then should make the autochanger test
work within bacula

Craig


--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Dell Powervault 124T

2011-08-08 Thread lokinc
I can tell it to load and unload tapes using mtx, that's why this error is so 
strange. I can see it change the tapes in the Dell Web interface. It puts the 
tape into the drive then does nothing for 5 mins and spits out that error.


my scsi devices listed:
[root@backup001 ~]# lsscsi -g
[2:0:0:0]cd/dvd  TSSTcorp DVD+-RW TS-L633J D150  /dev/sr0   /dev/sg0
[4:0:3:0]tapeQUANTUM  ULTRIUM 53085  /dev/st0   /dev/sg1
[4:0:3:1]mediumx DELL PV-124T  0085  /dev/sch0  /dev/sg2
[5:2:0:0]diskDELL PERC H7002.10  /dev/sda   /dev/sg3

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-08-08 Thread Craig White
On Mon, 2011-08-08 at 06:46 -0700, lokinc wrote:
 I can tell it to load and unload tapes using mtx, that's why this error is so 
 strange. I can see it change the tapes in the Dell Web interface. It puts the 
 tape into the drive then does nothing for 5 mins and spits out that error.
 
 
 my scsi devices listed:
 [root@backup001 ~]# lsscsi -g
 [2:0:0:0]cd/dvd  TSSTcorp DVD+-RW TS-L633J D150  /dev/sr0   /dev/sg0
 [4:0:3:0]tapeQUANTUM  ULTRIUM 53085  /dev/st0   /dev/sg1
 [4:0:3:1]mediumx DELL PV-124T  0085  /dev/sch0  /dev/sg2
 [5:2:0:0]diskDELL PERC H7002.10  /dev/sda   /dev/sg3
 

try changing bacula-sd.conf...

  Changer Device = /dev/sg2

and restart bacula-sd service before you test again

Craig


--
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-08-04 Thread Andrea Conti
== Autochanger test ===
 
 3301 Issuing autochanger loaded command.
 Nothing loaded in the drive. OK.
 3303 Issuing autochanger load 1 0 command.
 
 It just sits there doing nothing, I guess it is supposed to remove the tape 
 from the drive and put the tape from slot 1 into the drive but that doesn't 
 seem to happen

I've been using a 124T with Bacula for a little more than a year now.

I noticed that right after the powering on and every time a tape has
been accessed the library has a certain tendency to reply with garbage
to the first changer command it gets; I don't know if it's my particular
unit/setup or if other 124Ts do that.

I never got down to debugging the issue; adding a

${MTX} -f ${ctl} status /dev/null 21

before every mtx invocation in the mtx-changer script got it working
with Bacula.

HTH,
Andrea

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Dell Powervault 124T

2011-08-03 Thread lokinc
Ok, so i've got it working now, but I run into 1 problem. When I run this:
# btape /dev/nst0
Tape block granularity is 1024 bytes.
btape: butil.c:285 Using device: /dev/nst0 for writing.
03-Aug 10:49 btape JobId 0: 3301 Issuing autochanger loaded? drive 0 command.
03-Aug 10:49 btape JobId 0: 3302 Autochanger loaded? drive 0, result: nothing 
loaded.
03-Aug 10:49 btape: Fatal Error at device.c:298 because:
dev open failed: dev.c:491 Unable to open device LTO5 (/dev/nst0): ERR=No 
medium found

I know this is because there is not tape in there. I thought it would run 
without it.

If the tape is in the drive I run into the problem where it wants to test the 
autochanger. Then I tell it yes and I get this: 

=== End Forward space files test ===


Ah, I see you have an autochanger configured.
To test the autochanger you must have a blank tape
 that I can write on in Slot 1.

Do you wish to continue with the Autochanger test? (y/n): y


=== Autochanger test ===

3301 Issuing autochanger loaded command.
Nothing loaded in the drive. OK.
3303 Issuing autochanger load 1 0 command.

It just sits there doing nothing, I guess it is supposed to remove the tape 
from the drive and put the tape from slot 1 into the drive but that doesn't 
seem to happen

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Dell Powervault 124T

2011-08-03 Thread lokinc
Also when I try to label a Volume I get this:

Connecting to Storage daemon changer-sd at backup001.viamedia.co.za:9103 ...
Enter new Volume name:

Then it just does nothing

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos  much more. Register early  save!
http://p.sf.net/sfu/rim-blackberry-1
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Dell Powervault 124T

2011-07-29 Thread lokinc
Thanks guys, I'll give this a try and post back the results!

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-07-28 Thread Pietro Bertera
2011/7/27 lokinc bacula-fo...@backupcentral.com:
 Hi

 I've got a Dell Powervault 124T connected to a new server using SAS.

 On the server I'm running CentOS 6 with Bacula 5.0.0 installed via YUM, the 
 current setup can backup to File and restore.

 Now what I need to know, what is the first step to get the server to backup 
 to tape. How to define the Tape changer and drive and where to define these 
 things?

 Thanks in advance

You must configure the Device and Autochanger directives in
bacula-sd. (and jobs in director using the new device)

this an example of configuration: http://pastebin.com/Nvyd5F4A

Regards,

Pietro

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Dell Powervault 124T

2011-07-28 Thread Jon Schewe
You might also find the following udev rules useful. Put the following in
/etc/udev/rules.d/60-persistent-storage-tape.rules (path may be different
for different distros, this is for opensuse).

# this file must have the same name as the file in /lib/udev/rules.d that
sets up the tape permissions, otherwise this file won't override the
defaults

SUBSYSTEM==scsi_generic, ATTRS{vendor}==DELL, ATTRS{model}==PV-124T,
SYMLINK+=library_pv-124t, GROUP=disk
KERNEL==nst[0-9]*, SUBSYSTEM==scsi_tape, ATTRS{vendor}==QUANTUM,
ATTRS{model}==ULTRIUM 5, SYMLINK+=drive0_pv-124t, GROUP=disk

This creates symlinks for the right devices and sets the group permissions
to disk, which is what the RPMs in the dassit repository for openeuse want
given who the daemons run as. Note that this is only with 1 drive in our
library, you may need to modify for a second drive.

On Thu, Jul 28, 2011 at 4:04 AM, Rory Campbell-Lange 
r...@campbell-lange.net wrote:

 We have the same setup, running on Debian.

 The first things to do are:

 * check that you can get your server and library/drive to communicate.
  you can do that with mtx and mt
  eg mtx -f /dev/sg4 status
  eg mt -f /dev/nst0 status

 * test your setup with btape

 http://www.bacula.org/5.0.x-manuals/en/utility/utility/Volume_Utility_Tools.html#SECTION00291000

 * configure the Bacula Storage Daemon

  our Storage Daemon has the folling excerpts that might be relevant to
  you:

Autochanger {
  Name = PV-124T
  Device = LTO4-Drive1
  Changer Command = /etc/bacula/scripts/mtx-changer %c %o %S %a %d
  Changer Device = /dev/sg4
}

Device {
  Name = LTO4-Drive1
  Drive Index = 0
  Media Type = LTO4
  Archive Device = /dev/nst0
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes

  # The following spool directives come after discussions on the bacula
 list and
  # with reference to
 http://www.mail-archive.com/bacula-users@lists.sourceforge.net/msg36340.html
  # Also see
 http://www.bacula.org/5.0.x-manuals/en/main/main/Storage_Daemon_Configuratio.html#11812etc
  Maximum File Size = 5G
  Maximum Spool Size = 260G
  Maximum Job Spool Size = 100G # will need this is there are concurrent
 jobs
  Spool Directory = /tapehold

  Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
}

  However please be very wary of just copying these entries. You should
  read the manual and setup Bacula to meet your specific requirements.
  See http://www.bacula.org/5.0.x-manuals/en/main/main/index.html

 Rory

 On 27/07/11, lokinc (bacula-fo...@backupcentral.com) wrote:
  Hi
 
  I've got a Dell Powervault 124T connected to a new server using SAS.
 
  On the server I'm running CentOS 6 with Bacula 5.0.0 installed via YUM,
 the current setup can backup to File and restore.
 
  Now what I need to know, what is the first step to get the server to
 backup to tape. How to define the Tape changer and drive and where to define
 these things?
 
  Thanks in advance
 
  +--
  |This was sent by lok...@gmail.com via Backup Central.
  |Forward SPAM to ab...@backupcentral.com.
  +--
 
 
 
 
 --
  Got Input?   Slashdot Needs You.
  Take our quick survey online.  Come on, we don't ask for help often.
  Plus, you'll get a chance to win $100 to spend on ThinkGeek.
  http://p.sf.net/sfu/slashdot-survey
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users

 --
 Rory Campbell-Lange
 r...@campbell-lange.net

 Campbell-Lange Workshop
 www.campbell-lange.net
 0207 6311 555
 3 Tottenham Street London W1T 2AF
 Registered in England No. 04551928


 --
 Got Input?   Slashdot Needs You.
 Take our quick survey online.  Come on, we don't ask for help often.
 Plus, you'll get a chance to win $100 to spend on ThinkGeek.
 http://p.sf.net/sfu/slashdot-survey
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Dell Powervault 124T

2011-07-27 Thread lokinc
Hi

I've got a Dell Powervault 124T connected to a new server using SAS.

On the server I'm running CentOS 6 with Bacula 5.0.0 installed via YUM, the 
current setup can backup to File and restore. 

Now what I need to know, what is the first step to get the server to backup to 
tape. How to define the Tape changer and drive and where to define these things?

Thanks in advance

+--
|This was sent by lok...@gmail.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users