On Thursday, 13 December 2007 09:58:55 +0100,
Arno Lehmann wrote:

> Hi,

Hi Arno. Thanks for your response.

> > This is my first mail to the list. I'm newbie with Bacula.
 
> I noticed that, when looking at the configuration ;-)

The humor sense in a mailing list always is welcome :-)))

> > I'm using Bacula version (1.38.11-8) from Debian Etch for Sparc
> > respositories.

> I recommend upgrading to 2.2.6, even if that means installing from
> source. 1.38 is really outdated by now.

Yes, I thought that too. I keep it in mind for futures upgrades after
this version turns operative.

> > sparky:~# mtx -f /dev/sg2 status
> >   Storage Changer /dev/sg2:1 Drives, 8 Slots ( 0 Import/Export )
 
> Keep this in mind... you've got one drive and 8 slots.

Good. I took the slots as drives. I see the mistake.

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

> > 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 ... ]
 
> Really no output, it just returns to the '*' prompt?

Well, really now I can see the following output after a long time. But
this long delay only happened the first time I perform the 'status
storage'. Later that, the result was instantaneous.

Device status:
Autochanger "Autochanger" with devices:
   "Drive-1" (/dev/nst0)
   "Drive-2" (/dev/nst0)
   "Drive-3" (/dev/nst0)
   "Drive-4" (/dev/nst0)
   "Drive-5" (/dev/nst0)
   "Drive-6" (/dev/nst0)
   "Drive-7" (/dev/nst0)
   "Drive-8" (/dev/nst0)
Device "FileStorage" (/tmp) is not open or does not exist.
Device "Drive-1" (/dev/nst0) open but no Bacula volume is mounted.
    Drive 0 is not loaded.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
Device "Drive-2" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-3" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-4" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-5" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-6" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-7" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
Device "Drive-8" (/dev/nst0) is not open or does not exist.
    Drive 0 is not loaded.
====

In Use Volume status:
====


> > In the bacula-sd.conf:
 
> > Autochanger {
> >   Name = Autochanger
> >   Device = Drive-1
> >   [...]
> >   Device = Drive-8
 
> There should be only one device entry here.

> >   Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
> >   Changer Device = /dev/sg2
> > }
 
> Drive 2 to 8 are not correct.
 
> Remove the unneeded device lines from the SD configuration. Then make
> sure the 'status storage' command returns with some information at
> all. Even if the DIR can't connect or authenticate to the DIR, there
> should be a message.

I modified the autochanger resource definition. Now, does it look
better? :-)

Autochanger {
  Name = Autochanger
  Device = Drive-1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg2
}

Device {
  Name = Drive-1                  #
  Media Type = DLT-7000
  Archive Device = /dev/nst0
  Autochanger = yes
  LabelMedia = no
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes
}

This is the output of 'status storage':

*status storage
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

respaldadora-sd Version: 1.38.11 (28 June 2006) sparc-unknown-linux-gnu debian 
4.0
Daemon started 13-dic-07 06:33, 0 Jobs run since started.

Running Jobs:
No Jobs running.
====

Jobs waiting to reserve a drive:
====

Terminated Jobs:
JobId  Level   Files          Bytes Status   Finished        Name
======================================================================
    1  Full          0              0 Other    11-dic-07 15:20 Backup_Usuarios
    2  Full          0              0 Cancel   13-dic-07 01:17 Backup_Usuarios
====

Device status:
Autochanger "Autochanger" with devices:
   "Drive-1" (/dev/nst0)
Device "FileStorage" (/tmp) is not open or does not exist.
Device "Drive-1" (/dev/nst0) open but no Bacula volume is mounted.
   Slot 1 is loaded in drive 0.
   Total Bytes Read=0 Blocks Read=0 Bytes/block=0
   Positioned at File=0 Block=0
====

In Use Volume status:
====

Then, I try label the volumes but I got an input/output error message
after a delay. Performing the operation over another slot shows the same
error.

The defined Storage resources are:
     1: respaldadora-sd
     2: File
Select Storage resource (1-2): 1
Enter autochanger drive[0]:
Enter new Volume name: TestVolume1
Enter slot (0 or Enter for none): 1
Automatically selected Pool: Default
Connecting to Storage daemon respaldadora-sd at sparky.educ.gov.ar:9103...
Sending label command for Volume "TestVolume1" Slot 1 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3304 Issuing autochanger "load slot 1, drive 0" command.
3305 Autochanger "load slot 1, drive 0", status is OK.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3912 Failed to label Volume: ERR=dev.c:678 Rewind error on "Drive-1"
(/dev/nst0). ERR=Error de entrada/salida.

Label command failed for Volume TestVolume1.
Do not forget to mount the drive!!!

Any idea? The permissions are correct, I think.

sparky:/etc/bacula# 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:/etc/bacula# id bacula
uid=105(bacula) gid=105(bacula) grupos=105(bacula),26(tape)

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