Penguin

Differences between version 7 and predecessor to the previous major change of AFSNotes.

Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History

Newer page: version 7 Last edited on Wednesday, June 18, 2003 11:58:35 pm by NathanWard Revert
Older page: version 6 Last edited on Friday, May 30, 2003 2:22:55 pm by CraigBox Revert
@@ -13,16 +13,20 @@
  
 ! Filesystems and Partitions 
  
 [AFS] seems to be fairly filesystem independant, so you can basically use any filesystem you like on the server. It really prefers having a seperate partition for your AFS cell, and some notes I've read hint at it requiring a different fsck for magical reasons, so its probably best to follow this. Put your first partition on /vicepa, and your second on /vicepb, and so on. 
+<br><small>You can also use the namei backend which is slow, but is FS/OS independant, provided you can do normal filesystem stuff - NathanWard</small>  
+  
  
 ! Hostname 
  
 [AFS] requires that the hostname of your server resolve via DNS correctly. Make sure this is the case before you get too far down the line, or else you'll hit weird problems that occur for no apparent reason. 
+<br><small>I've never had this problem... I have used clients and servers with no DNS server. Perhaps this is a [Kerberos] issue? - NathanWard</small>  
  
 ! Kernel 
  
 [AFS] seems to really dislike linux 2.4.20. I've not tried it on a more recent kernel (not even a pre21 kernel). It does seem to work ok with 2.4.18 however. Make sure you have a kernel that works before continuing, or else things will fail for no good reason! 
+<br><small>I'm running 2.4.20 in production now. Works fine. YMMV - NathanWard</small>  
  
 !! Installing [AFS] 
  
 ! Installing the packages: 
@@ -34,41 +38,61 @@
  
  
 ! Setting up Kerberos 
  
+<verbatim>  
 Run the following commands: 
  kadmin.local -e des-cbc-crc:v4 
- addprinc -randkey afs  
- ktadd -k /tmp/afs.keytab afs  
- quit 
+ addprinc -randkey afs  
+ ktadd -k /tmp/afs.keytab afs  
+ quit 
  kadmin.local 
- addprinc root  
- (enter passowrds)  
- quit 
+ addprinc root  
+ (enter passowrds)  
+ quit 
  asetkey add 3 /tmp/afs.keytab afs 
+</verbatim>  
+  
+<small>I don't think adding a princ for root is a good idea. The "[Kerberos] Way" is to have user/instance. In my case, nward/admin, which in AFS is known as nward.admin - NathanWard</small>  
  
 ! Partitions 
  
 Make sure you have a partition created and mounted at /vicepa. If you cant do this with a real partition, make a loopback one as follows: 
  
+<verbatim>  
  dd if=/dev/zero of=/var/lib/openafs/vicepa bs=1024k count=32 
  mke2fs /var/lib/openafs/vicepa 
  mount -oloop /var/lib/openafs /vicepa 
+</verbatim>  
+  
+<small>Never fear! later on you can add /vicepb, /vicepc and so on.. - NathanWard</small>  
  
 ! Set up the cell 
  
 In /etc/openafs, edit the following files and make sure they look something like these 
  
-/etc/openafs/! ThisCell 
+<verbatim>  
+ /etc/openafs/ThisCell 
  element.tla 
-/etc/openafs/! CellServDb 
+/etc/openafs/CellServDb 
  >element.tla # cell 
  10.66.1.101 # afs.element.tla 
+</verbatim>  
  
 At this point, make sure you have compiled the openafs modules for your kernel. If you build a new kernel at the same time, reboot now so you can get these modules installed properly. 
  
-The debian packages , at least, come with a script to do all this for you: 
+You can do this under [Debian] with [make-kpkg]:  
+<verbatim>  
+# apt-get source openafs-modules-source  
+# cd /usr/src  
+# tar xzf openafs.tar.gz  
+# cd /path/to/kernel/source  
+# make-kpkg modules_image  
+# dpkg -i ../openafs-modules*deb  
+</verbatim>  
+  
+ The DebianPackages , at least, come with a script to do all this for you: 
  afs-newcell 
  
 ! Set up the root volume: 
 There is also a script to to this: 
  afs-rootvol