[OpenAFS] Re: Am I doing anything wrong?

Srikanth Bhaskar srikanth.bhaskar@gmail.com
Fri, 2 Feb 2007 03:27:56 -0600


------=_Part_6662_17244176.1170408476000
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thank you for the pointer Marcus. I am able to go ahead till cache
initialization.
I rebooted  the PC. as openafs-client is in init.d, it initialises by
default.

When I try to do a klog,I get this error:

[root@bri6506-5-fc3-1 ~]# /etc/init.d/openafs-client status
afsd (pid 2714) is running...
[root@bri6506-5-fc3-1 ~]# cd /afs
[root@bri6506-5-fc3-1 afs]# ls
[root@bri6506-5-fc3-1 afs]# /usr/bin/klog admin
klog: cell name not found Can't get local cell name!
[root@bri6506-5-fc3-1 afs]#

the cell name does not appear in /afs, hence, I believ it is not picking the
CellServDB.


[root@bri6506-5-fc3-1 vice]# /etc/init.d/openafs-client stop
Stopping openafs-client: cannot stop openafs-client: not runningFAILED]
[root@bri6506-5-fc3-1 vice]# /etc/init.d/openafs-client start
Updating CellServDB: cat: /usr/vice/etc/CellServDB.local: No such file or
direct
ory
cat: /usr/vice/etc/CellServDB.dist: No such file or directory

Updating SuidCells: cat: /usr/vice/etc/SuidCells.local: No such file or
director
y
cat: /usr/vice/etc/SuidCells.dist: No such file or directory

Starting openafs-client: afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)

[root@bri6506-5-fc3-1 vice]#



On 2/2/07, Marcus Watts <mdw@umich.edu> wrote:
>
> "Srikanth Bhaskar" <srikanth.bhaskar@gmail.com> replied:
> >
> > On 2/2/07, Srikanth Bhaskar <srikanth.bhaskar@gmail.com> wrote:
> > >
> > > [root@bri6506-5-fc3-1 bin]# cd /usr/bin/
> > > [root@bri6506-5-fc3-1 bin]# ./bos setcellname bri6506-5-fc3-1.ca.com
> > > afs1.ca.co
> > > m -noauth
> > > [root@bri6506-5-fc3-1 bin]# ./bos listhosts bri6506-5-fc3-1.ca.com-noauth
> > > Cell name is afs1.ca.com
> > >     Host 1 is bri6506-5-fc3-1.ca.com
> > > [root@bri6506-5-fc3-1 bin]# ./bos listhosts bri6506-5-fc3-1.ca.com-noauth
> > > Cell name is afs1.ca.com
> > >     Host 1 is bri6506-5-fc3-1.ca.com
> > > [root@bri6506-5-fc3-1 bin]# ./bos create bri6506-5-fc3-1.ca.comkaserver
> > > simple
> > >  /usr/afs/bin/kaserver -cell afs1.ca.com -noauth
> > > bos: could not find entry (can't find cell 'afs1.ca.com' in cell
> database)
> > > [root@bri6506-5-fc3-1 bin]# ps -ef | grep bosserver
> > > root      5099     1  0 11:46 ?        00:00:00 /usr/afs/bin/bosserver
> > > -noauth
> > > root      5111  4910  0 12:00 pts/1    00:00:00 grep bosserver
> > > [root@bri6506-5-fc3-1 bin]#
> > >
>
> Client side utilities generally look at
>        FHS                     transarc
>        /etc/openafs            /usr/vice/etc
> while server side binaries look at:
>        /etc/openafs/server     /usr/afs/etc
> Since "bos listhosts" worked, you must have the server side
> files right.  Since "bos create" failed, you probably have missing
> or incomplete client side files.  Since judging by the prompts
> you're actually running this on the server, an easy fix is:
> ln -s /usr/afs/etc /usr/vice/etc
> which will ensure your client & server binaries see the same
> configuration.
>
> You could also leave off "-cell afs1.ca.com" - if you're using
> "-noauth" (or "-localauth") with bos, the cell name is not
> necessary and can be allowed to default to whatever.
> This is why your "bos listhosts" commands immediately preceeding
> work.
>
>                                -Marcus Watts
>



-- 
Regards,
Srikanth Bhaskar
Hyderabad
+91 9866649917
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
They may forget wat you said,
but  they will never forget how you made them feel..

