[OpenAFS] Speeding up Salvage

Kim Kimball dhk@ccre.com
Mon, 31 Dec 2007 06:42:21 -0700


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I use -fastrestart which is IIRC a compile-time option.<br>
<br>
The liability is that some volumes may not be attached at startup.<br>
<br>
The 'notifier' option in the BosConfig entry can be used to send email
or to automatically salvage individual volumes.<br>
<br>
Although I've had very good luck with this I will say that the notifier
script is executed twice, not once, by the BosServer when specified for
the fs entry -- apparently once for the fileserver and once for the
volserver.&nbsp; It's a nuisance.<br>
<br>
All in all, however, almost every volume has been placed back into
service immediately after every fileserver restart/crash.&nbsp; Very few
instances of off line or could not attach volumes.<br>
<br>
For us that's a win -- instead of making all volumes on the server
unavailable for upwards of 45 minutes, well over 90% of the users are
never aware the fileserver went down at all, and with the notifier
script automatic salvage (my script is still defective due to the 2x
notifier script execution or I'd paste it here) I've had exactly one
complaint from one user after multiple spontaneous crashes (not for a
long time, thank you all developers!) and intentional file server kills.<br>
<br>
YMMV.<br>
<br>
Kim<br>
<br>
<br>
Derrick Brashear wrote:
<blockquote cite="mid:7968615.1198079302491.JavaMail.root@m11"
 type="cite"><br>
  <br>
  <div class="gmail_quote">On Dec 19, 2007 9:50 AM, Jerry Normandin &lt;<a
 moz-do-not-send="true" href="mailto:Jerry.Normandin@dafca.com">Jerry.Normandin@dafca.com</a>&gt;
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div link="blue" vlink="blue" lang="EN-US">
    <div>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Sorry, left
work just before I got your
email.&nbsp; </span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Yes I looked
in the Boslog, this is what I
found:</span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">&nbsp;</span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Tue Dec 18
11:04:38 2007: fs:file exited
on signal 3</span></font></p>
    </div>
    </div>
  </blockquote>
  <div><br>
This is fine, kill -QUIT is the normal clean shutdown.<br>
&nbsp;<br>
  </div>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div link="blue" vlink="blue" lang="EN-US">
    <div>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Tue Dec 18
11:05:41 2007: bos shutdown:
volserver failed to shutdown within 60 s</span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">econds </span></font></p>
    <p><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"></span></font></p>
    </div>
    </div>
  </blockquote>
  <div>This was your issue, I have no idea why based on only that log
message.
  <br>
  <br>
  </div>
  </div>
  <br>
</blockquote>
</body>
</html>