[OpenAFS-port-darwin] Conflicts when network disconnected
Thomas Jordan
jordant@fnal.gov
Tue, 07 Dec 2004 09:26:35 -0600
I wrote a simple script that I execute from the terminal to unhang my
laptop when this happens.
stopafs:
OwenMeany:~ jordant$ more /usr/bin/stopafs
#! /bin/bash
sudo umount -f /afs
sudo /sbin/kextunload -b org.openafs.filesystems.afs
OwenMeany:~ jordant$
I also linked /usr/bin/afs to the OpenAFS file in
/Library/StartupItems/OpenAFS/. The file in this path is the one that
the installer puts there and directs you to use to start the client.
These two changes allow me to start and stop AFS at will. voila'
OwenMeany:~ jordant$ date
Tue Dec 7 09:21:35 CST 2004
OwenMeany:~ jordant$ sudo afs
Loading AFS kernel extensions
kextload: /var/db/openafs/etc/afs.kext loaded successfully
Starting afsd
afsd: All AFS daemons started.
OwenMeany:~ jordant$ date
Tue Dec 7 09:21:47 CST 2004
OwenMeany:~ jordant$ sudo stopafs
kextunload: unload id org.openafs.filesystems.afs succeeded (any
personalities also unloaded)
OwenMeany:~ jordant$ date
Tue Dec 7 09:22:05 CST 2004
OwenMeany:~ jordant$ sudo afs
Loading AFS kernel extensions
kextload: /var/db/openafs/etc/afs.kext loaded successfully
Starting afsd
afsd: All AFS daemons started.
OwenMeany:~ jordant$ ls /
Applications Library afs
mach.sym
Applications (Mac OS 9) Network
automount mach_kernel
Desktop DB System bin
private
Desktop DF System Folder cores
sbin
Desktop Folder User Guides And Information dev
tmp
Developer Users etc
usr
Documents To Go Installer Log Volumes mach
var
OwenMeany:~ jordant$
One warning though. If there are any afs resources open (e.g., files)
stopping afs _will_ kernel panic your machine. In earlier versions of
afs simply having a terminal with its pwd in afs space will panic the
machine if afs is stopped.
Enjoy,
Tom
On 7 Dec 2004, at 8:59, David Botsch wrote:
> If you are just booting, then, you can boot with the -nomount option,
> which
> will cause afs to not mount anything, hence, no hangs. You can then
> use the
> Mount_AFS gui tool available from:
>
> http://cf.ccmr.cornell.edu/publicdownloads/afs/
>
> to mount afs once you have a network. You'll also want to edit your
> afs startup
> script so that afs always starts, regardless of whether the network is
> present.
>
> Now, this doesn't help you if you're already up, afs is already
> mounted, then,
> you disconnect from the network. Once the finder or some app tries to
> stat
> stuff in afs, you're going to see hangs. Unless something has changed,
> there
> doesn't seem to be a clean way to unmount afs or stop then restart afs
> if
> you've already done stuff in afsland.
>
> On Mon, Dec 06, 2004 at 08:25:51PM -0500, Philip Choi wrote:
>> I have OpenAFS installed on my laptop running 10.3.6. So when I'm
>> not connected to a network, there are some problems. Notably:
>>
>> Finder sometimes hangs, waiting for each AFS server to time-out.
>> Mounting disk images causes hang, waiting for AFS servers to time-out.
>> Certain applications, like Now Contact and Canon EOS Viewer Utility
>> do not launch or do not work properly. They only work again when the
>> network is reconnected and the AFS volumes are "back up".
>>
>> Does anyone know about this, and is there any workaround? Seems a
>> shame that disconnected network volumes would cause so much trouble.
>> _______________________________________________
>> port-darwin mailing list
>> port-darwin@openafs.org
>> https://lists.openafs.org/mailman/listinfo/port-darwin
>
> --
> ********************************
> David William Botsch
> Consultant/Advisor II
> CCMR Computing Facility
> dwb7@ccmr.cornell.edu
> ********************************
> _______________________________________________
> port-darwin mailing list
> port-darwin@openafs.org
> https://lists.openafs.org/mailman/listinfo/port-darwin
>
>
--
Thomas Jordan
Fermi National Accelerator Lab
PO Box 500 MS 226
Kirk and Pine Streets
Batavia, Illinois
60510
voice: 630.840.4035
fax: 630.840.8248