------=_Part_6662_17244176.1170408476000
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Thank you for the pointer Marcus. I am able to go ahead till cache initialization.</div>
<div>I rebooted&nbsp; the PC. as openafs-client is in init.d, it initialises by default.</div>
<div>&nbsp;</div>
<div>When I try to do a klog,I get this error:</div>
<div>&nbsp;</div>
<div>[root@bri6506-5-fc3-1 ~]# /etc/init.d/openafs-client status<br>afsd (pid 2714) is running...<br>[root@bri6506-5-fc3-1 ~]# cd /afs<br>[root@bri6506-5-fc3-1 afs]# ls<br>[root@bri6506-5-fc3-1 afs]# /usr/bin/klog admin<br>
klog: cell name not found Can&#39;t get local cell name!<br>[root@bri6506-5-fc3-1 afs]#</div>
<div>&nbsp;</div>
<div>the cell name does not appear in /afs, hence, I believ it is not picking the CellServDB.</div>
<div>&nbsp;</div>
<div>
<p>[root@bri6506-5-fc3-1 vice]# /etc/init.d/openafs-client stop<br>Stopping openafs-client: cannot stop openafs-client: not runningFAILED]<br>[root@bri6506-5-fc3-1 vice]# /etc/init.d/openafs-client start<br>Updating CellServDB: cat: /usr/vice/etc/CellServDB.local: No such file or direct
<br>ory<br>cat: /usr/vice/etc/CellServDB.dist: No such file or directory</p>
<p>Updating SuidCells: cat: /usr/vice/etc/SuidCells.local: No such file or director<br>y<br>cat: /usr/vice/etc/SuidCells.dist: No such file or directory</p>
<p>Starting openafs-client: afsd: All AFS daemons started.<br>afsd: Can&#39;t mount AFS on /afs(22)</p>
<p>[root@bri6506-5-fc3-1 vice]#</p><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">Marcus Watts</b> &lt;<a href="mailto:mdw@umich.edu">mdw@umich.edu</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">&quot;Srikanth Bhaskar&quot; &lt;<a href="mailto:srikanth.bhaskar@gmail.com">srikanth.bhaskar@gmail.com</a>
&gt; replied:<br>&gt;<br>&gt; On 2/2/07, Srikanth Bhaskar &lt;<a href="mailto:srikanth.bhaskar@gmail.com">srikanth.bhaskar@gmail.com</a>&gt; wrote:<br>&gt; &gt;<br>&gt; &gt; [root@bri6506-5-fc3-1 bin]# cd /usr/bin/<br>&gt; &gt; [
root@bri6506-5-fc3-1 bin]# ./bos setcellname <a href="http://bri6506-5-fc3-1.ca.com">bri6506-5-fc3-1.ca.com</a><br>&gt; &gt; <a href="http://afs1.ca.co">afs1.ca.co</a><br>&gt; &gt; m -noauth<br>&gt; &gt; [root@bri6506-5-fc3-1
 bin]# ./bos listhosts <a href="http://bri6506-5-fc3-1.ca.com">bri6506-5-fc3-1.ca.com</a> -noauth<br>&gt; &gt; Cell name is <a href="http://afs1.ca.com">afs1.ca.com</a><br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Host 1 is <a href="http://bri6506-5-fc3-1.ca.com">
bri6506-5-fc3-1.ca.com</a><br>&gt; &gt; [root@bri6506-5-fc3-1 bin]# ./bos listhosts <a href="http://bri6506-5-fc3-1.ca.com">bri6506-5-fc3-1.ca.com</a> -noauth<br>&gt; &gt; Cell name is <a href="http://afs1.ca.com">afs1.ca.com
</a><br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Host 1 is <a href="http://bri6506-5-fc3-1.ca.com">bri6506-5-fc3-1.ca.com</a><br>&gt; &gt; [root@bri6506-5-fc3-1 bin]# ./bos create <a href="http://bri6506-5-fc3-1.ca.com">bri6506-5-fc3-1.ca.com</a> kaserver
<br>&gt; &gt; simple<br>&gt; &gt;&nbsp;&nbsp;/usr/afs/bin/kaserver -cell <a href="http://afs1.ca.com">afs1.ca.com</a> -noauth<br>&gt; &gt; bos: could not find entry (can&#39;t find cell &#39;<a href="http://afs1.ca.com">afs1.ca.com
</a>&#39; in cell database)<br>&gt; &gt; [root@bri6506-5-fc3-1 bin]# ps -ef | grep bosserver<br>&gt; &gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5099&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;0 11:46 ?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00:00:00 /usr/afs/bin/bosserver<br>&gt; &gt; -noauth<br>&gt; &gt; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5111&nbsp;&nbsp;4910&nbsp;&nbsp;0 12:00 pts/1&nbsp;&nbsp;&nbsp;&nbsp;00:00:00 grep bosserver
<br>&gt; &gt; [root@bri6506-5-fc3-1 bin]#<br>&gt; &gt;<br><br>Client side utilities generally look at<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FHS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; transarc<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openafs&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/usr/vice/etc<br>while server side binaries look at:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/openafs/server&nbsp;&nbsp;&nbsp;&nbsp; /usr/afs/etc<br>Since &quot;bos listhosts&quot; worked, you must have the server side<br>files right.&nbsp;&nbsp;Since &quot;bos create&quot; failed, you probably have missing<br>or incomplete client side files.&nbsp;&nbsp;Since judging by the prompts
<br>you&#39;re actually running this on the server, an easy fix is:<br>ln -s /usr/afs/etc /usr/vice/etc<br>which will ensure your client &amp; server binaries see the same configuration.<br><br>You could also leave off &quot;-cell 
<a href="http://afs1.ca.com">afs1.ca.com</a>&quot; - if you&#39;re using<br>&quot;-noauth&quot; (or &quot;-localauth&quot;) with bos, the cell name is not<br>necessary and can be allowed to default to whatever.<br>This is why your &quot;bos listhosts&quot; commands immediately preceeding
<br>work.<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Marcus Watts<br></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Srikanth Bhaskar<br>Hyderabad<br>+91 9866649917<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>They may forget wat you said, 
<br>but&nbsp;&nbsp;they will never forget how you made them feel.. 

------=_Part_6662_17244176.1170408476000--