Aggiornamento Amanda a Debian Etch

From RVM Wiki
Jump to navigation Jump to search

Riscrittura amanda.conf

Conviene riscrivere il file di configurazione con il nuovo template DA EDITARE: /etc/amanda/DailySet1/amanda.conf

Modifica accessi

La nuova versione, ha un formato comprendente anche i servizi a cui l'utente ha accesso (amindexd amidxtaped).

Se non lo si aggiorna, non si riescea fare un restore e si ottiene l'errore:

AMRECOVER Version 2.5.1. Contacting server on localhost ...

NAK: amindexd: invalid service

sudo cp /etc/amandahosts /etc/amandahosts.old

cat | sudo tee /etc/amandahosts > /dev/null <<'EOFile'
localhost root amindexd amidxtaped
localhost.localdomain root amindexd amidxtaped
crosrv02 backup
crosrv02.mendrisio.cross.priv backup
firemen.mendrisio.cross.priv backup
fire.mendrisio.cross.priv backup
EOFile


Modifica servizi

Se non si sistema la configurazione dei servizi inetd, usando amcheck amrecover si ottiene l'errore:

AMRECOVER Version 2.5.1p2. Contacting server on linux-ba-srv01 ...

[request failed: timeout waiting for ACK]

Controllare i servizi, e se non sono corretti, correggerli:

cat /etc/services | grep ^am

amanda          10080/udp                       # amanda backup services
amandaidx       10082/tcp                       # amanda backup services
amidxtape       10083/tcp                       # amanda backup services

Modificare /etc/inetd.conf, sembra ci siano dei problemi con tcpd, quindi eliminarlo.

sudoedit /etc/inetd.conf
...
amanda          dgram   udp     wait    backup  /usr/lib/amanda/amandad        amandad          -auth=bsd amdump amindexd amidxtaped
amandaidx       stream  tcp     nowait  backup  /usr/lib/amanda/amindexd       amindexd -auth=bsd amdump amindexd amidxtaped
amidxtape       stream  tcp     nowait  backup  /usr/lib/amanda/amidxtaped     amidxtaped       -auth=bsd amdump amindexd amidxtaped
...

Riavviare inetd:

sudo /etc/init.d/openbsd-inetd restart

Testare con amcheck

sudo -u backup amcheck -c DailySet1

Testare con amrecover

sudo amrecover DailySet1

Configurazione di amrecover

Ora è necessario un file di configurazione, altrimenti all'atto dell'estrazione dei files si ottiene l'errore:

@DEFAULT_TAPE_DEVICE@ no such file

cat | sudo tee /etc/amanda/amanda-client.conf > /dev/null <<'EOFile'
#
# amanda.conf - sample Amanda client configuration file.
#
# This file normally goes in /etc/amanda/amanda-client.conf.
#

conf "DailySet1"                # your config name

index_server "localhost"        # your amindexd server
tape_server  "localhost"        # your amidxtaped server
tapedev      "/dev/nst0"                # your tape device

#   auth        - authentication scheme to use between server and client.
#                 Valid values are "bsd", "krb4", "krb5" and "ssh".  
#                 Default: [auth "bsd"]
auth "bsd"

ssh_keys ""                     # your ssh keys file if you use ssh auth

# You may include other amanda configuration files, so you can share
# dumptypes, tapetypes and interface definitions among several
# configurations.

#includefile "/etc/amanda/amanda-client.conf.main"
EOFile

Riferimenti