[OpenAFS] resurrecting dead server

Ted Creedon tcreedon@easystreet.net
Tue, 18 Jan 2011 11:56:27 -0800


--90e6ba4fc50cc9b52b049a244bbd
Content-Type: text/plain; charset=ISO-8859-1

Does that mean it works or not?

PS vicepa has
root.afs                          536870912 RW          4 K On-line
root.afs.readonly                 536870913 RO          4 K On-line
root.cell                         536870915 RW       2634 K On-line
root.cell.readonly                536870916 RO         24 K On-line

do these need to be mounted before or after syncing?

Ted


On Tue, Jan 18, 2011 at 11:46 AM, Derrick Brashear <shadow@gmail.com> wrote:

> that's fixed post-1.6.0pre1. pre2 isn't out yet.
>
> On Tue, Jan 18, 2011 at 2:42 PM, Ted Creedon <tcreedon@easystreet.net>
> wrote:
> > vos syncserv -server $S -partition a -dryrun -cell $C -localauth -verbose
> >
> > ends up with "Aborted"
> > ------------cut------------
> > 7f9ebdaec000-7f9ebdaed000 rw-p 00000000 00:00 0
> > 7fff833da000-7fff83425000 rw-p 00000000 00:00 0
> > [stack]
> > 7fff83545000-7fff83546000 r-xp 00000000 00:00 0
> > [vdso]
> > ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0
> > [vsyscall]
> > Aborted
> >
> >
> >
> > On Tue, Jan 18, 2011 at 11:26 AM, Ted Creedon <tcreedon@easystreet.net>
> > wrote:
> >>
> >> I did a reinstall, kerberos, linux, everything
> >>
> >> Do I need to set up root.cell and root.afs prior to syncing /vicepa?
> >>
> >> ted
> >>
> >> On Sun, Jan 16, 2011 at 12:26 PM, Jason Edgecombe
> >> <jason@rampaginggeek.com> wrote:
> >>>
> >>> I recommend a reinstall, then copy /usr/afs/etc from another server to
> >>> copy the KeyFile, CellServ, etc.
> >>>
> >>> Jason
> >>>
> >>> On 01/16/2011 01:48 PM, Ted Creedon wrote:
> >>>>
> >>>> How about moving the /usr/afs directories from a known good server to
> >>>> the RW
> >>>> server and doing the same?
> >>>>
> >>>> ted
> >>>>
> >>>> On Sun, Jan 16, 2011 at 7:10 AM, Jason
> >>>> Edgecombe<jason@rampaginggeek.com>wrote:
> >>>>
> >>>>> On 01/15/2011 01:05 PM, Ted Creedon wrote:
> >>>>>
> >>>>>> my R/W server died but /vicepa and /vicepb were saved on their raid
> >>>>>> drives.
> >>>>>> this server also ran the krb5kdc...
> >>>>>>
> >>>>>> there are 2 other RO servers still OK but 2 out of 20 volumes are
> not
> >>>>>> up
> >>>>>> to
> >>>>>> date. both were running upclient etc
> >>>>>>
> >>>>>> the data on the RO servers is:
> >>>>>> /usr/afs/db:
> >>>>>> total 316
> >>>>>> drwx------ 2 root root   4096 May  5  2009 ./
> >>>>>> drwxr-xr-x 7 root root   4096 May  6  2009 ../
> >>>>>> -rw------- 1 root root   1088 May  2  2009 bdb.DB0
> >>>>>> -rw------- 1 root root     64 Jan  7 12:18 bdb.DBSYS1
> >>>>>> -rw------- 1 root root  68672 May  5  2009 prdb.DB0
> >>>>>> -rw------- 1 root root  68672 May  5  2009 prdb.DB0.bak
> >>>>>> -rw------- 1 root root     64 Jan  7 12:18 prdb.DBSYS1
> >>>>>> -rw------- 1 root root     64 May  5  2009 prdb.DBSYS1.bak
> >>>>>> -rw------- 1 root root 144448 Jan  7 12:18 vldb.DB0
> >>>>>> -rw------- 1 root root     64 Jan  7 13:50 vldb.DBSYS1
> >>>>>>
> >>>>>> /usr/afs/etc:
> >>>>>> total 80
> >>>>>> drwxr-xr-x 2 root root  4096 Jun 16  2010 ./
> >>>>>> drwxr-xr-x 7 root root  4096 May  6  2009 ../
> >>>>>> -rw-r--r-- 1 root root   162 Jan  7 12:17 CellServDB
> >>>>>> -rw------- 1 root root   100 May  6  2009 KeyFile
> >>>>>> -rw-r--r-- 1 root root    10 May  2  2009 NetRestrict
> >>>>>> -rw-r--r-- 1 root root    11 May  6  2009 ThisCell
> >>>>>> -rw-r--r-- 1 root root    39 Nov 15  2008 UserList
> >>>>>>
> >>>>>> /usr/afs/local:
> >>>>>> total 24
> >>>>>> drwx------ 2 root root 4096 Jan  7 13:53 ./
> >>>>>> drwxr-xr-x 7 root root 4096 May  6  2009 ../
> >>>>>> -rw-r--r-- 1 root root  313 Apr 30  2009 BosConfig
> >>>>>> -rw-r--r-- 1 root root   10 May  6  2009 NetRestrict
> >>>>>> -rw-r--r-- 1 root root    0 Jan  7 13:53 SALVAGE.fs
> >>>>>> srwxr-xr-x 1 root root    0 Jan  7 12:22 fssync.sock=
> >>>>>> -rw-r--r-- 1 root root    0 May  2  2009 salvage.lock
> >>>>>> -rw-r--r-- 1 root root   32 Jan  7 11:55 sysid
> >>>>>> -rw-r--r-- 1 root root   32 Jan  7 11:00 sysid.old
> >>>>>>
> >>>>>>
> >>>>>> what's the best way to proceed after I rekey
> >>>>>>
> >>>>>> PS I also have vos dump files but the 2 aforementiined volumes are
> not
> >>>>>> up
> >>>>>> to
> >>>>>> date.
> >>>>>>
> >>>>>> thanks
> >>>>>>
> >>>>>> tedc
> >>>>>>
> >>>>>>  I suggest connecting the raid drives to another server, possibly
> one
> >>>>>> of
> >>>>>
> >>>>> your R/O servers. Mount the /vicepX partitions, restart the
> fileserver,
> >>>>> then
> >>>>> run "vos syncserv" and "vos syncvldb" to have the recovered volumes
> be
> >>>>> remapped to the different server.
> >>>
> >>> _______________________________________________
> >>> OpenAFS-info mailing list
> >>> OpenAFS-info@openafs.org
> >>> https://lists.openafs.org/mailman/listinfo/openafs-info
> >>
> >
> >
>
>
>
> --
> Derrick
>

