Re: [OpenAFS] Unable to start afs on OpenSuSE 11.1

2009-06-05 Thread Karen Eldredge
Thanks for all your help.  With the patch from Carsten and Simon I have
successfully compiled and started AFS.


_
"This message and any attachments are solely for the intended recipient and may 
contain confidential or privileged information. If you are not the intended 
recipient, any disclosure, copying, use, or distribution of the information 
included in this message and any attachments is prohibited. If you have 
received this communication in error, please notify us by reply e-mail and 
immediately and permanently delete this message and any attachments. Thank 
you." 
_
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Request at the conference: Configurations used.

2009-06-05 Thread Dan Hyde
> So now tell me what I got wrong.

afs50# cat BosConfig 
restarttime 16 0 0 0 0
checkbintime 16 0 0 0 0
bnode fs fs 1
parm /usr/libexec/openafs/fileserver -L -p 128 -rxpck 2500 -udpsize 1048576 -l 
1000 -s 1000 -vc 1000 -nojumbo -cb 2500 -pctspare 1
parm /usr/libexec/openafs/volserver -p 16 -udpsize 1048576 -nojumbo
parm /usr/libexec/openafs/salvager -parallel all
end
bnode cron snapshot 1
parm /usr/sbin/vos backupsys -se localhost -localauth
parm 18:00
end

 cmdebug -cache localhost
Chunk files:   5
Stat caches:   15000
Data caches:   6000
Volume caches: 256
Chunk size:524288
Cache size:400 kB
Set time:  no
Cache type:disk

Both running UMCE Linux (from LFS) 2.6.27.3.
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] kopenafs.h and libkopenafs question on status

2009-06-05 Thread mike coyne
For some background , the version of globus we are using is from the VDT
distibution http://vdt.cs.wisc.edu/  , This a prepackaged globus 4.0.8
as patched by vdt from various sources.
http://vdt.cs.wisc.edu/software/globus/4.0.8_VDT-1.10.1/globus-patched-source.tar.gz
 is the source from vdt.

My Initial problems with the gatekeeper was that using the external
shell service with globus_k5 ( i believe orignaly written to shell out
and get a kerberos token in from gram ), the call to gssklog -setpag
didn't work as the lsetpag function can't change its parent process at
least for linux. So i setout to add a call to lsetpag in globus_k5 prior
to execv 'ing the call to "gssklog" described in its private mapfile.

in had a similar problem in the globus-gridftp-server , int the
globus_i_gridftp_server.c i added some calls to save the current creds,
do a lsetpag, shell a call to gssklog , and the unlink the credintial
cache so a user could do a globus-url-copy to there home directory in
afs. 

then for wsgram i added the lsetpag and shell to gssklog into the
globus_gridmap_and_execute .c source so that when web stuff fires off
sudo to switch and run as a user, calling globus_gridmap_and_execute
inline so it get their afs token in a new pag in the process and
verifies there creds in the gridmapfile. 

I probably went about this the hard way but so far it seems to work. 


On Fri, 2009-06-05 at 10:26 -0500, Douglas E. Engert wrote:
> 
> Mike Coyne wrote:
> > I have been working on getting globus’s gatekeeper,grid-ftp,gsi-ssh etc. 
> > To work correctly with setting pag’s an shelling gssklog. 
> 
> I have not been involved with Globus for years, but wrote gsiklog and then
> gssklog and much of the Globus gatekeeper for Globus version 1.1.3. The intent
> was for the gatekeeper to call gssklog to get a PAG and token, and it should
> have been working in that verison. So I am curious to what has happened since
> then that requires you have to redo the code.
> 
> I noticed
> > verifying a bug fix 
> > http://rt.central.org/rt/Ticket/Display.hml?id=124709   that when I 
> > built a current snapshot with the diff that the kopenafs libs and header 
> > file was bult and installed . Will this show up In the release or 
> > “features” versions? It appears to be maintained since abut 2006 and 
> > would be quit usefull it will be available .
> > 
> > 
> > To refraze  the question I have calling lsetpag() after some stats on 
> > the /afs directory to see if its there.
> 
> The original gssklog provided a version of lsetpag in gafstoken.c that
> trapped signals if the AFS syscall failed, i.e. AFS was not present on
> the machine. Thus it dod not need any AFS libraries. This was long before
> k_hasafs which might be a beter choice.
> 
>   And hard linking In lilbsys.a
> >  but if the prefered  interface is  k_hasafs() and k_setpag() should I 
> > switch.
> > 
> >  
> > 
> > Thanks Mike
> > 
> >  
> > 
> 

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] kopenafs.h and libkopenafs question on status

