[Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread selanty
Hi all,

I have a strange problem when i try to mount a tape.
First what i have i use centos 5.4 with bacula 5.0.3
Hardware is an IBM TS3100 (3573-TL) with 2 LTO5 (ULT3580-HH5)

config from bacula-sd.conf
Autochanger {
Name = Autochanger
Device = LTO5_1, LTO5_2
Changer Device = /dev/sg5
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Device {
Name = LTO5_1
Drive Index = 0
Media Type = LTO5
Archive Device = /dev/st0
Autochanger = yes
Automatic Mount = yes
Always Open = yes
Removable Media = yes
Random Access = no
Requires Mount = no
Maximum Job Spool Size = 12G
Spool directory = "/var/spool"
Label Type = Bacula
Check Labels = yes
Label Media = no
}

Device {
Name = LTO5_2
Drive Index = 1
Media Type = LTO5
Archive Device = /dev/st1
Autochanger = yes
Automatic Mount = yes
Always Open = yes
Removable Media = yes
Random Access = no
Requires Mount = no
Maximum Job Spool Size = 12G
Spool directory = "/var/spool"
Label Type = Bacula
Check Labels = yes
LabelMedia = no

Config from bacula-dir.conf
Storage {
  Name = AutoChanger
  Password = host
  Address = snlbck01.steltix.local
  SDPort = 9103
  Device = Autochanger
  Media Type = LTO5
  Autochanger = yes
  Maximum Concurrent Jobs = 20

What happens if i want to mount a tape from console i do the following and get 
the following.
*mount
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 snlbck01.steltix.local:9103 ...
Enter autochanger drive[0]: 0
Enter autochanger slot: 5
3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 5, drive 0" command.
3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
Termination.
Results=Program killed by Bacula (timeout)

3301 Issuing autochanger "loaded? drive 0" command.
3302 Autochanger "loaded? drive 0", result is Slot 5.
3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open 
device "LTO5_1" (/dev/st0): ERR=No medium found

Then i ask the Status and get the following
*status
Status available for:
 1: Director
 2: Storage
 3: Client
 4: All
Select daemon type for status (1-4): 2
The defined Storage resources are:
 1: File
 2: AutoChanger
Select Storage resource (1-2): 2
Connecting to Storage daemon AutoChanger at snlbck01.steltix.local:9103

snlbck01.steltix.local-sd Version: 5.0.3 (04 August 2010) i686-pc-linux-gnu 
redhat
Daemon started 23-Aug-11 14:20. Jobs: run=0, running=0.
 Heap: heap=135,168 smbytes=24,942 max_bytes=122,999 bufs=100 max_bufs=108
Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8

Device status:
Autochanger "Autochanger" with devices:
   "LTO5_1" (/dev/st0)
   "LTO5_2" (/dev/st1)
Device "FileStorage" (/tmp) is not open.
Device "LTO5_1" (/dev/st0) is not open.
Slot 5 is loaded in drive 0.
Device "LTO5_2" (/dev/st1) is not open.
Drive 1 status unknown.


Used Volume status:

so the tape is loaded in the correct drive but not mounted. then i try another 
mount
*mount
The defined Storage resources are:
 1: File
 2: AutoChanger
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 0
Enter autochanger slot:
3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open 
device "LTO5_1" (/dev/st0): ERR=No medium found

wont mount and then i do the following mount.
*mount
The defined Storage resources are:
 1: File
 2: AutoChanger
Select Storage resource (1-2): 2
Enter autochanger drive[0]: 1
Enter autochanger slot:
3301 Issuing autochanger "loaded? drive 1" command.
3302 Autochanger "loaded? drive 1", result: nothing loaded.
3001 Mounted Volume: SCR02
3001 Device "LTO5_2" (/dev/st1) is already mounted with Volume "SCR02"

and the tape is mounted to LTO5_2 while it should LTO5_1
if ask for status it tells me this
Device status:
Autochanger "Autochanger" with devices:
   "LTO5_1" (/dev/st0)
   "LTO5_2" (/dev/st1)
Device "FileStorage" (/tmp) is not open.
Device "LTO5_1" (/dev/st0) is not open.
Slot 5 is loaded in drive 0.
Device "LTO5_2" (/dev/st1) is mounted with:
Volume:  SCR02
Pool:*unknown*
Media type:  LTO5
Drive 1 status unknown.
Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
Positioned at File=1 Block=0


Used Volume status:
SCR02 on device "LTO5_2" (/dev/st1)
Reader=0 writers=0 devres=0 volinuse=0

I am totaly lost i asked at first to mount on drive 0 LTO and ending up on 
LTO5_2 it does this with jobs to when i manualy move the tape to drive1 the 
jobs goes further
What could be wrong i dont know anymore
btw i am a newby with bacula so dont shoot me for asking stupid things i 
googled and googled but couldnt find anything about it.

Regards Marcel

+--
|This was sent by marcel.van.gereste...@steltix.com 

[Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread selanty
hi Pietro,

3304 Issuing autochanger "load slot 5, drive 0" command. 
3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
Termination.
 Results=Program killed by Bacula (timeout) 

have you tried to run /etc/bacula/mtx-changer with load command manually ? 

Yes i did i tried an mtx -f /dev/sg5 load and unload to both drives and that 
works oke

+--
|This was sent by marcel.van.gereste...@steltix.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula setup driving me nuts

2011-08-24 Thread selanty
That is good now test the bacula 

mtx-changer 

Pf thx guys thru testing with mtx-changer i solved my problem
 [Rolling Eyes] finaly i ended up switching the cabels at the back off the 
backup unit.
needed to make from sg5 sg4 and it worked. Stupid me.
Thx for the help.

Marcel

+--
|This was sent by marcel.van.gereste...@steltix.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula setup driving me nuts

2011-08-24 Thread selanty
That is good now test the bacula 

mtx-changer 

Pf thx guys thru testing with mtx-changer i solved my problem
 [Rolling Eyes] finaly i ended up switching the cabels at the back off the 
backup unit.
needed to make from sg5 sg4 and it worked. Stupid me.
Thx for the help.

Marcel

+--
|This was sent by marcel.van.gereste...@steltix.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread Pietro Bertera
Hi,

2011/8/23 selanty :

> 3304 Issuing autochanger "load slot 5, drive 0" command.
> 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
> Termination.
> Results=Program killed by Bacula (timeout)

have you tried to run /etc/bacula/mtx-changer with load command manually ?

Regards,

Pietro

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread Pietro Bertera
Hi,

2011/8/23 selanty :
> hi Pietro,
>
> 3304 Issuing autochanger "load slot 5, drive 0" command.
> 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
> Termination.
>  Results=Program killed by Bacula (timeout)
>
> have you tried to run /etc/bacula/mtx-changer with load command manually ?
>
> Yes i did i tried an mtx -f /dev/sg5 load and unload to both drives and that 
> works oke
>

I did not mean mtx command.
Bacula use an external program to interfacing with autoloader. This
command is defined by "Changer Command" directive.
I see in your logs that the changer command dies.
Your changer command is: /etc/bacula/mtx-changer %c %o %S %a %d

this configuration invoke /etc/bacula/mtx-changer /dev/sg5 load 5 /dev/st0 0
when bacula tries to load slot 5 of drive 0.

The script mtx-changer shoud not die, I think you must debug this..

sorry for my poor english..

Regards,Pietro

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread John Drescher
> 3304 Issuing autochanger "load slot 5, drive 0" command.
> 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
> Termination.
>  Results=Program killed by Bacula (timeout)
>
> have you tried to run /etc/bacula/mtx-changer with load command manually ?
>
> Yes i did i tried an mtx -f /dev/sg5 load and unload to both drives and that 
> works oke
>

That is good now test the bacula

mtx-changer

script. You may have to modify this scrip to work with your changer.
On my system this script is in /usr/libexec/bacula/

John

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula setup driving me nuts

2011-08-23 Thread Francisco Javier Funes Nieto
Hi,

Only for testing, could you use "/dev/nst0" and "/dev/nst1" in Device
section. This use the "non-rewind" device type. Try mount again then.



J.

2011/8/23 selanty :
> Hi all,
>
> I have a strange problem when i try to mount a tape.
> First what i have i use centos 5.4 with bacula 5.0.3
> Hardware is an IBM TS3100 (3573-TL) with 2 LTO5 (ULT3580-HH5)
>
> config from bacula-sd.conf
> Autochanger {
> Name = Autochanger
> Device = LTO5_1, LTO5_2
> Changer Device = /dev/sg5
> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> }
>
> Device {
> Name = LTO5_1
> Drive Index = 0
> Media Type = LTO5
> Archive Device = /dev/st0
> Autochanger = yes
> Automatic Mount = yes
> Always Open = yes
> Removable Media = yes
> Random Access = no
> Requires Mount = no
> Maximum Job Spool Size = 12G
> Spool directory = "/var/spool"
> Label Type = Bacula
> Check Labels = yes
> Label Media = no
> }
>
> Device {
> Name = LTO5_2
> Drive Index = 1
> Media Type = LTO5
> Archive Device = /dev/st1
> Autochanger = yes
> Automatic Mount = yes
> Always Open = yes
> Removable Media = yes
> Random Access = no
> Requires Mount = no
> Maximum Job Spool Size = 12G
> Spool directory = "/var/spool"
> Label Type = Bacula
> Check Labels = yes
> LabelMedia = no
>
> Config from bacula-dir.conf
> Storage {
>  Name = AutoChanger
>  Password = host
>  Address = snlbck01.steltix.local
>  SDPort = 9103
>  Device = Autochanger
>  Media Type = LTO5
>  Autochanger = yes
>  Maximum Concurrent Jobs = 20
>
> What happens if i want to mount a tape from console i do the following and 
> get the following.
> *mount
> 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 snlbck01.steltix.local:9103 ...
> Enter autochanger drive[0]: 0
> Enter autochanger slot: 5
> 3301 Issuing autochanger "loaded? drive 0" command.
> 3302 Autochanger "loaded? drive 0", result: nothing loaded.
> 3304 Issuing autochanger "load slot 5, drive 0" command.
> 3992 Bad autochanger "load slot 5, drive 0": ERR=Child died from signal 15: 
> Termination.
> Results=Program killed by Bacula (timeout)
>
> 3301 Issuing autochanger "loaded? drive 0" command.
> 3302 Autochanger "loaded? drive 0", result is Slot 5.
> 3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open 
> device "LTO5_1" (/dev/st0): ERR=No medium found
>
> Then i ask the Status and get the following
> *status
> Status available for:
>     1: Director
>     2: Storage
>     3: Client
>     4: All
> Select daemon type for status (1-4): 2
> The defined Storage resources are:
>     1: File
>     2: AutoChanger
> Select Storage resource (1-2): 2
> Connecting to Storage daemon AutoChanger at snlbck01.steltix.local:9103
>
> snlbck01.steltix.local-sd Version: 5.0.3 (04 August 2010) i686-pc-linux-gnu 
> redhat
> Daemon started 23-Aug-11 14:20. Jobs: run=0, running=0.
>  Heap: heap=135,168 smbytes=24,942 max_bytes=122,999 bufs=100 max_bufs=108
> Sizes: boffset_t=8 size_t=4 int32_t=4 int64_t=8
>
> Device status:
> Autochanger "Autochanger" with devices:
>   "LTO5_1" (/dev/st0)
>   "LTO5_2" (/dev/st1)
> Device "FileStorage" (/tmp) is not open.
> Device "LTO5_1" (/dev/st0) is not open.
>    Slot 5 is loaded in drive 0.
> Device "LTO5_2" (/dev/st1) is not open.
>    Drive 1 status unknown.
> 
>
> Used Volume status:
>
> so the tape is loaded in the correct drive but not mounted. then i try 
> another mount
> *mount
> The defined Storage resources are:
>     1: File
>     2: AutoChanger
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 0
> Enter autochanger slot:
> 3901 Unable to open device "LTO5_1" (/dev/st0): ERR=dev.c:491 Unable to open 
> device "LTO5_1" (/dev/st0): ERR=No medium found
>
> wont mount and then i do the following mount.
> *mount
> The defined Storage resources are:
>     1: File
>     2: AutoChanger
> Select Storage resource (1-2): 2
> Enter autochanger drive[0]: 1
> Enter autochanger slot:
> 3301 Issuing autochanger "loaded? drive 1" command.
> 3302 Autochanger "loaded? drive 1", result: nothing loaded.
> 3001 Mounted Volume: SCR02
> 3001 Device "LTO5_2" (/dev/st1) is already mounted with Volume "SCR02"
>
> and the tape is mounted to LTO5_2 while it should LTO5_1
> if ask for status it tells me this
> Device status:
> Autochanger "Autochanger" with devices:
>   "LTO5_1" (/dev/st0)
>   "LTO5_2" (/dev/st1)
> Device "FileStorage" (/tmp) is not open.
> Device "LTO5_1" (/dev/st0) is not open.
>    Slot 5 is loaded in drive 0.
> Device "LTO5_2" (/dev/st1) is mounted with:
>    Volume:      SCR02
>    Pool:        *unknown*
>    Media type:  LTO5
>    Drive 1 status unknown.
>    Total Bytes Read=64,512 Blocks Read=1 Bytes/block=64,512
>    Positioned at File=1 Block=0
> 
>
> Used Volume status:
> SCR02 on device "LTO5_2" (/dev/st1)
>    Reader=0 writers=0 devres=0 volinuse=0
>
> I am totaly lost i asked at fi

Re: [Bacula-users] Bacula setup driving me nuts

2011-08-25 Thread John Drescher
On Thu, Aug 25, 2011 at 2:19 AM, selanty  wrote:
> That is good now test the bacula
>
> mtx-changer
>
> Pf thx guys thru testing with mtx-changer i solved my problem
>  [Rolling Eyes] finaly i ended up switching the cabels at the back off the 
> backup unit.
> needed to make from sg5 sg4 and it worked. Stupid me.

On my system at work I wrote a udev rule to make the autochanger a
device node that will never change regardless of the HW I add to the
server.

John

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula setup driving me nuts

2011-08-25 Thread John Drescher
On Thu, Aug 25, 2011 at 10:59 AM,   wrote:
> In the message dated: Thu, 25 Aug 2011 05:44:00 EDT,
> The pithy ruminations from John Drescher on
>  were:
> => On Thu, Aug 25, 2011 at 2:19 AM, selanty  
> wrote:
> => > That is good now test the bacula
> => >
> => > mtx-changer
> => >
> => > Pf thx guys thru testing with mtx-changer i solved my problem
> => >  [Rolling Eyes] finaly i ended up switching the cabels at the back off 
> the backup unit.
> => > needed to make from sg5 sg4 and it worked. Stupid me.
> =>
> => On my system at work I wrote a udev rule to make the autochanger a
> => device node that will never change regardless of the HW I add to the
> => server.
>
> Example, please?
>

Here is what I use for my exabyte magnum 224

dev6 ~ # cat /etc/udev/rules.d/55-bacula.rules
SUBSYSTEMS=="scsi",ATTRS{vendor}=="EXABYTE*",ATTRS{type}=="8",
SYMLINK+="autochanger1"
SUBSYSTEMS=="scsi",ATTRS{vendor}=="EXABYTE*",ATTRS{type}=="8",
SYMLINK+="changer"

John

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users