Amanda-Users

Re: missing function in amanda?

2007-03-20 14:38:33
Subject: Re: missing function in amanda?
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Tue, 20 Mar 2007 14:28:30 -0400
On Tuesday 20 March 2007, Jean-Louis Martineau wrote:
>Gene Heskett wrote:
>> Greetings;
>>
>> In my troubleshooting of the 2.6.21-rc* vs tar thinking the whole
>> system is new, where it works normally for any kernel up to 2.6.20.3.
>> I find I'm in need of an amestimate command, to have amdump survey the
>> system and report how much data (before compression obviously) that a
>> dump would generate, but without doing anything to the install other
>> than what it would normally do if it went all the way through the
>> estimate phase plus its scheduling calculations, reporting the results
>> and then exiting without actually doing anything.
>
>Run the 'planner', don't forget to run 'amcleanup' once the planner
> finish.
>
>Jean-Louis

I have a problem jean-Louis, planner needs a screen, and the X server here 
is owned by root, even if I am su'd to amanda.  So...

[amanda@coyote GenesAmandaHelper-0.6]$ /usr/bin/planner Daily
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified


(planner:8633): Gtk-WARNING **: cannot open display:

What would be the std workaround for this line in my script:
       ${AM_BIN_DIR}/planner $CONFIGNAME $HOST $DLE >> $LOG

Running it as root, and giving it the full pathlist to "Daily" the gtk gui 
it opens squawks because "Daily" is a directory.
Ahh, I see, there are two 'planner's on the system, one is a gtk tool of 
some sort, and one that is part of amanda is in /usr/local/libexec.  
Running this as root gives a way too verbose output, can I strip it down 
to just the final results?

What I need is the line "getting estimates took" and everything after it 
in the log.  The nitty-gritty traffic can go to /dev/null AFAIC.  Or is 
that possible.  I could write a script to edit it I suppose...  Or even 
grep -A200 'getting estimates took' would get me what I want to know.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If you have to hate, hate gently.

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