[OpenAFS] SuSe-RPMs

Tino Schwarze tino.schwarze@informatik.tu-chemnitz.de
Thu, 27 Sep 2001 10:26:53 +0200


--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii

On Wed, Sep 26, 2001 at 03:23:25PM -0400, Derek Atkins wrote:

> > 2@last:203 Z# ls -l /etc/init.d/rc?.d/???afs
> > lrwxrwxrwx    1 root     root            6 Jun  7 09:06 
> > /etc/init.d/rc3.d/K15afs -> ../afs
> > lrwxrwxrwx    1 root     root            6 May 10 10:11 
> > /etc/init.d/rc3.d/S08afs -> ../afs
> > 
> > (and PCMCIA starts as S06)
> 
> Then you've changed something (or you're not using Red Hat):
> 
> ls -l /etc/rc.d/rc*/*pcmcia
> /etc/rc.d/rc3.d/S45pcmcia
> ..
> 
> > also, any particular reason why the start is hardcoded?  /sbin/insserv is 
> > your friend.
> 
> which insserv
> insserv: Command not found.
> 
> Not a Red Hat ism.  Clearly you're using SuSE.  That's fine.  My point
> is that the patch changed the Red Hat values which just don't cut it.
> For the record, I did just include most of the patch into the Red Hat
> RPMs.  It would be nice if someone could supply the patch to the
> sysconfig file to supply the XLARGE and XXLARGE options. :)

Hm. I must have messed up the RPM a bit. Thomas had a patch for this.
Yes, it looks like I missed that particular patch.

I quickly extracted it (didn't check whether it applies correctly), it
can be found at (maybe I'll attach it too, if I don't forget it. ;-) )
/afs/tu-chemnitz.de/openafs/suse-7.2/SOURCES/openafs-1.2.0-sysconfig.patch

Bye, Tino.

-- 
             * LINUX - Where do you want to be tomorrow? *
                  http://www.tu-chemnitz.de/linux/tag/

--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="openafs-1.2.0-sysconfig.patch"

diff -Naurw openafs-1.1.1.orig/src/afsd/afs.conf.linux openafs-1.1.1/src/afsd/afs.conf.linux
--- openafs-1.1.1.orig/src/afsd/afs.conf.linux	Mon Apr 30 17:18:39 2001
+++ openafs-1.1.1/src/afsd/afs.conf.linux	Mon May 14 12:48:32 2001
@@ -8,24 +8,41 @@
 
 # Configuration information for AFS client
 
+# completely modified to fulfil our requirements
+# Thomas.Mueller@hrz.tu-chemnitz.de, 14.05.2001
+
 # AFS_CLIENT and AFS_SERVER determine if we should start the client and or
 # the bosserver. Possible values are on and off.
 AFS_CLIENT=on
 AFS_SERVER=off
 
 # AFS client configuration options:
-LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
-MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
-SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"
-OPTIONS=$MEDIUM
+# extremely large cache (cachesize > 2GB), Chunkfilesize: 512KB
+XXLARGE="-stat 2800 -dcache 2400 -daemons 6 -volumes 128 -chunksize 19 -files 50000"
+# extra large cache (1 GB <= cachesize < 2GB)
+XLARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128 -files 50000"
+# large cache (512 MB <= cachesize < 1 GB)
+LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128 -files 50000"
+# medium cache (128 MB <= cachesize < 512 MB)
+MEDIUM="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
+# small cache (32 MB <= cachesize < 128 MB)
+SMALL="-stat 2000 -dcache 800 -daemons 4 -volumes 96"
+
+# cachesize and according options are set by the /afs/rc.d/init.d/afs
+# if you keep the word "AUTOMATIC" in following two lines
+# otherwise the values specified here will be used. So be carefully!
+# CACHESIZE=200000
+# OPTIONS=$MEDIUM
+CACHESIZE=AUTOMATIC
+OPTIONS=AUTOMATIC
+
+# you should never need to change this
+AFSDIR=/afs
+CACHEDIR=/usr/vice/cache
 
 # Set to "-verbose" for a lot of debugging information from afsd. Only
 # useful for debugging as it prints _a lot_ of information.
 VERBOSE=
-
-# OPTIONS are the options passed to afsd.
-OPTIONS="$OPTIONS $VERBOSE"
-
 
 # Sample server preferences function. Set server preferences using this.
 # afs_serverprefs() {
diff -Naurw openafs-1.1.1.orig/src/afsd/afs.conf.linux-rh7.2 openafs-1.1.1/src/afsd/afs.conf.linux-rh7.2
--- openafs-1.1.1.orig/src/afsd/afs.conf.linux-rh7.2	Thu Jan  1 01:00:00 1970
+++ openafs-1.1.1/src/afsd/afs.conf.linux-rh7.2	Fri Aug 10 11:36:05 2001
@@ -0,0 +1,54 @@
+#! /bin/sh
+# Copyright 2000, International Business Machines Corporation and others.
+# All Rights Reserved.
+#
+# This software has been released under the terms of the IBM Public
+# License.  For details, see the LICENSE file in the top-level source
+# directory or online at http://www.openafs.org/dl/license10.html
+
+# Configuration information for AFS client
+
+# completely modified to fulfil our requirements
+# Thomas.Mueller@hrz.tu-chemnitz.de, 14.05.2001
+
+# AFS_CLIENT and AFS_SERVER determine if we should start the client and or
+# the bosserver. Possible values are on and off.
+AFS_CLIENT=on
+AFS_SERVER=off
+
+# AFS client configuration options:
+# extremely large cache (cachesize > 2GB), Chunkfilesize: 512KB
+XXLARGE="-stat 2800 -dcache 2400 -daemons 6 -volumes 128 -chunksize 19 -files 50000"
+# extra large cache (1 GB <= cachesize < 2GB)
+XLARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128 -files 50000"
+# large cache (512 MB <= cachesize < 1 GB)
+LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128 -files 50000"
+# medium cache (128 MB <= cachesize < 512 MB)
+MEDIUM="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
+# small cache (32 MB <= cachesize < 128 MB)
+SMALL="-stat 2000 -dcache 800 -daemons 4 -volumes 96"
+
+# cachesize and according options are set by the /afs/rc.d/init.d/afs
+# if you keep the word "AUTOMATIC" in following two lines
+# otherwise the values specified here will be used. So be carefully!
+# CACHESIZE=200000
+# OPTIONS=$MEDIUM
+CACHESIZE=AUTOMATIC
+OPTIONS=AUTOMATIC
+
+# you should never need to change this
+AFSDIR=/afs
+CACHEDIR=/afscache
+
+# Set to "-verbose" for a lot of debugging information from afsd. Only
+# useful for debugging as it prints _a lot_ of information.
+VERBOSE=
+
+# Sample server preferences function. Set server preferences using this.
+# afs_serverprefs() {
+#    /usr/afsws/etc/fs setserverprefs <host> <rank>
+#}
+
+# Either the name of an executable script or a set of commands go here.
+# AFS_POST_INIT=afs_serverprefs
+AFS_POST_INIT=

--0OAP2g/MAC+5xKAE--