Coda File System

Re: help mounting a volume

From: Ivan Popov <pin_at_medic.chalmers.se>
Date: Thu, 10 Mar 2005 15:33:26 +0100
Hi Gabriel,

On Thu, Mar 10, 2005 at 11:15:47AM -0300, Gabriel B. wrote:
> bossnes:/# l /coda/
> total 2.5k
> dr-xr-xr-x    2 root     nogroup      2.0k Mar 10 11:04 ./
> drwxr-xr-x   24 root     root          616 Mar  4 15:34 ../
> lrw-r--r--    1 root     nogroup        20 Mar 10 10:44
> camboinha.servers -> #@camboinha.servers

the client (essentially, the venus process) needs some way to transform
the name after /coda/, in your case "camboinha.servers"
to ip-number(s) of the server(s) corresponding to that realm.

It must be present in either ..../realms file on the client,
or in DNS or (if that is a single server) possibly in /etc/hosts.
Do you have it somewhere?

> # cfs mkmount /coda/usr/teste u.teste
> /coda/usr: No such file or directory

There is evidently no realm named "usr", so no surprise.

> On the server:
> camboinha:/vice# cat vol/BigVolumeList 
> P/vicepa Hcamboinha T1c8348 F108cbc
> Wu.teste I1000001 H1 P/vicepa m0 M0 U2 W1000001 C422f74bf D422f74bf B0 A0
> camboinha:/vice# cat vol/remote/camboinha.servers.list 
> P/vicepa Hcamboinha T1c8348 F108cbc
> Wu.teste I1000001 H1 P/vicepa m0 M0 U2 W1000001 C422f74bf D422f74bf B0 A0
> 
> ==> shouldn't it list coda.root somewhere?

Did you ever create a volume named "coda.root" ?
It seems you have an only volume "u.teste".
You know, you need a root volume. You may use your "u.teste" as root.
Then put its name into db/ROOTVOLUME file (I don't use that way so I may
say wrong, typing from memory).
Or create a volume called "/" and it will be automagically recognized
as the root one (I think).

The root volume is not mounted via an explicit mountpoint, it appears
as /coda/"realmname" (see above of how "realmname" is mapped to servers' IPs).

Then you can create there mountpoints for other volumes.

> still on the volumes:
> camboinha:/vice# volutil  create /vicepa u.bossnes
> V_BindToServer: binding to host camboinha
> Volume 1000004 (u.bossnes) created 
> ==> same if i use 'volutil  create_rep /vicepa u.bossnes camboinha'
> camboinha:/vice# cat vol/remote/camboinha.servers.list 
> P/vicepa Hcamboinha T1c8348 F108cbc
> Wu.teste I1000001 H1 P/vicepa m0 M0 U2 W1000001 C422f74bf D422f74bf B0 A0
> camboinha:/vice# cat vol/BigVolumeList                 
> P/vicepa Hcamboinha T1c8348 F108cbc
> Wu.teste I1000001 H1 P/vicepa m0 M0 U2 W1000001 C422f74bf D422f74bf B0 A0
> camboinha:/vice# 
> 
> Anyone know where i'm having problems?

You are using a wrong tool. Use createvol_rep instead.

Regards,
--
Ivan
Received on 2005-03-10 09:34:30