PDA

View Full Version : The Dumps Did Not Finish Properly



fedora
March 23rd, 2007, 06:51 AM
anyone pls tell me what ive missed. This is email report about mysql backup. I am using disk backup not tape. My amanda version was 2.5.1p3. Pleasee..

*** THE DUMPS DID NOT FINISH PROPERLY!

The next tape Amanda expects to use is: a new tape.

FAILURE AND STRANGE DUMP SUMMARY:
cent6.intra.abc.com /var/lib/mysql/DBTest RESULTS MISSING
planner: FATAL could not load tapelist "/etc/amanda/daily/tapelist"
driver: FATAL Did not get DATE line from planner


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

Chunks Taped 0 0 0
Avg Tp Write Rate (k/s) -- -- --


DUMP SUMMARY:
DUMPER STATS TAPER STATS
HOSTNAME DISK L ORIG-KB OUT-KB COMP% MMM:SS KB/s MMM:SS KB/s
-------------------------- ------------------------------------- -------------
cent6.intra. -sql/DBTest MISSING -------------------------------------------

(brought to you by Amanda version 2.5.1p3)

shailen
March 23rd, 2007, 10:51 AM
could you please post the following information.

your latest amdump file (should be amdump.1) from /etc/amanda/daily/

could you also post the contents of the /var/lib/mysql/DBTest directory.

While you are trying to backup your MySQL database - DBTest. Are the MySQL services running or are they shutdown???

Can you also run an amcheck daily and copy/paste the results?

Thanks!
-Shailen

fedora
March 24th, 2007, 09:59 AM
My answers is between ur questions.. This is my first time configured this things. Please advice..
P/S: I posted these logs after I created a empty tapelist file. The error in my previous (in email) was before I create tapelist file.


could you please post the following information.

your latest amdump file (should be amdump.1) from /etc/amanda/daily

amdump: start at Thu Mar 22 20:58:27 MYT 2007
amdump: datestamp 20070322
amdump: starttime 20070322205827
planner: pid 32169 executable /usr/lib/amanda/planner version 2.5.1p3
planner: build: VERSION="Amanda-2.5.1p3"
planner: BUILT_DATE="Wed Feb 7 13:07:39 PST 2007"
planner: BUILT_MACH="Linux rocky.zmanda.com 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01 EST 2006 i686 i686 i386 GNU/Linux"
planner: CC="gcc"
planner: CONFIGURE_COMMAND="'./configure' '--build=i386-redhat-linux' '-- prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib/am anda' '--datadir=/usr/share' '--sysconfdir=/etc' '--sharedstatedir=/var/lib/aman da' '--localstatedir=/var/lib/amanda' '--libdir=/usr/lib' '--includedir=/usr/inc lude' '--infodir=/usr/info' '--mandir=/usr/share/man' '--with-gnutar=/bin/tar' ' --with-gnutar-listdir=/var/lib/amanda/gnutar-lists' '--with-dumperdir=/usr/lib/a manda' '--with-index-server=localhost' '--with-tape-server=localhost' '--with-us er=amandabackup' '--with-group=disk' '--with-owner=paddy' '--with-fqdn' '--with- bsd-security' '--with-bsdtcp-security' '--with-bsdudp-security' '--with-ssh-secu rity' '--with-assertions'"
planner: paths: bindir="/usr/bin" sbindir="/usr/sbin"
planner: libexecdir="/usr/lib/amanda" mandir="/usr/share/man"
planner: AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
planner: CONFIG_DIR="/etc/amanda" DEV_PREFIX="/dev/"
planner: RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
planner: RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
planner: XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
planner: SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
planner: COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
planner: LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/Mail"
planner: listed_incr_dir="/var/lib/amanda/gnutar-lists"
planner: defs: DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
planner: DEFAULT_TAPE_SERVER="localhost" HAVE_MMAP HAVE_SYSVSHM
planner: LOCKING=POSIX_FCNTL SETPGRP_VOID ASSERTIONS DEBUG_CODE
planner: AMANDA_DEBUG_DAYS=4 BSD_SECURITY RSH_SECURITY USE_AMANDAHOSTS
planner: CLIENT_LOGIN="amandabackup" FORCE_USERID HAVE_GZIP
planner: COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
planner: COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
READING CONF FILES...
driver: pid 32170 executable /usr/lib/amanda/driver version 2.5.1p3
driver: Did not get DATE line from planner