2009-06-05 Thread Derrick Brashear
On Fri, Jun 5, 2009 at 10:39 AM, Mike Coyne  wrote:
> I have been working on getting globus’s gatekeeper,grid-ftp,gsi-ssh etc. To
> work correctly with setting pag’s an shelling gssklog. I noticed verifying a
> bug fix http://rt.central.org/rt/Ticket/Display.hml?id=124709   that when I
> built a current snapshot with the diff that the kopenafs libs and header
> file was bult and installed . Will this show up In the release or “features”
> versions? It appears to be maintained since abut 2006 and would be quit
> usefull it will be available .

It should actually be in a 1.5 release very soon, I conferred with
Russ this morning on the way
to the workshop and it looks like the efforts to make updates appear
at the same time we convert to git for version
control will bring this along.

Derrick
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] Unable to start afs on OpenSuSE 11.1

2009-06-05 Thread Carsten Schulz-Key
Simon Wilkinson wrote:
>Try the attached patch for OpenAFS.

The patch can not applied against openafs-1.4.10-src.tar.bz2 due to 
differences in acinclude.m4. Use the following for patching acinclude.m4

--- acinclude.m4~   2009-03-31 14:16:45.0 +0200
+++ acinclude.m42009-06-05 13:54:52.0 +0200
@@ -175,6 +175,12 @@
 AC_ARG_ENABLE(warnings,
 [  --enable-warnings   enable compilation warnings when 
building with gcc (defaults to disabled)],, enable_warnings="no"
 )
+AC_ARG_ENABLE([linux-syscall-probing],
+[AS_HELP_STRING([--disable-linux-syscall-probing],
+[disabling Linux syscall probing (defaults to enabled)])],
+,
+[AC_DEFINE(ENABLE_LINUX_SYSCALL_PROBING, 1, 
+[define to enable syscall table probes])])
 
 enable_login="no"
 
The resulting kernel module works fine:
 $ uname -rp
 2.6.27.21-0.1-default i686
 $ cat /etc/issue
 Welcome to openSUSE 11.1 - Kernel \r (\l).

Thank you for the patch!
Carsten




pgpiXz5YOrkLB.pgp
Description: PGP signature


Re: [OpenAFS] kopenafs.h and libkopenafs question on status

2009-06-05 Thread Douglas E. Engert



Mike Coyne wrote:
I have been working on getting globus’s gatekeeper,grid-ftp,gsi-ssh etc. 
To work correctly with setting pag’s an shelling gssklog. 


I have not been involved with Globus for years, but wrote gsiklog and then
gssklog and much of the Globus gatekeeper for Globus version 1.1.3. The intent
was for the gatekeeper to call gssklog to get a PAG and token, and it should
have been working in that verison. So I am curious to what has happened since
then that requires you have to redo the code.

I noticed
verifying a bug fix 
http://rt.central.org/rt/Ticket/Display.hml?id=124709   that when I 
built a current snapshot with the diff that the kopenafs libs and header 
file was bult and installed . Will this show up In the release or 
“features” versions? It appears to be maintained since abut 2006 and 
would be quit usefull it will be available .



To refraze  the question I have calling lsetpag() after some stats on 
the /afs directory to see if its there.


The original gssklog provided a version of lsetpag in gafstoken.c that
trapped signals if the AFS syscall failed, i.e. AFS was not present on
the machine. Thus it dod not need any AFS libraries. This was long before
k_hasafs which might be a beter choice.

 And hard linking In lilbsys.a
 but if the prefered  interface is  k_hasafs() and k_setpag() should I 
switch.


 


