Amanda-Users

Re: Backup issues with OpenBSD 4.5 machines

2009-09-02 13:45:45
Subject: Re: Backup issues with OpenBSD 4.5 machines
From: Michael Burk <burkml AT gmail DOT com>
To: "Dustin J. Mitchell" <dustin AT zmanda DOT com>
Date: Wed, 2 Sep 2009 11:07:58 -0600
I modified sendbackup-dump.c to run ktrace, e.g.:
"/usr/bin/ktrace -id -t censw -f /tmp/sendbackup.trc /sbin/dump 0usf 1048576 - /dev/rsd0d"

Unfortunately, I don't get a backup, even with the patch applied. The trace output shows write errors because of a broken pipe with or without the patches, like this:
 21835 dump     CALL  write(0x2,0x53fbec,0x8)
 21835 dump     RET   write -1 errno 32 Broken pipe
So I suspect my approach is not correct. Any other ideas how I might get some useful trace output?

Thanks,
Michael

On Tue, Sep 1, 2009 at 1:25 PM, Dustin J. Mitchell <dustin AT zmanda DOT com> wrote:
On Tue, Sep 1, 2009 at 3:18 PM, Jean-Louis
Martineau<martineau AT zmanda DOT com> wrote:
> I have nothing else to try.
> The order of system call is a follow:

If it's not too hard, it would be nice to have a ktrace or equivalent
of this, first to look at here, and second to take to the OpenBSD
list.  I know that's tricky since this is a daemon process..

Dustin

--
Open Source Storage Engineer
http://www.zmanda.com