could you also post the contents of the /var/lib/mysql/DBTest directory.
actually DBTest is a database. I copied from the other server

While you are trying to backup your MySQL database - DBTest. Are the MySQL services running or are they shutdown???

MySQL was running. If let say the network is down, could I get this error??

Can you also run an amcheck daily and copy/paste the results?

Amanda Tape Server Host Check
-----------------------------
Holding disk /var/amandahold/daily: 18819308 KB disk space available, using 18307308 KB
Changer problem: tapedev not specified in amanda.conf.
changer problem: tapedev not specified in amanda.conf. (expecting a new tape)
NOTE: info dir /var/amanda/curinfo/cent6.intra.abc.com/_var_lib_mysql_DBTest does not exist
NOTE: it will be created on the next run.
NOTE: index dir /var/amanda/index/cent6.intra.abc.com/_var_lib_mysql_DBTest does not exist
NOTE: it will be created on the next run.
Server check took 0.015 seconds

Thanks!
-Shailen

palaniappan
March 25th, 2007, 11:19 PM
Hi,

When u do amcheck -c <dump cfg name> & amcheck -s <dump cfg name> on server side.what error ur getting???

revert back with ur findings..

regds
palani

fedora
March 27th, 2007, 02:22 AM
amcheck -c daily
+++++++++++++
Amanda Backup Client Hosts Check
--------------------------------
WARNING: cent6.intra.abc.com: selfcheck request failed: timeout waiting for ACK
Client check: 1 host checked in 29.999 seconds, 1 problem found

(brought to you by Amanda 2.5.1p3)

amcheck -s daily
+++++++++++++
Amanda Tape Server Host Check
-----------------------------
Holding disk /var/amandahold/daily: 18818728 KB disk space available, using 18306728 KB
Changer problem: tapedev not specified in amanda.conf.
changer problem: tapedev not specified in amanda.conf. (expecting a new tape)
NOTE: info dir /var/amanda/curinfo/cent6.intra.abc.com/_var_lib_mysql_DBTest does not exist
NOTE: it will be created on the next run.
NOTE: index dir /var/amanda/index/cent6.intra.abc.com/_var_lib_mysql_DBTest does not exist
NOTE: it will be created on the next run.
Server check took 0.015 seconds

(brought to you by Amanda 2.5.1p3)


*** i think i can ignore "amcheck -s daily" bcoz i am using hard disk for backing up databases not tape but for the "amcheck -c daily", i have no idea to fix it. Correct me if i mistaken... thanks.

paddy
March 27th, 2007, 02:37 PM
Please check Amanda wiki (http://wiki.zmanda.com/).

http://wiki.zmanda.com/index.php/Amcheck:_selfcheck_request_failed

Paddy

fedora
March 28th, 2007, 11:31 PM
- I have checked in /etc/services. Got the amanda port 10080.
- I am using xinetd not inetd
- no errors in /var/log/messages instead of successfully reload the xinetd configuration
- I am installing using rpm files
- no firewall installed in my testing server

Questions;-

- I set amandabackup as a dumpuser in amada.conf, I ran "amcheck -c daily", It asked me to run user root as dumpuser. Then I changed it to root, it ok already. So, what is the amandabackup user for?

- If I used TCP when I "netstat -a | grep amanda", It showed LISTEN but UDP not. So, the protocol should be UDP or TCP?

- Dump log for "amdump.1", "amdump.2", "amdump.3" files were OK. no error inside but log.20070328114449.0 file got error like this:

START planner date 20070328114449
START driver date 20070328114449
INFO planner Adding new disk cent6.intra.abc.com:/var/lib/mysql/DBTest.
STATS driver startup time 0.013
ERROR taper no-tape [No writable valid tape found]
WARNING taper changer problem: tapedev not specified in amanda.conf.
ERROR planner Request to cent6.intra.abc.com failed: timeout waiting for ACK
FINISH planner date 20070328114449 time 30.009
WARNING driver WARNING: got empty schedule from planner
FINISH driver date 20070328114449 time 31.010

- amcheck -s daily is OK but amcheck -c daily still got same problem.. HELP ME!!!