Re: Configuração autoloader: bacula-dir.conf e/ou bacula-sd.conf ?

629 views
Skip to first unread message

Raul Libório

unread,
Jun 22, 2011, 4:56:08 PM6/22/11
to bacula-ba...@googlegroups.com
Olá Renato,

Tenha como exemplo esta configuração:

# bacula-sd.conf
#----------------------
Autochanger {
Name = PV-124T
Device = LTO-3
Changer Device = /dev/changer
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
#Maximum Changer Wait = 120

}

# Dispositivo
Device {
Name = LTO-3
Media Type = LTO-3
Archive Device = /dev/st0
AutomaticMount =yes
RemovableMedia = yes
RandomAccess = no
AutoChanger = yes
Autoselect = yes
AlwaysOpen = yes;
Maximum File Size = 35GB
Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Após configurar seu autochanger no sd, referencie-o no director:

# bacula-dir.conf
# Storage para backup em fita
Storage {
Name = PV-124T
Address = 10.0.10.32
SDPort = 9103
Device = LTO-3
Media Type = LTO-3
Password = "@@sxxx@@"

}

O seu não vai ficar muito diferente, acredito eu :)
Abraços,


#----------------------
2011/6/22 Renato L. Sousa <rens...@iqm.unicamp.br>:
> Boa tarde amigos,
>
> Estou enfrentando um problema na configuração de um autoloader HP 1/8 G2 com
> o bacula.  Fui orientando na lista a instalar o opensuse para facilitar a
> interface do equipamento com o sistema.  Agora, com o sistema instalado,
> estou enfrentando algum erro tosco de configuração.
>
> Minha dúvida é a seguinte:  Devo configurar o autoloader no bacula-dir.conf
> e no bacula-sd.conf ?
>
> Seguem minhas confs:
>
> bacula-dir.conf
>
> ...
>
>  Autochanger {
>
>  Name = "HP_Autoloader"
>
>  Device = HP_Drive
>
>  Changer Device = /dev/changer
>
>  Changer Command = "/usr/local/bacula/etc/mtx-changer %c %o %S %a %d"
>
> }
>
> Device {
>
>  Name = HP_Drive
>
>  Media Type = LTO-3
>
>  Archive Device = /dev/nst0
>
>  Autochanger = yes
>
>  LabelMedia = no;
>
>  AutomaticMount = yes;
>
>  AlwaysOpen = yes;
>
> }
>
> ...
>
>
> bacula-sd.conf
>
> Device {
>
>  Name = FileStorage
>
>  Media Type = File
>
>  Archive Device = /tmp
>
>  LabelMedia = yes;                   # lets Bacula label unlabeled media
>
>  Random Access = Yes;
>
>  AutomaticMount = yes;               # when device opened, read it
>
>  RemovableMedia = no;
>
>  AlwaysOpen = no;
>
> }
>
> Erro:
>
> /etc/init.d/bacula start
> Starting the Storage daemon
> Starting the File daemon
> Starting the Director daemon
> 22-Jun 17:47 bacula-dir: ERROR TERMINATION at parse_conf.c:934
> Config error: expected resource name, got: Autochanger
>            : line 181, col 12 of file /usr/local/bacula/etc//bacula-dir.conf
> Autochanger {
>
>
> OBS:  Já criei o link simbólico /dev/changer para /dev/sg3
>
> # ls -l /dev/changer
>
> lrwxrwxrwx 1 root root 3 Jun 15 23:28 /dev/changer ->  sg3
>
> # lsscsi -g
>
> [0:0:0:0]    disk    ATA      GB0250C8045      HPG1  /dev/sda   /dev/sg0
>
> [5:0:4:0]    tape    HP       Ultrium 3-SCSI   D22W  /dev/st0   /dev/sg2
>
> [5:0:4:1]    mediumx HP       1x8 G2 AUTOLDR   1.80  /dev/sch0  /dev/sg3
>
>
> Abraços,
>
> Renato
>
> --
> ---------------------------------------------
> Renato L. Sousa  - Administrador de Redes
>    Instituto de Química - UNICAMP
>             Campinas - SP
>
> --
> You received this message because you are subscribed to the Google Groups
> "Bacula Backup-Pt-Br" group.
> To post to this group, send email to bacula-ba...@googlegroups.com.
> To unsubscribe from this group, send email to
> bacula-backup-p...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/bacula-backup-pt-br?hl=en.
>
>

--
Raul Libório

http://rauhmaru.blogspot.com/
rauhmarutsªhotmailºcom
 openSUSE Member | Linux User #4444581

"There are only 10 types of people in the world -
Those who understand binary, and those who don't."

Renato L. Sousa

unread,
Jun 22, 2011, 4:48:37 PM6/22/11
to Bacula Backup-Pt-Br
Boa tarde amigos,

Estou enfrentando um problema na configura��o de um autoloader HP 1/8 G2

com o bacula. Fui orientando na lista a instalar o opensuse para
facilitar a interface do equipamento com o sistema. Agora, com o

sistema instalado, estou enfrentando algum erro tosco de configura��o.

Minha d�vida � a seguinte: Devo configurar o autoloader no

Seguem minhas confs:

bacula-dir.conf

...

Autochanger {

Name = "HP_Autoloader"

Device = HP_Drive

Changer Device = /dev/changer

}

Device {

Name = HP_Drive

Media Type = LTO-3

Archive Device = /dev/nst0

Autochanger = yes

LabelMedia = no;

AutomaticMount = yes;

AlwaysOpen = yes;

}

...


bacula-sd.conf

Device {

Name = FileStorage

Media Type = File

Archive Device = /tmp

Random Access = Yes;

RemovableMedia = no;

AlwaysOpen = no;

}

Erro:


OBS: J� criei o link simb�lico /dev/changer para /dev/sg3

# ls -l /dev/changer

lrwxrwxrwx 1 root root 3 Jun 15 23:28 /dev/changer -> sg3

# lsscsi -g

[0:0:0:0] disk ATA GB0250C8045 HPG1 /dev/sda /dev/sg0

[5:0:4:0] tape HP Ultrium 3-SCSI D22W /dev/st0 /dev/sg2

[5:0:4:1] mediumx HP 1x8 G2 AUTOLDR 1.80 /dev/sch0 /dev/sg3


Abra�os,

Renato

--
---------------------------------------------
Renato L. Sousa - Administrador de Redes

Instituto de Qu�mica - UNICAMP
Campinas - SP

Renato L. Sousa

unread,
Jun 22, 2011, 9:27:35 PM6/22/11
to bacula-ba...@googlegroups.com
Boa Raul!!!! Funfou!
Agora vou retomar a parte da execu��o dos backups nas fitas.
Deixa eu aproveitar e perguntar uma coisa. Onde ficam os logs do bacula ?

Abra�os,

Renato
Em 22/06/2011 17:56, Raul Lib�rio escreveu:
> Ol� Renato,
>
> Tenha como exemplo esta configura��o:


>
> # bacula-sd.conf
> #----------------------
> Autochanger {
> Name = PV-124T
> Device = LTO-3
> Changer Device = /dev/changer
> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> #Maximum Changer Wait = 120
>
> }
>
> # Dispositivo
> Device {
> Name = LTO-3
> Media Type = LTO-3
> Archive Device = /dev/st0
> AutomaticMount =yes
> RemovableMedia = yes
> RandomAccess = no
> AutoChanger = yes
> Autoselect = yes
> AlwaysOpen = yes;
> Maximum File Size = 35GB
> Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> }
>

> Ap�s configurar seu autochanger no sd, referencie-o no director:


>
> # bacula-dir.conf
> # Storage para backup em fita
> Storage {
> Name = PV-124T
> Address = 10.0.10.32
> SDPort = 9103
> Device = LTO-3
> Media Type = LTO-3
> Password = "@@sxxx@@"
>
> }
>

> O seu n�o vai ficar muito diferente, acredito eu :)
> Abra�os,
>

