Hello Jukka Salmi --> amanda-users (2013-05-14 08:22:16 +0200): > Jukka Salmi --> amanda-users (2013-05-13 22:37:12 +0200): > > Hello > > > > I'm currently updating Amanda on some NetBSD/amd64 5.2_STABLE systems from > > 2.5.2p1 to 3.3.1; Amanda has been built from pkgsrc. So far the Amanda > > server > > and one Amanda client have been updated. The first thing I tried after > > the update was to check the latest backup (created by the "old" Amanda), > > but this failed: > > > > $ amcheckdump Daily </dev/null > > You will need the following volume: DAILY07 > > Press enter when ready > > Validating image foo.salmi.ch:/usr dumped 20130512032500 level 1 > > amcheckdump: Can't locate object method "new" via package > > "Amanda::Xfer::Source::Recovery" (perhaps you forgot to load > > "Amanda::Xfer::Source::Recovery"?) at > > /usr/pkg/lib/perl5/vendor_perl/5.16.0/Amanda/Recovery/Clerk.pm line 551. > > > > I haven't run amdump(8) yet, thus e.g. $logdir/amdump.$n is still from an > > Amanda 2.5.2p1 run. Could this be the reason for the failure and I should > > just > > run amdump(8)? > > In the meantime I created a test configuration and ran amdump(8). > However, this particular problem still exists.
The first attached patch seems to fix this problem. Note that I don't really understand Perl... > More specifically, now I get > > foo.salmi.ch:/ 0 44979k failed: process terminated while waiting for > dumping > foo.salmi.ch:/etc 1 4k failed: killed while writing to tape (7:45:12) > bar.salmi.ch:/ 0 22788k failed: process terminated while waiting for > dumping > bar.salmi.ch:/etc 1 5k dump done (7:45:12), process terminated while > waiting for writing to tape > > (bar is the Amanda server) > > The taper logfile reveals: > > [...] > Amanda::Changer::compat initialized with script > /usr/pkg/libexec/amanda/chg-disk, temporary directory /etc/pkg/amanda/Test > Amanda::Taper::Scan::traditional stage 1: search for oldest reusable volume > Amanda::Taper::Scan::traditional no oldest reusable volume > Amanda::Taper::Scan::traditional stage 2: scan for any reusable volume > Amanda::Changer::compat: invoking /usr/pkg/libexec/amanda/chg-disk with -info > Amanda::Changer::compat: Got response '8 8 1' with exit status 0 > Amanda::Changer::compat: invoking /usr/pkg/libexec/amanda/chg-disk with -slot > current > Amanda::Changer::compat: Got response '8 file:/var/amanda/vtapes/Test' with > exit status 0 > Slot 8 with label TEST08 is usable > Amanda::Taper::Scan::traditional result: 'TEST08' on > file:/var/amanda/vtapes/Test slot 8, mode 2 > Amanda::Taper::Scribe preparing to write, part size 0, using LEOM (falling > back to holding disk as cache) (splitter) (LEOM supported) > critical (fatal): Can't locate object method "new" via package > "Amanda::Xfer::Dest::Taper::Splitter" (perhaps you forgot to load > "Amanda::Xfer::Dest::Taper::Splitter"?) at > /usr/pkg/lib/perl5/vendor_perl/5.16.0/Amanda/Taper/Scribe.pm line 731. The second attached patch seems to fix this problem. However, with those two patches applied amdump(8) succeeds. Manual verification shows that the dumps are ok, but amcheckdump(8) fails: $ amcheckdump Test </dev/null You will need the following volume: TEST01 Press enter when ready Validating image foo.salmi.ch:/ dumped 20130514144326 level 1 Reading volume TEST01 file 1 filter stderr: Level 1 dump of / on foo.salmi.ch:/dev/rraid0a filter stderr: Label: none filter stderr: gzip: (stdin): trailing garbage ignored Validation errors: /usr/bin/gzip exited with status 1 Validating image bar.salmi.ch:/ dumped 20130514144326 level 1 Reading volume TEST01 file 2 filter stderr: Level 1 dump of / on bar.salmi.ch:/dev/rxbd0a filter stderr: Label: none filter stderr: gzip: (stdin): trailing garbage ignored Validation errors: /usr/bin/gzip exited with status 1 Validating image foo.salmi.ch:/etc dumped 20130514144326 level 0 Reading volume TEST01 file 3 filter stderr: gzip: (stdin): trailing garbage ignored Validation errors: /usr/bin/gzip exited with status 1 Validating image bar.salmi.ch:/etc dumped 20130514144326 level 0 Reading volume TEST01 file 4 filter stderr: gzip: (stdin): trailing garbage ignored Validation errors: /usr/bin/gzip exited with status 1 Some images failed to be correclty validated. Full debug output of such an amcheckdump(8) run is available [1]here. BTW, while the header of dump files created using GNUTAR is ok, the header of files created using DUMP tells me: dd if=<tape> bs=32k skip=1 | [...] | /sbin/restore -xpGf - ... At least NetBSD's restore(8) has no -p and no -G option. Cheers, Jukka [1] http://salmi.ch/~jukka/Amanda/amcheckdump.20130514140608.debug -- This email fills a much-needed gap in the archives.
--- Amanda/Recovery/Clerk.pm.orig 2013-05-13 11:03:18.000000000 +0200 +++ Amanda/Recovery/Clerk.pm 2013-05-14 13:15:17.000000000 +0200 @@ -23,6 +23,7 @@ use warnings; use Carp; use Amanda::Xfer qw( :constants ); +use Amanda::XferServer; use Amanda::Device qw( :constants ); use Amanda::Header; use Amanda::Holding;
--- Amanda/Taper/Scribe.pm.orig 2013-05-13 11:03:18.000000000 +0200 +++ Amanda/Taper/Scribe.pm 2013-05-14 13:56:07.000000000 +0200 @@ -427,6 +427,7 @@ use warnings; use Carp; use Amanda::Xfer qw( :constants ); +use Amanda::XferServer; use Amanda::Device qw( :constants ); use Amanda::Header; use Amanda::Debug qw( :logging );
