Amanda-Users

Re: Errors on labeling tape

2008-09-19 07:29:04
Subject: Re: Errors on labeling tape
From: Prashant Ramhit <prashant AT bluebarracuda DOT com>
To: Frank Smith <fsmith AT hoovers DOT com>, Marc Muehlfeld <Marc.Muehlfeld AT medizinische-genetik DOT de>
Date: Fri, 19 Sep 2008 12:20:27 +0100
Hi All,

Many thanks for your reply,
I figured it out, i was relating to an old documentation config from the internet.

My new holding disk config is a follows.

org "BackupServer - Daily Tape"
mailto "root"
dumpuser "amanda"
inparallel 4
netusage 600

# a filesystem is due for a full backup once every day
dumpcycle 0 days
tapecycle 10 tapes
runspercycle 1
runtapes 1

bumpsize 20 MB
bumpdays 1
bumpmult 4

tapedev "/dev/nst0"

tapetype LTO-4
labelstr "^FULLBACK-[0-9][0-9]*$"
infofile "/var/lib/amanda/fullback/curinfo"    # database filename
logdir   "/var/lib/amanda/fullback"            # log directory
indexdir "/var/lib/amanda/fullback/index"      # index directory

holdingdisk hd1 {
   comment "main holding disk"
   directory "/var/tmp/amanda"
   use 1000 Mb
#   chunksize 2 Gb      # size of chunk if you want big dump to be
}


define tapetype LTO-4 {
  comment "HP LTO4 800Gb - Compression Off"
  length 802816 mbytes
  filemark 0 kbytes
  speed 52616 kps
}

define dumptype global {
   # index yes
   # record no
}

define dumptype always-full {
   global
   comment "Full dump of this filesystem always"
   compress none
   priority high
   dumpcycle 0
}

define dumptype root-tar {
   global
   program "GNUTAR"
   comment "root partitions dumped with tar"
   compress none
   index
#    exclude list "/usr/local/lib/amanda/exclude.gtar"
   priority low
}

Many thanks for that

Kind Regards,
Prashant




Frank Smith wrote:
Prashant Ramhit wrote:
Hi All,

I am doing a daily backup of my system on an LTO-4 tape with a single tape drive.
When labelling the tape, I am receiving the errors described below.

Someone please give me a few notes on what is wrong.

Kind regards,
Prashant




###  Errors ##

root@backupserver:/etc/amanda/fullback# amlabel fullback FULLBACK-01
"/etc/amanda/fullback/amanda.conf", line 22: configuration keyword expected
"/etc/amanda/fullback/amanda.conf", line 22: end of line is expected
"/etc/amanda/fullback/amanda.conf", line 24: configuration keyword expected
"/etc/amanda/fullback/amanda.conf", line 24: end of line is expected
"/etc/amanda/fullback/amanda.conf", line 25: configuration keyword expected
"/etc/amanda/fullback/amanda.conf", line 27: configuration keyword expected
"/etc/amanda/fullback/amanda.conf", line 27: end of line is expected
"/etc/amanda/fullback/amanda.conf", line 42: dumptype parameter expected
"/etc/amanda/fullback/amanda.conf", line 42: end of line is expected
"/etc/amanda/fullback/amanda.conf", line 43: dumptype parameter expected
"/etc/amanda/fullback/amanda.conf", line 43: end of line is expected
"/etc/amanda/fullback/amanda.conf", line 44: dumptype parameter expected
amlabel: errors processing config file "/etc/amanda/fullback/amanda.conf"
root@backupserver:/etc/amanda/fullback#

What version of amanda are you running?  The line 22 of your config that
seems to be causing the error is diskdir "/var/tmp/amanda", and diskdir
doesn't seem to be a valid parameter in my version (and probably not
yours either since it is showing an error).  Is this a new install or
a currently running one, perhaps upgraded using the old config?

Frank

#### My Config ###


root@backupserver:/etc/amanda/fullback# more amanda.conf
org "Project Data - Daily Tape"
mailto "root"
dumpuser "amanda"
inparallel 4
netusage 600

# a filesystem is due for a full backup once every day
dumpcycle 0 days
tapecycle 10 tapes
runspercycle 1
runtapes 1

bumpsize 20 MB
bumpdays 1
bumpmult 4

tapedev "/dev/nst0"

tapetype LTO-4
labelstr "^FULLBACK-[0-9][0-9]*$"

diskdir "/var/tmp/amanda"
disksize 2000 MB
infofile "/var/lib/amanda/fullback/curinfo"
logfile "/var/log/amanda/fullback/log"

indexdir "/var/lib/amanda/fullback/index"

define tapetype LTO-4 {
   comment "HP LTO4 800Gb - Compression Off"
   length 802816 mbytes
   filemark 0 kbytes
   speed 52616 kps
}

define dumptype root-tar {
program "GNUTAR"
comment "root partition dump with tar"
options index, exclude-list "/etc/amanda/fullback/fullback.exclude"
priority high
}

### Tape Status ###


root@backupserver:/etc/amanda/fullback# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=0, block number=0, partition=0.
Tape block size 0 bytes. Density code 0x46 (no translation).
Soft error count since last status=0
General status bits on (41010000):
 BOT ONLINE IM_REP_EN
root@backupserver:/etc/amanda/fullback#






        



<Prev in Thread] Current Thread [Next in Thread>