Amanda-Users

sendsize.c

2005-08-01 14:57:42
Subject: sendsize.c
From: "LaValley, Brian E" <BLaValley AT ALLEGROMICRO DOT com>
To: "Amanda (E-mail)" <amanda-users AT amanda DOT org>
Date: Mon, 1 Aug 2005 14:57:18 -0400
How do you implement this modified sendsize.c I am hearing so much about.
I tried compiling and simply replacing the old one.  Now I get a format
error.

amandad: debug 1 pid 31771 ruid 548 euid 548: start at Mon Aug  1 14:37:11
2005
amandad: version 2.4.4p2
amandad: build: VERSION="Amanda-2.4.4p2"
amandad:        BUILT_DATE="Tue Jul 19 08:55:44 EDT 2005"
amandad:        BUILT_MACH="Linux blavalley-l 2.6.11-1.35_FC3smp #1 SMP Mon
Jun 13 01:17:35 EDT 2005 i686 i686 i386 GNU/Linux"
amandad:        CC="gcc"
amandad:        CONFIGURE_COMMAND="'./configure' '--prefix=/opt/amanda'"
amandad: paths: bindir="/opt/amanda/bin" sbindir="/opt/amanda/sbin"
amandad:        libexecdir="/opt/amanda/libexec" mandir="/opt/amanda/man"
amandad:        AMANDA_TMPDIR="/tmp/amanda" AMANDA_DBGDIR="/tmp/amanda"
amandad:        CONFIG_DIR="/opt/amanda/etc/amanda" DEV_PREFIX="/dev/"
amandad:        RDEV_PREFIX="/dev/" DUMP="/sbin/dump"
amandad:        RESTORE="/sbin/restore" VDUMP=UNDEF VRESTORE=UNDEF
amandad:        XFSDUMP=UNDEF XFSRESTORE=UNDEF VXDUMP=UNDEF VXRESTORE=UNDEF
amandad:        SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/gtar"
amandad:        COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
amandad:        LPRCMD="/usr/bin/lpr" MAILER="/usr/bin/Mail"
amandad:        listed_incr_dir="/opt/amanda/var/amanda/gnutar-lists"
amandad: defs:  DEFAULT_SERVER="blavalley-l" DEFAULT_CONFIG="daily"
amandad:        DEFAULT_TAPE_SERVER="blavalley-l"
amandad:        DEFAULT_TAPE_DEVICE="/dev/null" HAVE_MMAP HAVE_SYSVSHM
amandad:        LOCKING=POSIX_FCNTL SETPGRP_VOID DEBUG_CODE
amandad:        AMANDA_DEBUG_DAYS=4 BSD_SECURITY USE_AMANDAHOSTS
amandad:        CLIENT_LOGIN="backup" FORCE_USERID HAVE_GZIP
amandad:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
amandad:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
amandad: time 0.000: got packet:
--------
Amanda 2.4 REQ HANDLE 000-08308109 SEQ 1122921432
SECURITY USER backup
SERVICE sendsize
OPTIONS features=fffffeff9ffe0f;maxdumps=1;hostname=blavalley-l;
GNUTAR /home 0 1970:1:1:0:0:0 -1 OPTIONS
|;bsd-auth;srvcomp-best;index;exclude-list=/opt/amanda/etc/amanda/daily/excl
ude.gtar;
--------

amandad: time 0.000: sending ack:
----
Amanda 2.4 ACK HANDLE 000-08308109 SEQ 1122921432
----

amandad: time 0.001: bsd security: remote host blavalley-l user backup local
user backup
amandad: time 0.001: amandahosts security check passed
amandad: time 0.001: running service "/opt/amanda/libexec/sendsize"
amandad: time 0.017: sending REP packet:
----
Amanda 2.4 REP HANDLE 000-08308109 SEQ 1122921432
OPTIONS maxdumps=1;
FORMAT ERROR IN REQUEST PACKET
----

amandad: time 0.017: got packet:
----
Amanda 2.4 ACK HANDLE 000-08308109 SEQ 1122921432
----

amandad: time 0.017: pid 31771 finish time Mon Aug  1 14:37:11 2005
----------------------------------------------------------------------------
-------------------------------------------------------------------



Or you need to use the modified sendsize that uses calcsize to calculate
the sizes ..

calcsize can do estimates at about 500G per hour (and that's full dump,
incremantal current level and incremental next level).

Tar does about 150G per hour, but that's only for one level .. so it has to
do it 3 times.

So doing 500G estimate with tar takes well over 9 hours.
with calcsize it's done in an hour ..


Attached my modified sendsize.c




Kind regards,
 --
Gerhard den Hollander                           Phone +31-10.280.1515
Technical Support Jason Geosystems BV           Fax   +31-10.280.1511
                                   (When calling please note: we are in
GMT+1)
gdenhollander AT jasongeo DOT com                          POBox 1573
visit us at http://www.jasongeo.com                 3000 BN Rotterdam  
JASON.......#1 in Reservoir Characterization        The Netherlands

      This e-mail and any attachment is/are intended solely for the named
  addressee(s) and may contain information that is confidential and
privileged.
       If you are not the intended recipient, we request that you do not
         disseminate, forward, distribute or copy this e-mail message.
      If you have received this e-mail message in error, please notify us
           immediately by telephone and destroy the original message.

["sendsize.c" (text/plain)]

<Prev in Thread] Current Thread [Next in Thread>
  • sendsize.c, LaValley, Brian E <=