[OpenAFS] Re: Am I doing anything wrong?
Srikanth Bhaskar
srikanth.bhaskar@gmail.com
Fri, 2 Feb 2007 03:42:15 -0600
------=_Part_6735_11448220.1170409335584
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[root@bri6506-5-fc3-1 etc1]# cp -r CellServDB.local CellServDB.dist
SuidCells.l
ocal SuidCells.dist /usr/vice/etc/
cp: overwrite `/usr/vice/etc/CellServDB.local'? y
cp: overwrite `/usr/vice/etc/CellServDB.dist'? y
cp: overwrite `/usr/vice/etc/SuidCells.local'? y
[root@bri6506-5-fc3-1 etc1]# /etc/init.d/openafs-client start
Updating CellServDB:
Updating SuidCells:
Starting openafs-client: afsd: All AFS daemons started.
afsd: Can't mount AFS on /afs(22)
On 2/2/07, Srikanth Bhaskar <srikanth.bhaskar@gmail.com> wrote:
>
> 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..
>
--
Regards,
Srikanth Bhaskar
Hyderabad
+91 9866649917
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
They may forget wat you said,
but they will never forget how you made them feel..
------=_Part_6735_11448220.1170409335584
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
[root@bri6506-5-fc3-1 etc1]# cp -r CellServDB.local CellServDB.dist SuidCells.l<br>ocal SuidCells.dist /usr/vice/etc/<br>cp: overwrite `/usr/vice/etc/CellServDB.local'? y<br>cp: overwrite `/usr/vice/etc/CellServDB.dist'? y
<br>cp: overwrite `/usr/vice/etc/SuidCells.local'? y<br>[root@bri6506-5-fc3-1 etc1]# /etc/init.d/openafs-client start<br>Updating CellServDB:<br>Updating SuidCells:<br>Starting openafs-client: afsd: All AFS daemons started.
<br>afsd: Can't mount AFS on /afs(22)<br><br>
<div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">Srikanth Bhaskar</b> <<a href="mailto:srikanth.bhaskar@gmail.com">srikanth.bhaskar@gmail.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Thank you for the pointer Marcus. I am able to go ahead till cache initialization.</div>
<div>I rebooted the PC. as openafs-client is in init.d, it initialises by default.</div>
<div> </div>
<div>When I try to do a klog,I get this error:</div>
<div> </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't get local cell name!<br>[root@bri6506-5-fc3-1 afs]#</div>
<div> </div>
<div>the cell name does not appear in /afs, hence, I believ it is not picking the CellServDB.</div>
<div> </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't mount AFS on /afs(22)</p>
<p>[root@bri6506-5-fc3-1 vice]#</p><br><br> </div>
<div><span class="e" id="q_11081c80d41b6707_1">
<div><span class="gmail_quote">On 2/2/07, <b class="gmail_sendername">Marcus Watts</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:mdw@umich.edu" target="_blank">mdw@umich.edu</a>> wrote:
</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">"Srikanth Bhaskar" <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:srikanth.bhaskar@gmail.com" target="_blank">
srikanth.bhaskar@gmail.com</a> > replied:<br>><br>> On 2/2/07, Srikanth Bhaskar <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:srikanth.bhaskar@gmail.com" target="_blank">srikanth.bhaskar@gmail.com
</a>> wrote:<br>> ><br>> > [root@bri6506-5-fc3-1 bin]# cd /usr/bin/<br>> > [ root@bri6506-5-fc3-1 bin]# ./bos setcellname <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">
bri6506-5-fc3-1.ca.com</a><br>> > <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.co/" target="_blank">afs1.ca.co</a><br>> > m -noauth<br>> > [root@bri6506-5-fc3-1 bin]# ./bos listhosts
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">bri6506-5-fc3-1.ca.com</a> -noauth<br>> > Cell name is <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.com/" target="_blank">
afs1.ca.com</a><br>> > Host 1 is <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">bri6506-5-fc3-1.ca.com</a><br>> > [root@bri6506-5-fc3-1 bin]# ./bos listhosts
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">bri6506-5-fc3-1.ca.com</a> -noauth<br>> > Cell name is <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.com/" target="_blank">
afs1.ca.com </a><br>> > Host 1 is <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">bri6506-5-fc3-1.ca.com</a><br>> > [root@bri6506-5-fc3-1 bin]# ./bos create
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://bri6506-5-fc3-1.ca.com/" target="_blank">bri6506-5-fc3-1.ca.com</a> kaserver <br>> > simple<br>> > /usr/afs/bin/kaserver -cell <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.com/" target="_blank">
afs1.ca.com</a> -noauth<br>> > bos: could not find entry (can't find cell '<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.com/" target="_blank">afs1.ca.com </a>' in cell database)
<br>> > [root@bri6506-5-fc3-1 bin]# ps -ef | grep bosserver<br>> > root 5099 1 0 11:46 ? 00:00:00 /usr/afs/bin/bosserver<br>> > -noauth<br>> > root 5111 4910 0 12:00 pts/1 00:00:00 grep bosserver
<br>> > [root@bri6506-5-fc3-1 bin]#<br>> ><br><br>Client side utilities generally look at<br> FHS transarc<br> /etc/openafs /usr/vice/etc<br>while server side binaries look at:
<br> /etc/openafs/server /usr/afs/etc<br>Since "bos listhosts" worked, you must have the server side<br>files right. Since "bos create" failed, you probably have missing<br>or incomplete client side files. Since judging by the prompts
<br>you'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 & server binaries see the same configuration.<br><br>You could also leave off "-cell
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://afs1.ca.com/" target="_blank">afs1.ca.com</a>" - if you're using<br>"-noauth" (or "-localauth") with bos, the cell name is not
<br>necessary and can be allowed to default to whatever.<br>This is why your "bos listhosts" commands immediately preceeding <br>work.<br><br> -Marcus Watts<br></blockquote></div><br>
<br clear="all"><br></span></div>
<div><span class="e" id="q_11081c80d41b6707_2">-- <br>Regards,<br>Srikanth Bhaskar<br>Hyderabad<br>+91 9866649917<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>They may forget wat you said, <br>but they will never forget how you made them feel..
</span></div></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 they will never forget how you made them feel..
------=_Part_6735_11448220.1170409335584--