On Fri, Nov 16, 2018 at 7:36 PM Gene Heskett <ghesk...@shentel.net> wrote:
>
> On Friday 16 November 2018 15:38:27 Debra S Baddorf wrote:
>
> > > On Nov 16, 2018, at 2:09 PM, Gene Heskett <ghesk...@shentel.net>
> > > wrote:
> > >
> > > On Friday 16 November 2018 14:38:58 Chris Nighswonger wrote:
> > >> On Fri, Nov 16, 2018 at 2:30 PM Gene Heskett <ghesk...@shentel.net>
> > >
> > > wrote:
> > >>> from amanda as usr, find /usr/local -name 'planner'
> > >>> returns that its in /usr/local/libexec/amanda/planner
> > >>> Now I'll find out (maybe) what it thinks of my changes. Ignore
> > >>> that faint knocking sound. :) But I assumed you meant backup_job
> > >>> was your config dir, in my case /usr/local/etc/amanda/Daily so it
> > >>> failed.
> > >>
> > >> backup_job is the name of the backup rather than the directory. So
> > >> in my case it looks like this:
> > >>
> > >> /usr/lib/amanda/planner campus
> > >
> > > ooohhkkaaay. Can I use wild cards like "Daily  PublicA*" ?
> > >
> > > No, the logfile error already posted prevents it from running so it
> > > never gets to PublicA in any form.
> > >
> > >> Be sure to run it as your backup user.
> > >
> > > amanda in this case.
> > >
> > >> Sorry for any confusion there.
> > >>
> > >> Kind regards,
> > >> Chris
> > >
> > > Thanks Chris
> >
> > I’m not familiar with the syntax,  but I would suspect it wants
> > planner   <configname>  node  <DLE-Nickname>
> >
> > which in my case, is the  “homeu” word in the following:
> > node   homeu   /home   {
> >    include “./u*”
> > }
> >
> > You have to give it a nickname,  because ALL the DLEs for this
> > disk  (“/home”)   are based on that same disk location   /home
> > So you nickname the  A parts,  or the  AF  (a-f) parts, etc.
> >
> > If it WASN’T a  tar  subset  (using includes or excludes)  then you
> > would skip the nickname and just put the disk area    /home
> > But for subsets,  you need a name for each one.
> >
> > Deb Baddorf
> The dle's in question:
>
> coyote PublicAar /home/gene/PublicA/ {
>         comp-coyote-tar
>         include "./[a-r]*" "./[-]*"  "./_*"
>         } 1 local
>
> coyote PublicAsz /home/gene/PublicA/ {
>         comp-coyote-tar
>         include "./[s-z]*"
>         } 1 local
>
> coyote PublicAAZ /home/gene/PublicA {
>         comp-coyote-tar
>         include "./[A-Z]*"
>         } 1 local
>
> /usr/local/libexec/amanda/planner Daily coyote PublicA*
> gets me:
> planner: pid 4411 executable /usr/local/libexec/amanda/planner version
> 3.5.1
> planner: build: VERSION="Amanda-3.5.1"
> planner:        BUILT_DATE="Fri Nov 9 20:28:49 EST 2018" BUILT_MACH=""
> planner:        BUILT_REV="7557" BUILT_BRANCH="tags" CC="gcc"
> planner: paths: bindir="/usr/local/bin" sbindir="/usr/local/sbin"
> planner:        libexecdir="/usr/local/libexec"
> planner:        amlibexecdir="/usr/local/libexec/amanda"
> planner:        mandir="/usr/local/share/man" AMANDA_TMPDIR="/tmp/amanda"
> planner:        AMANDA_DBGDIR="/tmp/amanda-dbg/"
> planner:        CONFIG_DIR="/usr/local/etc/amanda" DEV_PREFIX="/dev/"
> planner:        DUMP=UNDEF RESTORE=UNDEF 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:        LPR="/usr/bin/lpr" MAILER="/usr/bin/Mail"
> planner:        listed_incr_dir="/usr/local/var/amanda/gnutar-lists"
> planner: defs:  DEFAULT_SERVER="coyote" DEFAULT_CONFIG="DailySet1"
> planner:        DEFAULT_TAPE_SERVER="coyote" DEFAULT_TAPE_DEVICE=""
> planner:        NEED_STRSTR AMFLOCK_POSIX AMFLOCK_FLOCK AMFLOCK_LOCKF
> planner:        AMFLOCK_LNLOCK SETPGRP_VOID AMANDA_DEBUG_DAYS=4
> BSD_SECURITY
> planner:        USE_AMANDAHOSTS CLIENT_LOGIN="amanda" CHECK_USERID
> HAVE_GZIP
> planner:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
> planner:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
> planner:
> CONFIGURE_ARGS=" '--with-user=amanda' '--with-group=disk' 
> '--with-owner=amanda' '--with-gnu-ld' '--prefix=/usr/local/' 
> '--with-debugging=/tmp/amanda-dbg/' '--with-tape-server=coyote' 
> '--with-bsdtcp-security' '--with-amandahosts' 
> '--with-configdir=/usr/local/etc/amanda' '--enable-manpage-build' 
> '--with-readline' '--with-gnutar=/bin/tar' 
> '--with-security-file=/etc/amanda-security.conf' 
> '--with-amandates-file=/etc/amandates'"
> planner: could not open log file (null): Bad address
>
> So the above last line seems to be the showstopper

