From ee2cee3a25fd949d41ae05249b52095148748200 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Thu, 15 Jun 2006 14:20:59 +0000 Subject: [PATCH] r2161@windlord: eagle | 2006-06-07 12:01:55 -0700 * When creating a new file server in afs-newcell, use a set of tuning flags from Harald Barth rather than relying on the defaults. This doesn't help with general bos create; long term, the defaults need to be fixed. * Add a note in README.servers about fileserver tuning options. --- debian/README.servers | 12 +++++++++++- debian/afs-newcell | 8 +++++++- debian/changelog | 7 ++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/debian/README.servers b/debian/README.servers index d323215af..e81f0320a 100644 --- a/debian/README.servers +++ b/debian/README.servers @@ -321,7 +321,17 @@ Adding Additional Servers -cmd /usr/lib/openafs/volserver \ -cmd /usr/lib/openafs/salvager -localauth - For a file server, this is all you have to do. + For a file server, this is all you have to do. The above uses the + default fileserver options, however, which are not particularly + well-tuned for modern systems. afs-newcell uses the following + parameters from Harald Barth: + + -p 23 -busyat 600 -rxpck 400 -s 1200 -l 1200 -cb 65535 + -b 240 -vc 1200 + + If you want to add any additional fileserver options, enclose + /usr/lib/openafs/fileserver and the following options in double + quotes when giving the bos create command. 4. For database servers, also install openafs-dbserver and then use bos addhost to add the new server to /etc/openafs/server/CellServDB: diff --git a/debian/afs-newcell b/debian/afs-newcell index 725d526b9..3aee647f3 100644 --- a/debian/afs-newcell +++ b/debian/afs-newcell @@ -12,6 +12,12 @@ use Socket qw(inet_ntoa); use vars qw($admin $server $requirements_met $shutdown_needed); my $rl = new Term::ReadLine('afs-newcell'); +# The default file server options are poor. Until they've been updated, use +# the following from Harald Barth; it should be an improvement for most +# people. +my $fs_options = '-p 23 -busyat 600 -rxpck 400 -s 1200 -l 1200 -cb 65535' + . ' -b 240 -vc 1200'; + =head1 NAME afs-newcell - Set up initial database server for AFS cell @@ -223,7 +229,7 @@ unwind("bos delete $server vlserver -localauth"); # Create a file server as well. run("bos create $server fs fs" - . " -cmd /usr/lib/openafs/fileserver" + . " -cmd '/usr/lib/openafs/fileserver $fs_options'" . " -cmd /usr/lib/openafs/volserver" . " -cmd /usr/lib/openafs/salvager -localauth"); unwind("bos delete $server fs -localauth"); diff --git a/debian/changelog b/debian/changelog index c4b3db724..5d77e9961 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,9 +3,14 @@ openafs (1.4.1-3) unstable; urgency=low * Include all of AFS's local XDR implementation in the build for shlibafsrpc, fixing problems with undefined symbols in the PAM module on AMD64. + * When creating a new file server in afs-newcell, use a set of tuning + flags from Harald Barth rather than relying on the defaults. This + doesn't help with general bos create; long term, the defaults need to + be fixed. + * Add a note in README.servers about fileserver tuning options. * Update standards version to 3.7.2 (no changes required). - -- + -- Russ Allbery Wed, 7 Jun 2006 12:01:28 -0700 openafs (1.4.1-2) unstable; urgency=low -- 2.39.5