Raul Libório

unread,
Jun 26, 2011, 7:30:56 AM6/26/11
to bacula-ba...@googlegroups.com
Ficam no /var/log/messages, mas podem ser redirecionados:
http://www.bacula.org/5.0.x-manuals/en/main/main/Messages_Resource.html

Abs,

2011/6/22 Renato L. Sousa <rens...@iqm.unicamp.br>:

> Boa Raul!!!! Funfou!
> Agora vou retomar a parte da execução dos backups nas fitas.


> Deixa eu aproveitar e perguntar uma coisa.  Onde ficam os logs do bacula ?
>

> Abraços,
>
> Renato
> Em 22/06/2011 17:56, Raul Libório escreveu:
>>
>> Olá Renato,
>>
>> Tenha como exemplo esta configuração:


>>
>> # bacula-sd.conf
>> #----------------------
>> Autochanger {
>>   Name = PV-124T
>>   Device = LTO-3
>>   Changer Device = /dev/changer
>>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>>   #Maximum Changer Wait = 120
>>
>> }
>>
>> # Dispositivo
>> Device {
>>   Name = LTO-3
>>   Media Type = LTO-3
>>   Archive Device = /dev/st0
>>   AutomaticMount =yes
>>   RemovableMedia = yes
>>   RandomAccess = no
>>   AutoChanger = yes
>>   Autoselect = yes
>>   AlwaysOpen = yes;
>>   Maximum File Size = 35GB
>>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
>> }
>>

>> Após configurar seu autochanger no sd, referencie-o no director:


>>
>> # bacula-dir.conf
>> # Storage para backup em fita
>> Storage {
>>   Name = PV-124T
>>   Address = 10.0.10.32
>>   SDPort = 9103
>>   Device = LTO-3
>>   Media Type = LTO-3
>>   Password = "@@sxxx@@"
>>
>> }
>>

>> O seu não vai ficar muito diferente, acredito eu :)
>> Abraços,

Reply all
Reply to author
Forward
0 new messages