[OpenAFS] mountpoints are always RW...

Hamish Marson hamish@travellingkiwi.com
Tue, 11 Feb 2003 14:24:51 +0000


OK. Either I'm doing something wrong, or my understanding of AFS is 
severely flawed. My understanding of AFS clients is that they will 
favour a RO copy of a volume over a RW copy, unless the -rw flag was 
used when creating the mount with fs mkmount.

So why when I mount a volume on my AFS tree does fs lsmount always say 
#volumename for BOTH /afs/.cellname/dir and /afs/cellname/dir (Which 
will favour the RO copy? SHouldn't .cellname be the RW copy with 
%volumename?) but fs examine shows it as the RW copy, and writing to the 
.cellname tree shows up in the /afs/cellname tree without doing a 
release? (I thought the RO path would read from the RO copy, and not 
update till a release).

This is Transarcs AFS 3.6 on AIX (But affects my openAFS clients as well).


Here's the output i'm getting (Edited to remove the guilty)

(Make the mountpoint & lsmount it)

fs mkm  /afs/.cellname/web/site1/html/test html.test
fs lsmount /afs/cellname/web/site1/html/test
'/afs/cellname/web/site1/html/test' is a mount point for volume '#html.test'

fs lsmount /afs/.cellname/web/site1/html/test
'/afs/.cellname/web/site1/html/test' is a mount point for volume 
'#html.test'


Both the general copies, if the 'Managing AFS'  book by Campbell is 
correct...

fs examine /afs/.cellname/web/site1/html/test
Volume status for vid = 536870980 named html.test
Current disk quota is 10240
Current blocks used are 208
The partition has 4529107 blocks available out of 4915200

fs examine /afs/cellname/web/site1/html/test
Volume status for vid = 536870980 named html.test
Current disk quota is 10240
Current blocks used are 208
The partition has 4529107 blocks available out of 4915200


You can see that there are RO copies... 2 of them in fact...
vos examine 536870980
html.test                    536870980 RW        208 K  On-line
    server1 /vicepa
    RWrite  536870980 ROnly  536870981 Backup  536870982
    MaxQuota      10240 K
    Creation    Tue Feb 11 10:51:43 2003
    Last Update Tue Feb 11 11:07:27 2003
    3044 accesses in the past day (i.e., vnode references)

    RWrite: 536870980
    number of sites -> 3
       server server1 partition /vicepa RW Site
       server server2 partition /vicepa RO Site  -- Not released
       server server1 partition /vicepa RO Site  -- Not released


Yet files appear instantly in the /afs/cellname path when updated in 
/afs/.cellname.... Why? Shouldn't I need to do a release first?


TIA

Hamish.

-- 

I don't suffer from Insanity... 	| Linux User #16396
	I enjoy every minute of it...	|
					|
http://www.travellingkiwi.com/		|