Odd. It appears that it thinks your configuration file for Daily is
missing a logdir directive...

My production server planner version is 3.3.6.

The 4.0.0alpha planner appears to have a few options which the 3.3.6
version does not:

--starttime
--log-filename
--no-taper
--no-dump
--no-flush
--no-vault
--from-client
--exact-match

The general syntax seems to be such as this:

/usr/lib/amanda/planner configuration [options] host diskname

Anyway, here is the planner output from my server run against a single DLE:

backup@scriptor:~ /usr/lib/amanda/planner campus fileserver.foo.bar CAMPUS_a-f
planner: pid 21386 executable /usr/lib/amanda/planner version 3.3.6
planner: build: VERSION="Amanda-3.3.6"
planner:        BUILT_DATE="Tue Dec 29 05:11:51 UTC 2015" BUILT_MACH=""
planner:        BUILT_REV="5813" BUILT_BRANCH="tags" CC="gcc"
planner: paths: bindir="/usr/sbin" sbindir="/usr/sbin"
planner:        libexecdir="/usr/lib/amanda"
planner:        amlibexecdir="/usr/lib/amanda" mandir="/usr/share/man"
planner:        AMANDA_TMPDIR="/tmp/amanda"
planner:        AMANDA_DBGDIR="/var/log/amanda" CONFIG_DIR="/etc/amanda"
planner:        DEV_PREFIX="/dev/" RDEV_PREFIX="/dev/r"
planner:        DUMP="/sbin/dump" RESTORE="/sbin/restore" VDUMP=UNDEF
planner:        VRESTORE=UNDEF XFSDUMP="/sbin/xfsdump"
planner:        XFSRESTORE="/sbin/xfsrestore" VXDUMP=UNDEF VXRESTORE=UNDEF
planner:        SAMBA_CLIENT="/usr/bin/smbclient" GNUTAR="/bin/tar"
planner:        COMPRESS_PATH="/bin/gzip" UNCOMPRESS_PATH="/bin/gzip"
planner:         LPRCMD=UNDEF  MAILER=UNDEF
planner:        listed_incr_dir="/var/lib/amanda/gnutar-lists"
planner: defs:  DEFAULT_SERVER="localhost" DEFAULT_CONFIG="DailySet1"
planner:        DEFAULT_TAPE_SERVER="localhost" DEFAULT_TAPE_DEVICE=""
planner:        NEED_STRSTR AMFLOCK_POSIX AMFLOCK_FLOCK AMFLOCK_LOCKF
planner:        AMFLOCK_LNLOCK SETPGRP_VOID AMANDA_DEBUG_DAYS=4 BSD_SECURITY
planner:        USE_AMANDAHOSTS CLIENT_LOGIN="backup" CHECK_USERID HAVE_GZIP
planner:        COMPRESS_SUFFIX=".gz" COMPRESS_FAST_OPT="--fast"
planner:        COMPRESS_BEST_OPT="--best" UNCOMPRESS_OPT="-dc"
planner:        CONFIGURE_ARGS=" '--prefix=/usr' '--bindir=/usr/sbin'
'--libexecdir=/usr/lib/amanda' '--without-amlibexecdir'
'--without-amperldir' '--sysconfdir=/etc' '--sharedstatedir=/var/lib'
'--localstatedir=/var/lib' '--with-user=backup' '--with-group=backup'
'--with-tcpportrange=50000,50100' '--with-udpportrange=840,860'
'--with-debugging=/var/log/amanda'
'--with-gnutar-listdir=/var/lib/amanda/gnutar-lists'
'--with-index-server=localhost' '--with-bsd-security'
'--with-smbclient=/usr/bin/smbclient' '--with-amandahosts'
'--with-ssh-security' '--with-bsdtcp-security'
'--with-bsdudp-security' '--without-ipv6' '--enable-s3-device'
'CFLAGS=-g -O2 -fPIE -fstack-protector-strong -Wformat
-Werror=format-security' 'LDFLAGS=-Wl,-Bsymbolic-functions -fPIE -pie
-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'"
READING CONF INFO...
DATE 20181116204223
planner: timestamp 20181116204223
planner: tape_length is set from tape length (794405408 KB) * runtapes
(1) == 794405408 KB
planner: time 0.000: startup took 0.000 secs