Thanks Mike

 



--

 Douglas E. Engert  
 Argonne National Laboratory
 9700 South Cass Avenue
 Argonne, Illinois  60439
 (630) 252-5444
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] freebsd client

2009-06-05 Thread Matt W. Benjamin
Hi,

Thank you, elbarto.  (You all might want to get on openafs-devel, and/or 
freebsd-afs mailing lists, as well).

Regards,

Matt

-- 

Emmanuel Vadot

elba...@arcadebsd.org
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] kopenafs.h and libkopenafs question on status

2009-06-05 Thread Russ Allbery
"Mike Coyne"  writes:

> I have been working on getting globus's gatekeeper,grid-ftp,gsi-ssh etc.
> To work correctly with setting pag's an shelling gssklog. I noticed
> verifying a bug fix
> http://rt.central.org/rt/Ticket/Display.hml?id=124709   that when I
> built a current snapshot with the diff that the kopenafs libs and header
> file was bult and installed . Will this show up In the release or
> "features" versions? It appears to be maintained since abut 2006 and
> would be quit usefull it will be available .
>
> To refraze  the question I have calling lsetpag() after some stats on
> the /afs directory to see if its there. And hard linking In lilbsys.a
> but if the prefered  interface is  k_hasafs() and k_setpag() should I
> switch.

That's the long-term intention, but I don't think we've decided what
version of OpenAFS that library will start shipping with yet.  The goal
is to ship it as a shared library with a stable API, which avoids
various problems with trying to link to libsys.

-- 
Russ Allbery (r...@stanford.edu) 
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] kopenafs.h and libkopenafs question on status

2009-06-05 Thread Mike Coyne
I have been working on getting globus's gatekeeper,grid-ftp,gsi-ssh etc.
To work correctly with setting pag's an shelling gssklog. I noticed
verifying a bug fix
http://rt.central.org/rt/Ticket/Display.hml?id=124709   that when I
built a current snapshot with the diff that the kopenafs libs and header
file was bult and installed . Will this show up In the release or
"features" versions? It appears to be maintained since abut 2006 and
would be quit usefull it will be available .

 

To refraze  the question I have calling lsetpag() after some stats on
the /afs directory to see if its there. And hard linking In lilbsys.a
but if the prefered  interface is  k_hasafs() and k_setpag() should I
switch.

 

Thanks Mike 

 



Re: [OpenAFS] Clean Uninstall of OpenAFS for Windows and krb5 ?

2009-06-05 Thread Jeffrey Altman
If you have a problem, re-installing is unlikely to resolve it.
I would suggest that you describe the problem you are having
and ask for assistance with how to remove the registry keys
that are documented in the Release Notes that are installed on
the machine with the client.

configuration data is not removed because it is considered
to be owned by the user/organization and is version independent.

Jeffrey Altman


Claudio Prono wrote:
> Hi to all,
> 
> How i can do a clean uninstall of openafs for windows and krb5? I have
> uninstalled them, but i can notice there are some things don't be
> removed. When i reinstall some config are the same as before, so the
> uninstall is not completely clean... I have some problem on a PC and
> with a simple uninstall - reinstall i can't resolve it.
> 
> Any hint ?
> 
> Claudio.
> 

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] Clean Uninstall of OpenAFS for Windows and krb5 ?

2009-06-05 Thread Claudio Prono
Hi to all,

How i can do a clean uninstall of openafs for windows and krb5? I have
uninstalled them, but i can notice there are some things don't be
removed. When i reinstall some config are the same as before, so the
uninstall is not completely clean... I have some problem on a PC and
with a simple uninstall - reinstall i can't resolve it.

Any hint ?

Claudio.

-- 

Claudio Prono
Systems Development @ PSS Srl, Divisione Implementazione Sistemi
Via San Bernardino, 17 - 10137 Torino (TO) - IT
Tel +39-011.32.72.100  Fax +39-011.32.46.497
PGP Fingerprint: 75C2 4049 E23D 2FBF A65F  40DB EA5C 11AC C2B0 3647
Disclaimer: http://atpss.net/disclaimer
 

___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] TSM backup client

