Hi all!

This is my first mail to the list. I'm newbie with Bacula. I'm using
Bacula version (1.38.11-8) from Debian Etch for Sparc respositories.

The operating system detects the tape library and I can operate it with
mt and mtx:

sparky:~# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: SEAGATE  Model: ST318404LC       Rev: 0002
  Type:   Direct-Access                    ANSI SCSI revision: 03
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: TOSHIBA  Model: XM6201TASUN32XCD Rev: 1103
  Type:   CD-ROM                           ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 01 Lun: 00
  Vendor: HP       Model: C6280-7000       Rev: 2.10
  Type:   Medium Changer                   ANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 02 Lun: 00
  Vendor: QUANTUM  Model: DLT7000          Rev: 296D
  Type:   Sequential-Access                ANSI SCSI revision: 02

sparky:~# mtx -f /dev/sg2 status
  Storage Changer /dev/sg2:1 Drives, 8 Slots ( 0 Import/Export )
Data Transfer Element 0:Empty
      Storage Element 1:Full
      Storage Element 2:Full
      Storage Element 3:Full
      Storage Element 4:Full
      Storage Element 5:Full
      Storage Element 6:Full
      Storage Element 7:Full
      Storage Element 8:Full

sparky:~# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
 DR_OPEN IM_REP_EN

But checking the status storage from the Baculas's console delays long
time without returns some results.

sparky:/etc/bacula# ps ax|grep bacula|grep -v grep
24604 ?        Ss     0:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
24605 ?        S      0:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
24606 ?        S      0:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
24607 ?        S      0:00 /usr/sbin/bacula-dir -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
25467 ?        Ss     0:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
25469 ?        S      0:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
25470 ?        S      0:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape
25471 ?        S      0:00 /usr/sbin/bacula-sd -c
/etc/bacula/bacula-sd.conf -u bacula -g tape

sparky:/etc/bacula# bconsole
Connecting to Director sparky.educ.gov.ar:9101
1000 OK: maquinadirectora-dir Version: 1.38.11 (28 June 2006)
Enter a period to cancel a command.
*status
Using default Catalog name=MyCatalog DB=bacula
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: respaldadora-sd
      2: File
Select Storage resource (1-2): 1
Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103
[ ... delays long time without returns some results ... ]


The permissions over devices are corrects.

sparky:~# ll /dev/st0 /dev/sg2
crw-rw---- 1 root tape 21, 2 2007-12-12 11:54 /dev/sg2
crw-rw---- 1 root tape  9, 0 2007-12-12 11:54 /dev/st0

sparky:~# id bacula
uid=105(bacula) gid=105(bacula) grupos=105(bacula),26(tape)

In the bacula-sd.conf:

Autochanger {
  Name = Autochanger
  Device = Drive-1
  Device = Drive-2
  Device = Drive-3
  Device = Drive-4
  Device = Drive-5
  Device = Drive-6
  Device = Drive-7
  Device = Drive-8
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg2
}

Device {
  Name = Drive-1                  #
  Drive Index = 0
  Media Type = DLT-7000
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

[...]

Device {
  Name = Drive-8                    #
  Drive Index = 0
  Media Type = DLT-7000
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

Any idea to resolve this issue?

Thanks in advance.

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to