Amanda-Users

Re: MP: NEEDS ATTENTION: Do you want to attempt to continue? ("yes" or "no")

2009-08-26 11:32:26
Subject: Re: MP: NEEDS ATTENTION: Do you want to attempt to continue? ("yes" or "no")
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: Brian Cuttler <brian AT wadsworth DOT org>
Date: Wed, 26 Aug 2009 10:39:50 -0400
Brian,

I think you can't change ufsdump default.
The untested attached patch might do what you want.

Jean-Louis

Brian Cuttler wrote:
What is the recommended solution to this problem ?

sendbackup: time 473.920:  93:  normal(|):   DUMP: Warning - block 2801050268 
is beyond the end of `/dev/rdsk/c3t0d0s6'
sendbackup: time 473.920:  93:  normal(|):   DUMP: Warning - block 2934464164 
is beyond the end of `/dev/rdsk/c3t0d0s6'
sendbackup: time 473.921:  88: strange(?):   DUMP: More than 32 block read 
errors from dump device `/dev/rdsk/c3t0d0s6'
sendbackup: time 473.921:  93:  normal(|):   DUMP: NEEDS ATTENTION: Do you want to attempt to 
continue? ("yes" or "no")   DUMP: The ENTIRE dump is aborted.
sendbackup: time 473.979: index created successfully
sendbackup: time 473.983: error [/usr/sbin/ufsdump returned 3]
sendbackup: time 473.983: pid 3858 finish time Wed Aug 26 09:26:21 2009

Is there a way to default to "yes", we gave tar-dumps a
chance but it took so long to map the file system (mailserver
with separate files for each message, not-unix format but
cyrus imap under sendmail) that the server times out waiting
before dumps actually start to transfer.


---
   Brian R Cuttler                 brian.cuttler AT wadsworth DOT org
   Computer Systems Support        (v) 518 486-1697
   Wadsworth Center                (f) 518 473-6384
   NYS Department of Health        Help Desk 518 473-0773



IMPORTANT NOTICE: This e-mail and any attachments may contain
confidential or sensitive information which is, or may be, legally
privileged or otherwise protected by law from further disclosure.  It
is intended only for the addressee.  If you received this in error or
from someone who was not authorized to send it to you, please do not
distribute, copy or use it or any attachments.  Please notify the
sender immediately by reply e-mail and delete this from your
system. Thank you for your cooperation.



diff --git a/client-src/sendbackup-dump.c b/client-src/sendbackup-dump.c
index 4ac6e72..619c3f3 100644
--- a/client-src/sendbackup-dump.c
+++ b/client-src/sendbackup-dump.c
@@ -459,7 +459,14 @@ start_backup(
 
     /* close the write ends of the pipes */
 
-    aclose(dumpin);
+    {
+       int yes_pid;
+       int yes_in;
+
+       yes_pid = pipespawn("/usr/bin/yes", STDIN_PIPE, 0,
+                           &yes_in, &dumpin, &mesgf, NULL);
+       aclose(yes_in);
+    }
     aclose(dumpout);
     aclose(compout);
     aclose(dataf);
<Prev in Thread] Current Thread [Next in Thread>