[OpenAFS] Read-Write Disconnected Mode - How does it work?

Jason Edgecombe jason@rampaginggeek.com
Sun, 01 Feb 2009 20:48:59 -0500


Simon Wilkinson wrote:
>
> On 1 Feb 2009, at 15:55, Jason Edgecombe wrote:
>
>> Simon Wilkinson wrote:
>>> I've so far run a number of file system test utilities against 
>>> disconnected mode, as well as using it for some day to day work, and 
>>> a large number of package builds. I'm not currently aware of any way 
>>> to break the current code. There are some additional fixes in CVS, 
>>> over the 1.5.57 release, so if you are interested in testing, using 
>>> the tip of the 1.5 branch is a good place to start.
>> Hi Simon,
>>
>> How can I build an RPM for Fedora 10 from the 1.5 CVS branch?
>
> The simplest way is to install the 1.5.57 SRPM from 
> /afs/inf.ed.ac.uk/group/afsbuild/1.5.57/openafs-1.5.57-1.1.1.src.rpm
> Then replace the src tarball with one obtained from a CVS checkout, 
> and change the release field in the SPEC file to something that 
> indicates the date of that checkout. You can then rebuild the SRPM 
> using the normal rpmbuild commands.
>
> Once the patches for bugs 124272 and 124273 (which I've just submitted 
> to make the stuff in the tree match what I'm using for packaging), 
> you'll be able to use the src/packaging/RedHat/makesrpm.pl script to 
> generate a SRPM from a source tree, in the same way as for the 1.4.x 
> branch.

I had some trouble with discon mode. I compiled an RPM from the 1_5 
branch in CVS. I can "find . -type f | cat > /dev/null", then I can fs 
discon offline. Problems that I had:
* ls couldn't find "."; reconnecting and disconnecting fixed it.
* I tried running my newtests perl scripts, but that failed with some 
perl errors.
* vi complained of multiple swap files when trying to edit the config 
file for my test suite.
* fs discon online said I didn't have the proper permissions when run as 
root.
* "fs discon online -force" made AFS freeze

Here is my dmesg output:
openafs: module license 'http://www.openafs.org/dl/license10.html' 
taints kernel.
Symbol init_mm is marked as UNUSED, however this module is using it.
This symbol will go away in the future.
Please evalute if this is the right api to use and if it really is, 
submit a report the linux kernel mailinglist together with submitting 
your code for inclusion.
Warning: Unable to find the address of authtab
NFS Translator hooks will not be installed
To correct, specify authtab_addr=<authtab>
Found system call table at 0xfffffffffffffffe (exported)
Address 0xfffffffffffffffe is not writable.
System call hooks will not be installed; proceeding anyway
Found 32-bit system call table at 0xfffffffffffffffe (exported)
Address 0xfffffffffffffffe is not writable.
System call hooks will not be installed; proceeding anyway
Starting AFS cache scan...found 14 non-empty cache files (0%).
SELinux: initialized (dev afs, type afs), uses genfs_contexts
IPv6 over IPv4 tunneling driver
sit0: Disabled Privacy Extensions
e1000: eth0: e1000_watchdog: NIC Link is Up 1000 Mbps Full Duplex, Flow 
Control: None
ADDRCONF(NETDEV_UP): eth0: link is not ready
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
WARM shutting down of: CB... afs... BkG... CTrunc... AFSDB... RxEvent... 
UnmaskRxkSignals... RxListener...
WARNING: not all blocks freed: large 1 small 4
 ALL allocated tables
Symbol init_mm is marked as UNUSED, however this module is using it.
This symbol will go away in the future.
Please evalute if this is the right api to use and if it really is, 
submit a report the linux kernel mailinglist together with submitting 
your code for inclusion.
Warning: Unable to find the address of authtab
NFS Translator hooks will not be installed
To correct, specify authtab_addr=<authtab>
Found system call table at 0xffffffff8133f640 (pattern scan)
Address 0xffffffff8133f640 is not writable.
System call hooks will not be installed; proceeding anyway
Warning: failed to find address of 32-bit system call table
System call hooks will not be installed; proceeding anyway
Starting AFS cache scan...found 14 non-empty cache files (0%).
SELinux: initialized (dev afs, type afs), uses genfs_contexts

Sync succeeded. You are back online.
Network is down in afs_GetCacheNetwork is down in afs_GetCacheNetwork is 
down in afs_GetCache
Sync succeeded. You are back online.
Network is down in afs_GetCacheNetwork is down in afs_GetCacheNetwork is 
down in afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNot allowed yet.
Not allowed yet.
Network is down in afs_GetCacheNetwork is down in afs_GetCacheNetwork is 
down in afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheNetwork is down in afs_GetCacheNetwork is down in 
afs_GetCacheafs_ProcessOpCreate: error while creating vnode on server, 
code=49733388 .
Files not synchronized properly, still in discon state.
Please retry or use "force".
afs_ProcessOpCreate: error while creating vnode on server, code=49733388 .
Files not synchronized properly, still in discon state.
Please retry or use "force".
afs_ProcessOpCreate: error while creating vnode on server, code=49733388 .


Sincerely,
Jason