Am 30.08.2010 18:44, schrieb Tim Nowaczyk:

> I also get errors.  my sendbackup.debug shows that the script is 
> being run with the incorrect command-line arguments.
> 
> /usr/lib/amanda/application/amlvm-snapshot amlvm-snapshot 
> PRE-DLE-BACKUP --execute-where client --config DailySet1 --host 
> host.example.com --disk / --device / --level 1 --sudo 1
> 
> (note the extra 'amlvm-snapshot in there')
> 
> If I manually run the amlvm-snapshot command after removing the
> extra amlvm-snapshot argument, then it seems to work correctly.

Played with it and tried to debug things, without too much success so far.

Could you show me the relevant line in /etc/mtab and the "mount" of that
directory?

Maybe it is distro-specific (format of mtab or so).

I don't know where that second "amlvm-snapshot" comes from. Is the
script-tool defined correctly in his example? Looks ok to me so far.

What do you mean by "it seems to work correctly"? Does it create the
snapshot?

I also still don't fully understand the options "--disk / --device /" ...

hmm

And I get stuff like:

$ cat Amlvm_snapshot.20100901163645.debug
Wed Sep  1 16:36:45 2010: Amlvm_snapshot: pid 18932 ruid 87 euid 87
version 3.1.2: start at Wed Sep  1 16:36:45 2010
Wed Sep  1 16:36:45 2010: Amlvm_snapshot: pid 18932 ruid 87 euid 87
version 3.1.2: rename at Wed Sep  1 16:36:45 2010
Wed Sep  1 16:36:45 2010: Amlvm_snapshot: script: Amlvm_snapshot
Wed Sep  1 16:36:45 2010: Amlvm_snapshot: command: pre_dle_backup
Wed Sep  1 16:36:45 2010: Amlvm_snapshot: warning: Argument "Failed to
resolve device path and volume group." isn't numeric in numeric ne (!=)
at /usr/lib/perl5/site_perl/5.8.8/Amanda/Script_App.pm line 101.

btw. Script_App.pm says

"This module should not be used directly. Instead, use
C<Amanda::Application> or C<Amanda::Script>."

;-)


Ah, last question: could it be that his script only works with an older
amanda-release? I tested it with 3.1.2 so far.

Stefan

Reply via email to