[Ubuntu-BR] Servidor de Backup (Amanda) com Ubuntu 5.10
Paulo Marchi
paulo.marchi em gmail.com
Segunda Dezembro 5 20:46:00 UTC 2005
Olá Pessoal ...
Estou com problemas para realizar o backup com Amanda.
Aqui esta todas as informções de configuração:
/_*
Servidor de BACKUP
Distruição Ubuntu Linux 5.10 e Amanda
*_/*Meu amanda.conf em /etc/amanda/DailySet1:*
org "DailySet1" # Nome descritivo para as mensagens
mailto "backupadmin em amparo.sp.gov.br" # Email de quem irá receber os logs
dumpuser "backup" # Usuário dono dos backups
inparallel 1 # Procesos em paralelo
netusage 10 # Uso máximo de banda em Kbps
dumpcycle 0 days # Número de dias de um ciclo completo
tapecycle 1 # Número de "fitas"
runtapes 1 # Quantas fitas usar por ciclo
tpchanger "chg-multi" # Script controlador de fitas
changerfile "/etc/amanda/DailySet1/changer.conf" # Configuração das fitas
tapetype HARD-DISK # Tipo de armazenamento
labelstr "^HISS[0-9][0-9]*$" # Expressão regular das etiquetas das fitas
infofile "/var/lib/amanda/DailySet1/curinfo" # Diretório de datos
logfile "/var/log/amanda/DailySet1/log" # Diretório de log
indexdir "/var/lib/amanda/DailySet1/index" # Diretório de índice
amrecover_changer "chg-multi" # Seleciona as fitas automaitcamente no
restore
# definição de arquivamento com dump
define dumptype hard-disk-dump {
comment "Backup no HD - usando dump"
holdingdisk no
index yes
options compress-fast, index, exclude-list
"/etc/amanda/exclude.gtar"
priority high
}
# Definição do armazenamento com tar
define tapetype HARD-DISK {
comment "HD"
length 10000 mbytes # 10 GB de espaço
}
# Definição de armazenamento com 'tar'
define dumptype hard-disk-tar {
program "GNUTAR"
hard-disk-dump
comment "Backup para disco - usando tar"
}
*Arquivo disklist:*
webserver.dmz.amparo.sp.gov.br /etc hard-disk-tar
*Arquivo amandahosts:*
localhost backup
bkpserver.dmz.amparo.sp.gov.br root
webserver.dmz.amparo.sp.gov.br backup
webserver.dmz.amparo.sp.gov.br root
*Arquivo xinetd.conf :*
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
}
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = backup
server = /usr/lib/amanda/amandad
}
service amandaidx
{
socket_type = stream
protocol = tcp
wait = no
user = backup
server = /usr/lib/amanda/amindexd
}
service amidxtape
{
socket_type = stream
protocol = tcp
wait = no
user = backup
server = /usr/lib/amanda/amidxtaped
}
includedir /etc/xinetd.d
*
Arquivo /etc/services:*
amanda 10080/tcp # amanda backup services
amanda 10080/udp
*Arquivo charger.conf*
multieject 0
gravity 0
needeject 0
ejectdelay 0
statefile /var/lib/amanda/DailySet1/changer-status
firstslot 1
lastslot 1
slot 1 file:/home/backup/tape01
*Relatório do Mail Agora após amdump DailySet1:
*
These dumps were to tape HISS01.
The next tape Amanda expects to use is: HISS01.
FAILURE AND STRANGE DUMP SUMMARY:
planner: ERROR webserver.dmz.amparo.sp.gov.br: [access as backup not allowed from backup em bkpserver.dmz.amparo.sp.gov.br] amandahostsauth failed
webserver. /etc RESULTS MISSING
STATISTICS:
Total Full Incr.
-------- -------- --------
Estimate Time (hrs:min) 0:00
Run Time (hrs:min) 0:00
Dump Time (hrs:min) 0:00 0:00 0:00
Output Size (meg) 0.0 0.0 0.0
Original Size (meg) 0.0 0.0 0.0
Avg Compressed Size (%) -- -- --
Filesystems Dumped 0 0 0
Avg Dump Rate (k/s) -- -- --
Tape Time (hrs:min) 0:00 0:00 0:00
Tape Size (meg) 0.0 0.0 0.0
Tape Used (%) 0.0 0.0 0.0
Filesystems Taped 0 0 0
Avg Tp Write Rate (k/s) -- -- --
USAGE BY TAPE:
Label Time Size % Nb
HISS01 0:00 0k 0.0 0
NOTES:
planner: tapecycle (1) <= runspercycle (1)
planner: Adding new disk webserver.dmz.amparo.sp.gov.br:/etc.
driver: WARNING: got empty schedule from planner
taper: tape HISS01 kb 0 fm 0 [OK]
DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-kB OUT-kB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------- --------------------------------- ------------
webserver.dm /etc MISSING --------------------------------------
(brought to you by Amanda version 2.4.5)
/_*CONFIGURAÇÃO NO CLIENTE*_/
*Arquivo amandahosts:*
localhost backup
webserver.dmz.amparo.sp.gov.br backup
webserver.dmz.amparo.sp.gov.br root
*Arquivo xinetd.conf*
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
}
service amanda
{
socket_type = dgram
protocol = udp
wait = yes
user = backup
server = /usr/lib/amanda/amandad
}
includedir /etc/xinetd.d
*
Arquivo /etc/services :*
amanda 10080/tcp # amanda backup services
amanda 10080/udp
Verifiquei todas permissões e dono. Esta tudo correto.
Não sei o que estou fazendo de errado....
Ambas os hosts conseguem se pingar ....
Utulizei as configurações do artigo do dicas-l
http://www.dicas-l.com.br/dicas-l/20041213.php
HELP !!!!!!!!!!!!
Desde já obrigado,
--
--------------------------------------
Paulo E. M. Marchi
Eng. de Computação
E-mail: paulo.marchi em gmail.com
____
/ __ \
\ _\_| | E N T O O
/ / L I N U X
\__/
http://creativecommons.org
http://www.gnu.org/copyleft/gpl.html
More information about the ubuntu-br
mailing list