Hi All,

To summarize my problem, instead of incremental level1 dumps on FreeBSD w/ ZFS I'm always getting quasi level 0 dumps, which takes ages.

During backup I can see the following with amstatus:

files.linguamatics.com:/export/proj 1 1488m dumping 29829m (2003.73%) (13:09:38) files.linguamatics.com:/export/proj/i2e 1 2449m dumping 319500m (13042.58%) (7:04:16) files.linguamatics.com:/export/proj/ieir 1 21110m dumping 120820m (572.33%) (9:18:42)

As you can see, the estimated value for /export/proj/i2e was 2.4G and it already backed up 319G.

The dumptype for these DLEs is zfs-amgtar-compress-client, which looks like:

define script-tool amzfs_snapshot {
   comment "backup of zfs snapshot"
   plugin  "amzfs-snapshot"
execute-on pre-dle-amcheck, post-dle-amcheck, pre-dle-estimate, post-dle-estimate, pre-dle-backup, post-dle-backup
   execute-where client
}

define application-tool app_amgtar {
    plugin "amgtar"

    property "ATIME-PRESERVE" "NO"
    property "EXIT-HANDLING" "1=GOOD 2=BAD"
    property append "IGNORE" ": socket ignored$"
    property append "IGNORE" "file changed as we read it$"
    property append "IGNORE" "Cannot stat: No such file or directory$"
}


define dumptype amgtar-nocompress {
  global
  program "APPLICATION"
  application "app_amgtar"
  compress none
  estimate calcsize
}

define dumptype amgtar-compress-client {
  amgtar-nocompress
  compress client custom
  client_custom_compress "/usr/local/bin/customcompress"
  estimate calcsize
}

define dumptype zfs-amgtar-compress-client {
  amgtar-compress-client
  script "amzfs_snapshot"
}

I had to patch Zfs.pm to get the snapshots working, but this may not be connected to the issue.

:e /usr/local/lib/perl5/site_perl/5.10.1/Amanda/Application/Zfs.pm
  --- Zfs.pm.orig       2011-03-29 16:35:02.000000000 +0100
  +++ Zfs.pm    2011-03-29 16:35:49.000000000 +0100
  @@ -381,12 +381,12 @@
       my $snapshotname = "";

       if (!defined $level) {
  -      $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . 
"-current";
  +      $snapshotname = "amanda-current";
       } else {
         if ($level<  0) {
  -     $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . 
"-check";
  +     $snapshotname = "amanda-check";
         } else {
  -        $snapshotname = "amanda-" . Amanda::Util::sanitise_filename($self->{disk}) . 
"-" . $level;
  +        $snapshotname = "amanda-" . $level;
         }
       }


Amanda server version 3.3.0 running on CentOS 6.0
Amanda client version 3.2.1 running on FreeBSD 8.2 from ports

# pkg_info | grep -i amanda
amanda-client-3.2.1,1 The Advanced Maryland Automatic Network Disk Archiver (clie amanda-perl-wrapper-1.01 Perl wrapper to use with Amanda (with libthr.so.* linked) amanda-server-3.2.1,1 The Advanced Maryland Automatic Network Disk Archiver (serv

What can be the problem?

Thanks,
  Attila

Reply via email to