2009-06-05 Thread Anders Magnusson

So, at last the TSM client I have written is available.  It can be fetched
from /afs/ltu.se/misc/tsmafs/tsmafs-0.1.tgz for anyone that is interested.

Simple overview:
The backup client works by talking directly to the file server(s) and 
fetch files
out of afs, and then put them into tsm as separate objects (as other tsm 
backup
clients do).  In this way it works with the usual policies setup for tsm 
regarding

storage time, object counts etc.
Backups are done volume-wise.  Mountpoints and ACLs are stored as they
should be.  Volumes are checked if changed before traversing them, which
speed up the process significantly.

The restore client works but should need a facelift.  Currently it just 
restores

files and directories without possibility to change time or so.  Do do more
advanced restore stuff, use dsmc, it can restore files backed up from afs
(but no acls or so then).

The only "flaw" is that the TSM API cannot handle names with ? or * in it,
so I do a little name mangling here: \ -> \\, * -> \# and ? -? \!.  This 
could

easily be converted back via the restore client, but not yet added.

Comments/ideas/fixes?

-- Ragge


___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


Re: [OpenAFS] freebsd client

2009-06-05 Thread elbarto

On Tue, 2 Jun 2009 12:43:29 -0400, Jerry McAllister 
wrote:
> On Tue, Jun 02, 2009 at 12:03:39PM -0400, Derrick Brashear wrote:
> 
>> On Tue, Jun 2, 2009 at 6:12 AM, ENEM | Hans Melgers 
wrote:
>> > Hello,
>> >
>> >
>> >
>> > I was wondering if there have been any changes in the status of the
>> > openafs
>> > freebsd client, is it ready for production now ?
>> 
>> It depends which version of FreeBSD, but we are distributing a stable
>> and working version from Matt Benjamin as of OpenAFS 1.4.8.
> 
> How about FreeBSD 7.2 RELEASE  -- or even 8.0 (Current)?
> 
> jerry
> 


 Hello,

I'm running openafs-1.4.10 on a i386 FreeBSD 7.2-RELEASE-p0
Here is the patch to compile :
http://www.arcadebsd.org/~elbarto/patch_fbsd-72.diff
The patch include the modification needed for an amd64 environment but it
isn't tested.

I got a few problems :

- I have to specified the --with-bsd-kernel-headers and
--with-bsd-kernel-build, it won't compile with the default value (I, maybe,
have forgotten to modify some autotool config files).
- When browsing a big directory with Thunar (the xfce file manager) the
computer freeze and I can't get a coredump of afsd or a savecore of the
kernel to help debugging.
- I think I tested in the past some user with home directory on afs and the
kernel panic at link or unlink syscall, I will re-test that in a few days.

Hope it can help some people to debug/run openafs on FreeBSD.

Cheers.

-- 
Emmanuel Vadot
elba...@arcadebsd.org
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info


[OpenAFS] Re: asetkey: can't initialize conf dir '/usr/afs/etc'

2009-06-05 Thread TIARA System Man
dear all,

sorry to bother you. i found the problem. the problem was i had typo
in CellServDB file. thanks.

best, sam

On Fri, Jun 5, 2009 at 12:01 PM, TIARA System Man
 wrote:
> hi,
>
> before i used "asetkey add 3 /etc/krb5.keytab afs"  command to add
> KeyFile without any problem. now, i'm using
> openafs-server-1.4.10-el5.1.1.x86_64 package. it occurs "asetkey:
> can't initialize conf dir '/usr/afs/etc'" messages. please give me
> some hints to tell me what to do.  thank you.
>
> best, sam
>
> --
> Sam Tseng
> Academia Sinica
> Institute of Astronomy and Astrophysics
> Tel: +886-2-3365-2200 ext 742
> Fax: +886-2-2367-7849
>



-- 
Sam Tseng
Academia Sinica
Institute of Astronomy and Astrophysics
Tel: +886-2-3365-2200 ext 742
Fax: +886-2-2367-7849
___
OpenAFS-info mailing list
OpenAFS-info@openafs.org
https://lists.openafs.org/mailman/listinfo/openafs-info