--90e6ba4fc50cc9b52b049a244bbd
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Does that mean it works or not?<br><br>PS vicepa has <br>root.afs=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 53687091=
2 RW=A0=A0=A0=A0=A0=A0=A0=A0=A0 4 K On-line<br>root.afs.readonly=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 536870913 RO=A0=A0=A0=A0=A0=A0=A0=
=A0=A0 4 K On-line<br>root.cell=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 536870915 RW=A0=A0=A0=A0=A0=A0 2634 K On-lin=
e<br>
root.cell.readonly=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 536870916 R=
O=A0=A0=A0=A0=A0=A0=A0=A0 24 K On-line<br><br>do these need to be mounted b=
efore or after syncing?<br><br>Ted<br><br><br><div class=3D"gmail_quote">On=
 Tue, Jan 18, 2011 at 11:46 AM, Derrick Brashear <span dir=3D"ltr">&lt;<a h=
ref=3D"mailto:shadow@gmail.com">shadow@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">that&#39;s fixed =
post-1.6.0pre1. pre2 isn&#39;t out yet.<br>
<div><div></div><div class=3D"h5"><br>
On Tue, Jan 18, 2011 at 2:42 PM, Ted Creedon &lt;<a href=3D"mailto:tcreedon=
@easystreet.net">tcreedon@easystreet.net</a>&gt; wrote:<br>
&gt; vos syncserv -server $S -partition a -dryrun -cell $C -localauth -verb=
ose<br>
&gt;<br>
&gt; ends up with &quot;Aborted&quot;<br>
&gt; ------------cut------------<br>
&gt; 7f9ebdaec000-7f9ebdaed000 rw-p 00000000 00:00 0<br>
&gt; 7fff833da000-7fff83425000 rw-p 00000000 00:00 0<br>
&gt; [stack]<br>
&gt; 7fff83545000-7fff83546000 r-xp 00000000 00:00 0<br>
&gt; [vdso]<br>
&gt; ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0<br>
&gt; [vsyscall]<br>
&gt; Aborted<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Tue, Jan 18, 2011 at 11:26 AM, Ted Creedon &lt;<a href=3D"mailto:tc=
reedon@easystreet.net">tcreedon@easystreet.net</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I did a reinstall, kerberos, linux, everything<br>
&gt;&gt;<br>
&gt;&gt; Do I need to set up root.cell and root.afs prior to syncing /vicep=
a?<br>
&gt;&gt;<br>
&gt;&gt; ted<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Jan 16, 2011 at 12:26 PM, Jason Edgecombe<br>
&gt;&gt; &lt;<a href=3D"mailto:jason@rampaginggeek.com">jason@rampaginggeek=
.com</a>&gt; wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; I recommend a reinstall, then copy /usr/afs/etc from another s=
erver to<br>
&gt;&gt;&gt; copy the KeyFile, CellServ, etc.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Jason<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 01/16/2011 01:48 PM, Ted Creedon wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; How about moving the /usr/afs directories from a known goo=
d server to<br>
&gt;&gt;&gt;&gt; the RW<br>
&gt;&gt;&gt;&gt; server and doing the same?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ted<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Sun, Jan 16, 2011 at 7:10 AM, Jason<br>
&gt;&gt;&gt;&gt; Edgecombe&lt;<a href=3D"mailto:jason@rampaginggeek.com">ja=
son@rampaginggeek.com</a>&gt;wrote:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On 01/15/2011 01:05 PM, Ted Creedon wrote:<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; my R/W server died but /vicepa and /vicepb were sa=
ved on their raid<br>
&gt;&gt;&gt;&gt;&gt;&gt; drives.<br>
&gt;&gt;&gt;&gt;&gt;&gt; this server also ran the krb5kdc...<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; there are 2 other RO servers still OK but 2 out of=
 20 volumes are not<br>
