View previous topic :: View next topic |
Author |
Message |
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Sun May 01, 2005 10:56 am Post subject: HOWTO: OpenAFS fileserver cluster (new ebuilds /kernel 2.6) |
|
|
HOWTO: OpenAFS fileserver cluster (new ebuilds /kernel 2.6)
Introduction
AFS is a distributed filesystem that enables co-operating hosts (clients and servers) to efficiently share filesystem resources across both local area and wide area networks. Clients hold a cache for often used objects (files), to get quicker access to them.
source: http://www.gentoo.org/doc/en/openafs.xml
History
OpenAFS has a very long history: it's more than 20 years old. The most important milestone in it's history is, (at least for me) that it's open-source today. It runs on a wide range of platforms including Windows, OSX, Irix and GNU/Linux. The OpenAFS guys have been working very hard last year to make it run on 2.6 kernels.
There are people running OpenAFS on Gentoo and most of them are stuck to kernel 2.4 due the lack of stable packages and rc-scripts for kernel 2.6.
About
I've been testing OpenAFS client and server functions in the latest unstable releases. As I've been testing it with good results, I'm willing to share my experience and scripts to others. My work on OpenAFS aims to match the existing Gentoo docs for OpenAFS as scrict as possible. This howto shows OpenAFS is usable on a up-to-date Gentoo machine with a 2.6 kernel.
Warnings
* The 1.3.X releases that support 2.6 kernels are still unstable, 1.4 is underway.
* Heavily patched kernels like Gentoo-sources might not be a good choice to run OpenAFS on.
* The learning cruve of OpenAFS is steep. source: Linux Journal
* Errors generated by OpenAFS might be very confusing. Errors won't point directly to their possible cause.
* Only x86 is tested, but x86_64 should work
Prerequisites
* For clients a ext2 partition mounted on /usr/vice/cache is needed (not strictly, but it's recommended)
* For servers a ext2 partition mounted on /vicepa is needed (yes, stop here if you haven't a spare partition)
* Some docs report non-ext2 partitions won't work. I don't know how true this is.
* /usr/src/linux points to the source of the running kernel
* You have a global ip: 222.222.222.222, your fully qualified hostname is: myhost
Last words and some links
The following document is very complete, but a little outdated:
http://www.gentoo.org/doc/en/openafs.xml
I really tried to package OpenAFS to match the official document as good as possible.
The differences between my howto and the url above exist for these reasons:
* Openafs has different defaults now (document is a little outdated)
* Life is easier my way.
* Openafs was very broken (not only on Gentoo)
Please don't see this document as a replacement of the official OpenAFS docs. It's worth printing them.
http://www.gentoo.org/doc/en/openafs.xml
http://www.openafs.org/doc/index.htm
http://www.openafs.org/pages/doc/QuickStartUnix/auqbg005.htm#HDRWQ41
Overlay tarball can be downloaded here:
http://tienstra4.flatnet.tudelft.nl/~gerte/openafs-overlay-gerte.tar.gz
https://bugs.gentoo.org/show_bug.cgi?id=82075 (attachment: New ebuilds and rc-scripts for OpenAFS)
Building OpenAFS. Initial test for Global Cells Client
These steps are crucial to check AFSD (the client/ cache manager) and kernel module are working on your computers. Even if you plan to setup a server-only machine you need to have a working client first, it can be disabled later.
There is no need to edit /usr/vice/etc/CellServDB and /usr/vice/etc/ThisCell. The ebuild installs a usable configuartion out of the box.
* Configure portage to use overlay
/etc/make.conf
Code: | PORTDIR_OVERLAY="/usr/local/portage"
|
* Download and extract the OpenAFS overlay tarball from bugzilla/my website
Code: | # mkdir -p /usr/local/portage
# cd /usr/local/portage
# wget http://tienstra4.flatnet.tudelft.nl/~gerte/openafs-overlay-gerte.tar.gz
# tar -zxvf openafs-overlay-gerte.tar.gz
|
* Compile and Install Openafs
Code: | # mkdir -p /etc/portage
# echo 'net-fs/openafs-kernel ~x86' >> /etc/portage/package.keywords
# echo 'net-fs/openafs ~x86' >> /etc/portage/package.keywords
# echo 'net-fs/openafs' >> /etc/portage/package.unmask
# emerge -av openafs
|
* Start openafs client (afsd) and cross your fingers your kernel doesn't crash
Code: | # /etc/init.d/afs start
# ls /afs/
|
Ok, no problems so far? Have a look at the directories in /afs. You can see directories for each cell in /usr/vice/etc/CellServDB.
Proceed to the 'Full OpenAFS client and server' section. If not: Review the steps above, check your firewall, but don't continue.
Note: Browsing /afs/<anycell> might be a little slow/shaky.
* Stop openafs client again
Code: | # /etc/init.d/afs stop
|
Full OpenAFS client and server
Once again, I'ld like to point to these documents for a more complete reference:
http://www.gentoo.org/doc/en/openafs.xml
http://www.openafs.org/doc/index.htm
http://www.openafs.org/pages/doc/QuickStartUnix/auqbg005.htm#HDRWQ41
Ok, enough. Lets get it working.
* Edit /etc/hosts
/etc/hosts
Code: | 127.0.0.1 localhost
222.222.222.222 myhost
|
* Ping yourself to check you did things correctly
Code: | ping -c 10 222.222.222.222
ping -c 10 myhost |
* Edit /etc/afs/CellServDB
#myhost is NOT a comment
/etc/afs/CellServDB
Code: | >mycelll #Cell name
222.222.222.222 #myhost
|
I repeat: '#' is N O T a comment !!!!!!
* Edit /etc/afs/ThisCell
/etc/afs/ThisCell
* Make sure /vicepa is mounted
Code: | #df
/dev/bla x y z% /vicepa
|
* Start the Basic Overseer Server without security. Create some settings, and check.
Code: | # /usr/afs/bin/bosserver -noauth
# /usr/afs/bin/bos setcellname myhost mycell -noauth
# /usr/afs/bin/bos listhosts myhost mycell -noauth
|
* Create server processes.
Code: | # /usr/afs/bin/bos create myhost kaserver simple \
/usr/afs/bin/kaserver -cell mycell -noauth
# /usr/afs/bin/bos create myhost buserver simple \
/usr/afs/bin/buserver -cell mycell -noauth
# /usr/afs/bin/bos create myhost ptserver simple \
/usr/afs/bin/ptserver -cell mycell -noauth
# /usr/afs/bin/bos create myhost vlserver simple \
/usr/afs/bin/vlserver -cell mycell -noauth |
* Check if server processes are running.
Code: | /usr/afs/bin/bos status myhost -noauth |
If things are not running, stop here!! Check logs in /usr/afs/logs for some feedback.
* Initialise security/user management
Think about you passwords. These might be hard to change.
Code: | # /usr/afs/bin/kas -cell mycell -noauth
ka> create afs
initial_password:
Verifying, please re-enter initial_password:
ka> create admin
initial_password:
Verifying, please re-enter initial_password:
ka> examine afs
User data for afs
key (0) cksum is 2651715259, last cpw: Mon Jun 4 20:49:30 2001
password will never expire.
An unlimited number of unsuccessful authentications is permitted.
entry never expires. Max ticket lifetime 100.00 hours.
last mod on Mon Jun 4 20:49:30 2001 by $lt;none>
permit password reuse
ka> setfields admin -flags admin
ka> examine admin
User data for admin (ADMIN)
key (0) cksum is 2651715259, last cpw: Mon Jun 4 20:49:59 2001
password will never expire.
An unlimited number of unsuccessful authentications is permitted.
entry never expires. Max ticket lifetime 25.00 hours.
last mod on Mon Jun 4 20:51:10 2001 by $lt;none>
permit password reuse
ka> quit
# /usr/afs/bin/bos adduser myhost admin -cell mycell -noauth
# /usr/afs/bin/bos addkey myhost -kvno 0 -cell mycell -noauth
input key: <use admin pass>
Retype input key: <use admin pass>
# /usr/afs/bin/pts createuser -name admin -cell mycell -noauth
# /usr/afs/bin/pts adduser admin system:administrators -cell mycell -noauth
# /usr/afs/bin/pts membership admin -cell mycell -noauth
Groups admin (id: 1) is a member of:
system:administrators
|
* Restart server processes / check if server processes are running.
Code: | # /usr/afs/bin/bos restart myhost -all -cell mycell -noauth
# /usr/afs/bin/bos status myhost -noauth
|
If things are not running, stop here!! Check logs in /usr/afs/logs for some feedback.
* Create fileserver processes
Code: | # /usr/afs/bin/bos create myhost fs fs /usr/afs/bin/fileserver \
/usr/afs/bin/volserver \
/usr/afs/bin/salvager \
-cell mycell -noauth |
* Check if server processes are running.
Code: | # /usr/afs/bin/bos status myhost -noauth
# /usr/afs/bin/bos status myhost fs -noauth
# /usr/afs/bin/bos status myhost fs -long -noauth
|
If things are not running, stop here!! Check logs in /usr/afs/logs for some feedback.
* Create upserver process
Code: | # /usr/afs/bin/bos create myhost upserver simple "/usr/afs/bin/upserver -crypt /usr/afs/etc -clear /usr/afs/bin" \
-cell mycell -noauth |
* Check if server processes are running.
Code: | # /usr/afs/bin/bos status myhost -noauth
|
If things are not running, stop here!! Check logs in /usr/afs/logs for some feedback.
* Create a volume to store files into your newly created server.
Code: | # /usr/afs/bin/vos create myhost /vicepa root.cell -cell mycell -noauth |
* Well done. You're now ready to have your Client use your own file server.
Code: | # /etc/init.d/afs start
# /usr/afs/bin/klog admin #use the admin password
# ls /afs/mycell |
By default /afs/mycell is a AFS mount point to root.cell. We created root.cell on /vicepa. You can copy files to this volume if you are authenticated and if ACL's are set correctly.
* Make your server and client start when you boot your computer. As bosserver was started by hand previously, this is the right moment to configure the rc-script to use AFS server features.
/etc/conf.d/afs
Code: | ENABLE_SERVER="yes" |
Code: | # rc-update add afs default |
Hints
* In this brand new Gentoo OpenAFS package /usr/vice/etc/{CellServDB,ThisCell} and /usr/afs/etc/{CellServDB,ThisCell} are symlinks to /etc/afs/{CellServDB,ThisCell}
This was the best way to get the Client working out of te box. It keeps Server- and Client configuration in-sync. Besides it offers the a GNU/Linux default to store configuration in /etc without breaking the origional Transarc paths.
* /usr/vice/etc/cacheinfo is managed by the rc-script, don't edit this one, use /etc/conf.d/afs. Afsd picks it up automatically.
* Read administration documtents for further configuration and clusering OpenAFS.
* OpenAFS is not very easy to learn. Don't mess around with fileservers behind routers. This is expert stuff!!
* For clustering (I.E. more machines sharing the same files), you need to add hosts to /etc/afs/CellServDB and repeat all steps. Passwords and keys have to be the same on all machines. _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Sun May 15, 2005 10:08 am Post subject: |
|
|
Fucking nobody interested in this guide? Come on. _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
Hideki n00b
Joined: 09 Mar 2003 Posts: 74
|
Posted: Sun May 15, 2005 1:20 pm Post subject: |
|
|
I looked at AFS quite a while ago when I had no knowledge of network file sharing but then I found nfs at that time and using it now.
Maybe I should simply rtfm but what is better at afs than say compared to nfs?
Maybe this question is probably making people not go into look at afs much? |
|
Back to top |
|
|
baloo12 n00b
Joined: 15 May 2005 Posts: 5 Location: Zurich
|
Posted: Sun May 15, 2005 3:30 pm Post subject: |
|
|
I followed your manual with great success!
it runs perfect..
the only thing i did after emerging & editing ThisCell was setting up a few links..
like tokens, klog, fs and so on..
thank you..
good work! |
|
Back to top |
|
|
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Sun May 15, 2005 7:30 pm Post subject: |
|
|
Hideki wrote: | Maybe I should simply rtfm but what is better at afs than say compared to nfs?
Maybe this question is probably making people not go into look at afs much? |
AFS offers a few advantages above nfs:
* AFS runs on a wide range of platforms.
* AFS has a cache manager. When using AFS over a slow connection the advantages of the cache manager are big. All files fetched from a server can be stored in the cache. Fetching an unchanged file (I.E. the second time) is fast and there is almost no traffic to the real server hosting the file.
* AFS tolerates fall down of servers and does load balancing. When a volume is hosted on more than one server, the volume is accesible even if some servers are down at the moment of the client's request. AFS keeps track of the availability of servers.
baloo12 wrote: |
the only thing i did after emerging & editing ThisCell was setting up a few links..
like tokens, klog, fs and so on..
thank you..
good work! |
Thanks . I understand you could have some questions about the correctness of the paths certain executables located at.
I think it's not appropriate to place the fs executable somewhere in $PATH.
Of tokens and klog it might be an idea to place them in /usr/sbin. I didn't have enough reasons to decide to place certain files outside of /usr/afs/bin (and into /usr/sbin).
From what I've seen there have always been differences between AFS documentation and the available packages. I'll update the ebuild once someone has given me good reasons to change things.
Tnx again. _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
KermitTheFragger n00b
Joined: 20 Aug 2004 Posts: 41 Location: Netherlands
|
Posted: Sun May 15, 2005 10:29 pm Post subject: |
|
|
Nice guide, I did some fooling arround with AFS and Kerberos V couple of months back myself. Unfortunatly I havent been very busy with AFS lately. Do you have any estimate when 1.4 is going to be released? I really, really need a stable release of AFS compatible with the 2.6 kernel (Or a nice stable NFSv4, whichever comes first, I prefer AFS tough). NFSv3 really stinks on all fronts; Security (which is practicly non-existing), no clientside caching, etc. |
|
Back to top |
|
|
drakkan Apprentice
Joined: 21 Jun 2004 Posts: 232
|
Posted: Thu May 19, 2005 3:04 pm Post subject: |
|
|
Hi,
I followed your howto, seems it works:
Code: |
root@box admin # /usr/afs/bin/bos status box -noauth
Instance kaserver, currently running normally.
Instance buserver, currently running normally.
Instance ptserver, currently running normally.
Instance vlserver, currently running normally.
Instance fs, currently running normally.
Auxiliary status is: file server running.
Instance upserver, currently running normally.
|
but I have the following error:
Code: |
root@box admin # /usr/afs/bin/klog admin
Password:
root@box admin # ls /afs/mycell/
ls: /afs/mycell/: Permission denied
|
what's wrong? |
|
Back to top |
|
|
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Fri May 20, 2005 7:41 am Post subject: |
|
|
KermitTheFragger wrote: | Do you have any estimate when 1.4 is going to be released? | The release cycle of the 1.3.x series has been very short. The latest verions followed each other with less than a month time between it.
latest announcement wrote: | For UNIX, 1.3.82 is the latest version in the 1.4 release cycle.
Notable recent improvements are included in AIX 5 client support, Linux
2.6 client support, and Rx free packet handling in the fileserver. | Reading this, I expect I won't take more than a few months before 1.4 is released. But I don't know. For me the 1.3.82 version isn't less stable than the 1.2.x versions.
Quote: | Code: | root@box admin # /usr/afs/bin/klog admin
Password:
root@box admin # ls /afs/mycell/
ls: /afs/mycell/: Permission denied
|
what's wrong? |
What's the output of:
/usr/afs/bin/fs lsmount /afs/mycell
/usr/afs/bin/fs listacl /afs/mycell
/usr/afs/bin/tokens
/usr/afs/bin/vos listvldb _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
KermitTheFragger n00b
Joined: 20 Aug 2004 Posts: 41 Location: Netherlands
|
Posted: Fri May 20, 2005 8:16 pm Post subject: |
|
|
irondog wrote: | The release cycle of the 1.3.x series has been very short. The latest verions followed each other with less than a month time between it.
|
Yeah I noticed that too, but this short release cycle has been going on for a couple of months. Yeah I know, I'm like a kid: I wanne, I wanne and I wanne itta now
irondog wrote: |
Reading this, I expect I won't take more than a few months before 1.4 is released. But I don't know. For me the 1.3.82 version isn't less stable than the 1.2.x versions.
|
Hmm, sounds nice. I think I'll take the latest release for a spin later this week. |
|
Back to top |
|
|
zecora l33t
Joined: 17 Aug 2004 Posts: 627 Location: Minneapolis, MN
|
Posted: Sat May 21, 2005 12:08 am Post subject: |
|
|
So is this kind of like mounting network drives?
Like i want to set this up on my fileserver and then have my windows boxes be able to view the drives.
like if i install this, do i need samba? |
|
Back to top |
|
|
KermitTheFragger n00b
Joined: 20 Aug 2004 Posts: 41 Location: Netherlands
|
Posted: Sat May 21, 2005 11:00 am Post subject: |
|
|
Quote: |
So is this kind of like mounting network drives?
|
Blasphemy !!
AFS is much more then just a network filesystem, its a distributed network filesystem with sophisticated security and replication options.
Quote: |
Like i want to set this up on my fileserver and then have my windows boxes be able to view the drives.
like if i install this, do i need samba?
|
No you dont need samba for that. Just download the latest windows client release:
http://www.openafs.org/release/latest.html |
|
Back to top |
|
|
drakkan Apprentice
Joined: 21 Jun 2004 Posts: 232
|
Posted: Sat May 21, 2005 11:34 am Post subject: |
|
|
Quote: |
What's the output of:
/usr/afs/bin/fs lsmount /afs/mycell
/usr/afs/bin/fs listacl /afs/mycell
/usr/afs/bin/tokens
/usr/afs/bin/vos listvldb
|
Great howto!!!!!
I have reinstalled and now the first server works fine!!!
Can you explain more about clustering, please?
For example howto add a second server for failover and load balancing
thanks
P.S. in my setup I'm using xfs for vicepa instead of ext2 for now it works |
|
Back to top |
|
|
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Sat May 21, 2005 3:18 pm Post subject: |
|
|
Yep, but if you like you could also run samba on top of AFS.
Quote: | Great howto!!!!!
I have reinstalled and now the first server works fine!!!
Can you explain more about clustering, please?
For example howto add a second server for failover and load balancing | Follow the same steps (listed above) on each machine. Once the machine is running make sure the timezone and clocks of both servers are in sync. Edit /etc/hosts and /etc/afs/CellServDB to have both servers in the server database. /etc/afs/CellServDB files must be identical on all machines!!.
Restart both servers and use: Code: | /urs/afs/bin/vos syncserv
/usr/afs/bin/vos syncvldb | to synchonise the global Volume location database.
Use /usr/afs/bin/vos addsite to create a replication site for a volume.
Quote: | thanks
P.S. in my setup I'm using xfs for vicepa instead of ext2 for now it works | Yep, might work. It is has been reported to cause problems, which might never occur for you. _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
KermitTheFragger n00b
Joined: 20 Aug 2004 Posts: 41 Location: Netherlands
|
Posted: Sat May 21, 2005 5:47 pm Post subject: |
|
|
XFS in combination with AFS and a crash could become real messy:
SGI XFS FAQ wrote: |
Q: Why do I see binary NULLS in some files after recovery when I unplugged the power?
XFS journals metadata updates, not data updates. After a crash you are supposed to get a consistent filesystem which looks like the state sometime shortly before the crash, NOT what the in memory image looked like the instant before the crash.
Since XFS does not write data out immediately unless you tell it to with fsync or an O_SYNC open (the same is true of other filesystems), you are looking at an inode which was flushed out, but whose data was not. You will find that the inode is not taking any space since all it has is a size but no extents allocated (run xfs_bmap( on the file).
|
9 out of 10 times xfs_bmap can fix your problems. That 1 out of 10 times can become a real pain. Also i have no idea how AFS would react if you start runnen bmap on files on its vicepa partition. Perhaps it would be a good idea to mount the xfs vicepa partition with a synchronous write option. However this would impact your performace (not in a good way). |
|
Back to top |
|
|
zecora l33t
Joined: 17 Aug 2004 Posts: 627 Location: Minneapolis, MN
|
Posted: Thu May 26, 2005 10:27 pm Post subject: |
|
|
I am gonna drop samba and use this. Sounds sweet |
|
Back to top |
|
|
Mango n00b
Joined: 27 Aug 2003 Posts: 11 Location: Denmark
|
Posted: Sun May 29, 2005 6:31 pm Post subject: |
|
|
I have also been looking for AFS for a while, I have a Client that have to locations and this solution would be perfect for him. Right now I am using Availl running under Windows 2000 Server, with some problems. I have thought about using DFS that comes with Windows Server 2003 but I am more interested in AFS under Gentoo.
1) Running Samba on top of AFS? Wont you loose some of the benefits from AFS like cache and speed?
2) How is the speed compared to Samba?
3) Have anyone any idea about how Windows DFS works compared to AFS? |
|
Back to top |
|
|
nephros Advocate
Joined: 07 Feb 2003 Posts: 2139 Location: Graz, Austria (Europe - no kangaroos.)
|
Posted: Sun May 29, 2005 6:49 pm Post subject: |
|
|
irondog wrote: | Fucking nobody interested in this guide? Come on. |
I have bookmarked this for the point when I own Gentoo boxes in more than one continent (or heck, more than 5 meters apart! ).
Thanks a lot for posting it! _________________ Please put [SOLVED] in your topic if you are a moron. |
|
Back to top |
|
|
baloo12 n00b
Joined: 15 May 2005 Posts: 5 Location: Zurich
|
Posted: Mon May 30, 2005 10:07 pm Post subject: pam_modules are working perfect |
|
|
big thanks! |
|
Back to top |
|
|
comdata n00b
Joined: 07 Sep 2002 Posts: 35
|
Posted: Wed Jun 08, 2005 7:55 am Post subject: |
|
|
thanx for this post and the ebuilds.
I got the first server setup very quickly with this guide, but now I am stuck in setting up additional filespace and a replicated second fileserver. any help or advice for good documentation would be nice.
--
mfg
comdata |
|
Back to top |
|
|
zecora l33t
Joined: 17 Aug 2004 Posts: 627 Location: Minneapolis, MN
|
Posted: Thu Jun 16, 2005 12:59 am Post subject: |
|
|
Crashed when i tried to emerge it.
Code: | Vegeta ~ # emerge -av openafs
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] net-fs/openafs-1.2.11 -debug 0 kB
Total size of downloads: 0 kB
Do you want me to merge these packages? [Yes/No] y
>>> emerge (1 of 1) net-fs/openafs-1.2.11 to /
>>> md5 files ;-) openafs-1.2.10-r1.ebuild
>>> md5 files ;-) openafs-1.2.10-r2.ebuild
>>> md5 files ;-) openafs-1.2.10.ebuild
>>> md5 files ;-) openafs-1.2.11.ebuild
>>> md5 files ;-) files/openafs-1.2.6.patch
>>> md5 files ;-) files/CellServDB
>>> md5 files ;-) files/README
>>> md5 files ;-) files/ThisCell
>>> md5 files ;-) files/afs.rc.rc6
>>> md5 files ;-) files/openafs-pinstall-execve.patch
>>> md5 files ;-) files/digest-openafs-1.2.10
>>> md5 files ;-) files/digest-openafs-1.2.10-r1
>>> md5 files ;-) files/digest-openafs-1.2.10-r2
>>> md5 files ;-) files/digest-openafs-1.2.11
>>> md5 files ;-) files/openafs-pinstall-execve-1.2.10.patch
>>> md5 files ;-) files/openafs-pinstall-execve-env.patch
>>> md5 files ;-) files/openafs-typechange.patch
>>> md5 src_uri ;-) openafs-1.2.11-src.tar.bz2
!!! ERROR: net-fs/openafs-1.2.11 failed.
!!! Function pkg_setup, Line 25, Exitcode 0
!!! OpenAFS does not yet support 2.5 and 2.6 kernels
!!! If you need support, post the topmost build error, NOT this status message.
Vegeta ~ # |
|
|
Back to top |
|
|
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Thu Jun 16, 2005 11:25 am Post subject: |
|
|
zecora wrote: | Crashed when i tried to emerge it. |
Looks like it's trying to merge the portage version.
Did you follow the steps above about downloading the overlay?
Great guide, BTW irondog. This really helped me out. _________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey." |
|
Back to top |
|
|
irondog l33t
Joined: 07 Jul 2003 Posts: 715 Location: Voor mijn TV. Achter mijn pc.
|
Posted: Thu Jun 16, 2005 11:52 am Post subject: |
|
|
zecora wrote: | Crashed when i tried to emerge it. | Note that Openafs>=1.3 has been hard masked.
So, the overlay is only used when you unmask it in /etc/portage/package.unmask
mr-simon wrote: | Great guide, BTW irondog. This really helped me out. | NP.
comdata wrote: | thanx for this post and the ebuilds. | NP.
Quote: | I got the first server setup very quickly with this guide, but now I am stuck in setting up additional filespace and a replicated second fileserver. any help or advice for good documentation would be nice. | Read the docs. You have to spend much time in OpenAFS before knowing all ins and outs.
Mango wrote: |
1) Running Samba on top of AFS? Wont you loose some of the benefits from AFS like cache and speed?
2) How is the speed compared to Samba?
3) Have anyone any idea about how Windows DFS works compared to AFS? |
1) I'm running Samba on top of my AFS clients. It provides locking through a patch I've written. So, people opening a MS Word document in Amsterdam prevent users in Rotterdam to open it. Works really nice! Check it out:
http://tienstra4.flatnet.tudelft.nl/~gerte/samba3-afsexclusivelock-fcntl.diff
2) Speed is OK. It's fast. But I've some troubles with big files.
3) DFS has same kind of features. What DFS misses is the cache manager. _________________ Alle dingen moeten onzin zijn. |
|
Back to top |
|
|
zecora l33t
Joined: 17 Aug 2004 Posts: 627 Location: Minneapolis, MN
|
Posted: Thu Jun 16, 2005 12:29 pm Post subject: |
|
|
SO what do i need to do?
Code: |
# mkdir -p /etc/portage
# echo 'net-fs/openafs-kernel ~x86' >> /etc/portage/package.keywords
# echo 'net-fs/openafs ~x86' >> /etc/portage/package.keywords
# echo 'net-fs/openafs' >> /etc/portage/package.unmask
# emerge -av openafs |
Do you mean those commands?
If So I followed the instuctions. |
|
Back to top |
|
|
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Thu Jun 16, 2005 2:23 pm Post subject: |
|
|
No. These commands:
* Configure portage to use overlay
/etc/make.conf
Code: | PORTDIR_OVERLAY="/usr/local/portage" |
* Download and extract the OpenAFS overlay tarball from bugzilla/my website
Code: | # mkdir -p /usr/local/portage
# cd /usr/local/portage
# wget http://tienstra4.flatnet.tudelft.nl/~gerte/openafs-overlay-gerte.tar.gz
# tar -zxvf openafs-overlay-gerte.tar.gz |
_________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey." |
|
Back to top |
|
|
mr-simon Guru
Joined: 22 Nov 2002 Posts: 367 Location: Leamington Spa, Warks, UK
|
Posted: Thu Jun 16, 2005 2:27 pm Post subject: |
|
|
Question: The openafs guide recommends using the uss tool for adding and removing users. docs here - It doesn't appear to be part of the openafs package... Or at least it's not installed by the ebuild.
Where/how can I get it? _________________ "Pokey, are you drunk on love?"
"Yes. Also whiskey. But mostly love... and whiskey." |
|
Back to top |
|
|
|