SENDING FLUSHES...
Cleaning up holding disk '/storage/campus'
 ..cleaning up holding directory '20181115010002'
Invalid holding file 'someother-dt.foo.bar.C__Documents and Settings.1'
 ..cleaning up holding directory '20181112020001'
Invalid holding file 'some-dt.foo.bar.C__Users_some.1'
 ..cleaning up holding directory '20181108020002'
Invalid holding file 'someother-dt.foo.bar.C__Users_someother.0'
ENDFLUSH
ENDFLUSH

SETTING UP FOR ESTIMATES...
planner: time 0.001: setting up estimates for fileserver.foo.bar:CAMPUS_a-f
setup_estimate: fileserver.foo.bar:CAMPUS_a-f: command 0, options:
none    last_level 0 next_level0 4 level_days 1    getting estimates 0
(-3) 1 (-3) -1 (-3)
planner: time 0.001: setting up estimates took 0.000 secs

GETTING ESTIMATES...
planner time 1.048: got result for host fileserver.foo.bar disk
CAMPUS_a-f: 0 -> 54771040K, 1 -> 16700K, -1 -> -3K
planner: time 1.099: got partial result for host fileserver.foo.bar
disk CAMPUS_a-f: 0 -> 54771040K, 1 -> 16700K, -1 -> -3K
planner: time 1.099: got partial result for host fileserver.foo.bar
disk CAMPUS_a-f: 0 -> 54771040K, 1 -> 16700K, -1 -> -3K
planner: time 1.100: got result for host fileserver.foo.bar disk
CAMPUS_a-f: 0 -> 54771040K, 1 -> 16700K, -1 -> -3K
planner: time 1.100: getting estimates took 1.098 secs
FAILED QUEUE: empty
DONE QUEUE:
  0: fileserver.foo.bar CAMPUS_a-f

ANALYZING ESTIMATES...
pondering fileserver.foo.bar:CAMPUS_a-f... next_level0 4 last_level 0
(not due for a full dump, picking an incr level)
   picklev: last night 0, so tonight level 1
  curr level 1 nsize 16700 csize 1912 total size 7603 total_lev0 0
balanced-lev0size 8836965
INITIAL SCHEDULE (size 7603):
  fileserver.foo.bar CAMPUS_a-f pri 1 lev 1 nsize 16700 csize 1912

DELAYING DUMPS IF NEEDED, total_size 7603, tape length 794405408 mark 1385
  delay: Total size now 7603.

PROMOTING DUMPS IF NEEDED, total_lev0 0, balanced_size 8836965...
planner: time 1.100: analysis took 0.000 secs

GENERATING SCHEDULE:
--------
DUMP fileserver.foo.bar ffffffff9efefbffffffffff1f CAMPUS_a-f
20181116204223 1 1 2018:11:16:6:0:1 16700 1912 382 5 "Skipping:
strategy NOINC can't be dumped in degraded mode"
DUMP fileserver.foo.bar ffffffff9efefbffffffffff1f CAMPUS_a-f
20181116204223 1 1 2018:11:16:6:0:1 16700 1912 382 5 "Skipping:
strategy NOINC can't be dumped in degraded mode"
--------
backup@scriptor:~

Reply via email to