&gt;&gt;&gt;&gt;&gt;&gt; up<br>
&gt;&gt;&gt;&gt;&gt;&gt; to<br>
&gt;&gt;&gt;&gt;&gt;&gt; date. both were running upclient etc<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; the data on the RO servers is:<br>
&gt;&gt;&gt;&gt;&gt;&gt; /usr/afs/db:<br>
&gt;&gt;&gt;&gt;&gt;&gt; total 316<br>
&gt;&gt;&gt;&gt;&gt;&gt; drwx------ 2 root root =A0 4096 May =A05 =A02009 .=
/<br>
&gt;&gt;&gt;&gt;&gt;&gt; drwxr-xr-x 7 root root =A0 4096 May =A06 =A02009 .=
./<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 1088 May =A02 =A02009 b=
db.DB0<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 =A0 64 Jan =A07 12:18 b=
db.DBSYS1<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A068672 May =A05 =A02009 p=
rdb.DB0<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A068672 May =A05 =A02009 p=
rdb.DB0.bak<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 =A0 64 Jan =A07 12:18 p=
rdb.DBSYS1<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 =A0 64 May =A05 =A02009=
 prdb.DBSYS1.bak<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root 144448 Jan =A07 12:18 vldb.=
DB0<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 =A0 64 Jan =A07 13:50 v=
ldb.DBSYS1<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; /usr/afs/etc:<br>
&gt;&gt;&gt;&gt;&gt;&gt; total 80<br>
&gt;&gt;&gt;&gt;&gt;&gt; drwxr-xr-x 2 root root =A04096 Jun 16 =A02010 ./<b=
r>
&gt;&gt;&gt;&gt;&gt;&gt; drwxr-xr-x 7 root root =A04096 May =A06 =A02009 ..=
/<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 162 Jan =A07 12:17 Cell=
ServDB<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw------- 1 root root =A0 100 May =A06 =A02009 Ke=
yFile<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 =A010 May =A02 =A02009 =
NetRestrict<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 =A011 May =A06 =A02009 =
ThisCell<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 =A039 Nov 15 =A02008 Us=
erList<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; /usr/afs/local:<br>
&gt;&gt;&gt;&gt;&gt;&gt; total 24<br>
&gt;&gt;&gt;&gt;&gt;&gt; drwx------ 2 root root 4096 Jan =A07 13:53 ./<br>
&gt;&gt;&gt;&gt;&gt;&gt; drwxr-xr-x 7 root root 4096 May =A06 =A02009 ../<b=
r>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0313 Apr 30 =A02009 BosCo=
nfig<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 10 May =A06 =A02009 Net=
Restrict<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 =A00 Jan =A07 13:53 SAL=
VAGE.fs<br>
&gt;&gt;&gt;&gt;&gt;&gt; srwxr-xr-x 1 root root =A0 =A00 Jan =A07 12:22 fss=
ync.sock=3D<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 =A00 May =A02 =A02009 s=
alvage.lock<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 32 Jan =A07 11:55 sysid=
<br>
&gt;&gt;&gt;&gt;&gt;&gt; -rw-r--r-- 1 root root =A0 32 Jan =A07 11:00 sysid=
.old<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; what&#39;s the best way to proceed after I rekey<b=
r>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; PS I also have vos dump files but the 2 aforementi=
ined volumes are not<br>
&gt;&gt;&gt;&gt;&gt;&gt; up<br>
&gt;&gt;&gt;&gt;&gt;&gt; to<br>
&gt;&gt;&gt;&gt;&gt;&gt; date.<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; thanks<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; tedc<br>
&gt;&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;&gt; =A0I suggest connecting the raid drives to another=
 server, possibly one<br>
&gt;&gt;&gt;&gt;&gt;&gt; of<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; your R/O servers. Mount the /vicepX partitions, restar=
t the fileserver,<br>
&gt;&gt;&gt;&gt;&gt; then<br>
&gt;&gt;&gt;&gt;&gt; run &quot;vos syncserv&quot; and &quot;vos syncvldb&qu=
ot; to have the recovered volumes be<br>
&gt;&gt;&gt;&gt;&gt; remapped to the different server.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; OpenAFS-info mailing list<br>
&gt;&gt;&gt; <a href=3D"mailto:OpenAFS-info@openafs.org">OpenAFS-info@opena=
fs.org</a><br>
&gt;&gt;&gt; <a href=3D"https://lists.openafs.org/mailman/listinfo/openafs-=
info" target=3D"_blank">https://lists.openafs.org/mailman/listinfo/openafs-=
info</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div>--<br>
<font color=3D"#888888">Derrick<br>
</font></blockquote></div><br>

--90e6ba4fc50cc9b52b049a244bbd--