Ok, I get to the executing the following commands
path/to/chg-multi -slot 1
path/to/amlabel -f bacup Backup01
And I get the error that the /backuplocation/amanda.conf is missing.
Has any one got the tapeless backup working on amanda-2.4.3 ???
joe
----- Original Message -----
From: "Daniel Negron/KBE" <danegron AT kbelectronics DOT net>
To: "Joe Young" <joeyoung AT involved DOT com>
Sent: Thursday, January 02, 2003 7:32 AM
Subject: Re: Tapeless backup? Wheres the howto! the man pages! HELP!!
I was given this by a guy in Romania, this worked with very little
problems. It solved my issue with the tapetype and tapdev portions. Hope
this helps !!!!
First of all...you have to get a version of amanda that supports hard disk
backup...
I use 2.4.2p2-tapeio for example... but from what I know the latest
versions of amanda have this option included...
After having installed an amanda version that supports tapeless backup,
comment out the following lines in amanda.conf:
#tapedev "/dev/nst1"
#rawtapedev "/dev/null" # the raw device to be used (ftape only)
#changerfile "/usr/adm/amanda/DailySet1/changer"
#changerfile "/usr/adm/amanda/DailySet1/changer-status"
#changerdev "/dev/null"
-change the value of "tpchanger" to "chg-multi"
-change the value of "tapetype" to one defined lower, in the #tapetypes
section:
define tapetype HARD-DISK {
comment "10GB Hard disk"
length 10000 mbytes
}
where 10000 represents the size of the virtual tape (obtained by dividing
the space allocated for backup to the number of virtual tapes).
-in the #dumptypes section, add a new directive:
define dumptype nocomp-user-gnutar {
global
program "GNUTAR"
comment "user partitions dumped with tar and no compression"
priority medium
}
-create in a directory of your choosing a directory for every virtual tape
you defined in the conf; every dir created for the v. tapes should contain
a subdir named "data" and a file "info" containing the text "position 1"
-modify the file chg-multi.conf; it should look something like this:
multieject 0
gravity 0
needeject 0
ejectdelay 0
statefile /usr/local/etc/amanda/backup/multi-changer-status
firstslot 1
lastslot 7
slot 1 file:/yourdir/t1
slot 2 file:/yourdir/t2
slot 3 file:/yourdir/t3
slot 4 file:/yourdir/t4
slot 5 file:/yourdir/t5
slot 6 file:/yourdir/t6
slot 7 file:/yourdir/t7
where t# is the dvirtual tape dir created above.
- execute the following commands:
path/to/chg-multi -slot 1
path/to/amlabel -f bacup Backup01
......................................................................
path/to/chg-multi -slot 7
path/to/amlabel -f bacup Backup07
where "Backup 0#" is a value given taking account of the param. "labelstr"
defined in amanda.conf
-last thing: run the command: path/to/amcheck configname.
Thank you,
-----------------------------------------------------------
--------- Daniel Negron
// \\ *****************
/ _ __ ___ \ Lotus Notes Admin / Developer
| | |/ /| _ ) | KB Electronic, Inc.
| | ' < | _ \ | 12095 NW 39th Street
| |_|\ \|___/ | Coral Springs, FL. 33065
\ \_\ / 954.346.4900 x 122
\\ // email: danegron AT kbelectronics DOT net
--------- http://www.kbelectronics.com
-----------------------------------------------------------
|--------+----------------------------->
| | "Joe Young" |
| | <joeyoung@involved.|
| | com> |
| | Sent by: |
| | owner-amanda-users@|
| | amanda.org |
| | |
| | |
| | 12/31/2002 03:56 PM|
| | |
|--------+----------------------------->
>---------------------------------------------------------------------------
-----------------------------------------------------------------|
|
|
| To: <amanda-users AT amanda DOT org>
|
| cc:
|
| Subject: Tapeless backup? Wheres the howto! the man pages!
HELP!! |
>---------------------------------------------------------------------------
-----------------------------------------------------------------|
Joseph Young
Involved.com
There is not much documentation in setting up AMANDA to be backuped up to a
Hard Drive. I checked web sites, the MAN pages, the mailing lists. And
three
weeks of trying to do this on my own, I need help.
I get the errors in the logs
driver: adding holding disk 0 dir /backup/dumps size 296960
reserving 296960 out of 296960 for degraded-mode dumps
driver: start time 30.057 inparallel 4 bandwidth 2000 diskspace 296960
dir OBSOLETE datestamp 20021231
driver: drain-ends tapeq LFFO big-dumpers sssS
driver: result time 30.057 from taper: TAPE-ERROR [rewinding tape:
Input/output error]
dump of driver schedule before start degraded mode:
I know that this happens where a commment out tpchanger amanda.conf. I
don't
think that I should have "chg-manual".
HELP!!!( at the bottom are the steps that I went through)
joe
These are the steps that I followed. There are from
http://www.asp.ogi.edu/~pchytil/linux/amanda/
amanda
./configure --without-client --with-index-server=server.backup.com
--with-us
er=amanda --with-group=amanda --with-config=Involved
--with-tape-server=serv
er.backup.com --with-tape-device=file:/backup --with-gnutar=/bin/tar
--with-
gnutar-listdir=/usr/local/etc/amanda/gnutar-lists --with-amandahosts
--with-
buffered-dump --with-assertions --with-debugging=/var/log/debug
--enable-sha
red
if you are going to use samba you have to add two following
options: --with-smbclient=/usr/bin/smbclient --with-samba-user=backup and
create /etc/amandapass file with umask 400, containing path to winPC
(//vega/c) + password for backup("blable")
make
make check
make install
mkdir /var/log/debug
chown amanda.amanda /var/log/debug
mkdir /usr/local/etc/amanda
mkdir /usr/local/etc/amanda/gnutar-lists
mkdir /usr/local/etc/amanda/Involved
mkdir /usr/local/etc/amanda/Involved/curinfo
mkdir /usr/local/etc/amanda/Involved/log
mkdir /usr/local/etc/amanda/Involved/index
touch /usr/local/etc/amanda/Involved/disklist
touch /usr/local/etc/amanda/Involved/tapelist
touch /usr/local/etc/amanda/Involved/exclude
chown -R amanda.amanda /usr/local/etc/amanda
touch /etc/amandates
chown backup /etc/amandates
chgrp backup /etc/amandates
vi /etc/inetd.conf and add following lines
amandaidx stream tcp nowait bin /usr/local/libexec/amindexd amindexd
amidxtape stream tcp nowait bin /usr/local/libexec/amidxtaped amidxtaped
My amanda.conf has this
runtapes 1 # number of tapes to be used in a single run of
amdump
#tpchanger "chg-manual" # the tape-changer glue script
#tapedev "/dev/null" # the no-rewind tape device to be used
#rawtapedev "/dev/null" # the raw device to be used (ftape only)
tapedev "file:/backup/"
changerfile "/var/log/amanda/Involved/changer"
#changerfile "/usr/adm/amanda/DailySet1/changer-status"
#changerfile "/usr/local/etc/amanda/DailySet1/changer.conf"
changerdev "/dev/null"
tapetype HP-DAT # what kind of tape it is (see tapetypes below)
labelstr "^Involved[0-9][0-9]*$"
|