Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 116854 - openafs-1.4.0-r1 update won't mount /afs
Summary: openafs-1.4.0-r1 update won't mount /afs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High blocker (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL: http://forums.gentoo.org/viewtopic-p-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-27 03:01 UTC by Mike Hammill
Modified: 2006-01-25 01:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
openafs emerge from /var/log/emerge.log (e_merge,994 bytes, text/plain)
2005-12-27 03:06 UTC, Mike Hammill
Details
emerge --info (e_info,2.03 KB, text/plain)
2005-12-27 03:07 UTC, Mike Hammill
Details
dmesg (e_dmesg,25.26 KB, text/plain)
2005-12-27 03:42 UTC, Mike Hammill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Hammill 2005-12-27 03:01:38 UTC
I just upgraded to the latest openafs (from 1.4.0 to 1.4.0-r1). Emerge went fine, during which I had openafs-client shutdown. I did a dispatch-conf to update to the new openafs config file. When I attempt to run it now, however I get:

# /etc/init.d/openafs-client start 
 * Starting OpenAFS client ...
 *   Loading OpenAFS kernel module ...                                    [ ok ]
 *   Starting OpenAFS daemon ...                                          [ !! ] 

Manually, I get

/usr/sbin/afsd -verbose
 [...a bunch of messages saying it's creating cache files]
All AFS daemons started.
afsd: Forking trunc-cache daemon.
SScall(137, 28, 3)=0 afsd: Mounting the AFS root on '/afs', flags: 0.
afsd: Can't mount AFS on /afs(2) 

I fail to see what is wrong here.  In the URL given above, I include pointers to suggestions/info I found from IBM and MIT, but they have not helped.
Comment 1 Mike Hammill 2005-12-27 03:06:42 UTC
Created attachment 75589 [details]
openafs emerge from /var/log/emerge.log
Comment 2 Mike Hammill 2005-12-27 03:07:18 UTC
Created attachment 75590 [details]
emerge --info
Comment 3 Stefaan De Roeck (RETIRED) gentoo-dev 2005-12-27 03:13:29 UTC
I considered the changes to the init script as only minor, so this kind of surprises me.  Furthermore, the init script is the only thing that has changed from 1.4.0 to 1.4.0-r1 (the patch can be found in bug #116220).  

Does your /afs directory still exist?  Did any messages appear in dmesg?  What exactly did you try that didn't help? ...
Comment 4 Mike Hammill 2005-12-27 03:42:21 UTC
(In reply to comment #3)
> I considered the changes to the init script as only minor, so this kind of
> surprises me.  Furthermore, the init script is the only thing that has 
> changed from 1.4.0 to 1.4.0-r1 (the patch can be found in bug #116220).  

Yes, I'm surprised too.  Since I really count on AFS being there (a work machine), and everything had worked so well with 1.4.0, I figured 1.4.0-r1 would be a piece of cake.

> Does your /afs directory still exist?  
No: ls / shows no /afs
No: # cat /proc/mounts 
rootfs / rootfs rw 0 0
/dev/hdb3 / ext3 rw,noatime,data=ordered 0 0
proc /proc proc rw,nodiratime 0 0
sysfs /sys sysfs rw 0 0
udev /dev tmpfs rw,nosuid 0 0
devpts /dev/pts devpts rw 0 0
/dev/vg/usr /usr reiserfs rw,noatime 0 0
/dev/vg/home /home reiserfs rw,noatime 0 0
/dev/vg/opt /opt reiserfs rw,noatime 0 0
/dev/vg/var /var reiserfs rw,noatime 0 0
/dev/vg/tmp /tmp reiserfs rw,noatime 0 0
/dev/vg/afscache /var/cache/openafs ext2 rw,nogrpid 0 0
shm /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0
usbfs /proc/bus/usb usbfs rw 0 0

but as you can see, /var/cache/openafs is still there.

> Did any messages appear in dmesg?  
Yes, I see some problems there, but not sure how to address them.  I will attach dmesg in a minute.

> What exactly did you try that didn't help? ...
(I mention this in the "URL", i.e., thread in the forum.)  I tried deleting everything from /var/cache/openafs and then restarting.  I verified values in ThisCell, TheseCells, and /etc/openafs/cacheinfo.  There were no changes to the later three.  Deleting cache made no difference.  I played with rxdebug, as mentioned by MIT, but really don't know where to go with that. 
Comment 5 Mike Hammill 2005-12-27 03:42:52 UTC
Created attachment 75591 [details]
dmesg
Comment 6 Stefaan De Roeck (RETIRED) gentoo-dev 2005-12-27 03:48:47 UTC
My guess is to fix this, you just need to "mkdir /afs" and restart openafs-client.  As to how this occurred, did you have openafs-client running or not while you were upgrading? (Either should work, just trying to figure out how it went wrong)
Comment 7 Stefaan De Roeck (RETIRED) gentoo-dev 2005-12-27 04:00:25 UTC
Oops sorry, you already mentioned that in your first comment :)  Working towards a fix...
Comment 8 Mike Hammill 2005-12-27 04:04:09 UTC
(In reply to comment #6)
> My guess is to fix this, you just need to "mkdir /afs" and restart
> openafs-client.  

Your guess would be right!  Thanks!
gannet ~ # /usr/sbin/afsd -shutdown
afsd: Shutting down all afs processes and afs state
gannet ~ # modprobe -r openafs
gannet ~ # mkdir /afs
gannet ~ # /etc/init.d/openafs-client start
 * Starting OpenAFS client ...
 *   Loading OpenAFS kernel module ...                                                                                          [ ok ]
 *   Starting OpenAFS daemon ...                                                                                                [ ok 

> As to how this occurred, did you have openafs-client running
> or not while you were upgrading? (Either should work, just trying to figure 
> out how it went wrong)

No, I shut it down first, figuring it might cause problems.  

You know, I don't remember making /afs when I first installed openafs.  I thought about doing that, but it seemed wrong to me.  I thought the client should do all that.  Sorry about that!

I do backups (using rdiff-backup) through /afs so I pump quite a bit of data through it sometimes.  I'll let you know if anything strange shows up.  Any other questions?  (In case so, I didn't close this bug, but you can as you see fit, of course.)

I would like to thank you greatly for the magnificently FAST RESPONSE!  Wow! I am not only deeply indebted, but happily impressed!!!!
/iMike
Comment 9 Stefaan De Roeck (RETIRED) gentoo-dev 2005-12-27 04:26:55 UTC
> No, I shut it down first, figuring it might cause problems.  
>
> You know, I don't remember making /afs when I first installed openafs.  I
> thought about doing that, but it seemed wrong to me.  I thought the client
> should do all that.  Sorry about that!

Ironically, this bug wouldn't have occurred if you hadn't shut down your client.  And the openafs-ebuild makes the /afs-dir for you.  Only problem is, it deletes it when it's uninstalled, regardless of whether you installed a newer version in the mean time or not.  So this bug also only shows during an upgrade.  

FYI, the actual bug is in bug #9849, which is known, but the code designed to cirumvent it seems flawed as well.

> I would like to thank you greatly for the magnificently FAST RESPONSE!  Wow! I
> am not only deeply indebted, but happily impressed!!!!

You're very welcome.  Our aim is to please and minimize downtime :-D
Comment 10 Mike Hammill 2005-12-27 05:06:38 UTC
Thanks again, Stefaan!

OpenAFS/Heimdal is working great now!

(I'll try not to be so carefull about shutting it down before an upgrade again ;-)

Comment 11 Stefaan De Roeck (RETIRED) gentoo-dev 2006-01-25 01:36:36 UTC
Moved mountpoint creation/deletion from ebuild to init-script in openafs-1.4.0-r2. Thanks for reporting!