[an error occurred while processing this directive]
Notes on Solaris 2.7:
AFS is supported only for machines running the 32-bit version of
Solaris 2.7. To verify the installed version, issue the Solaris
isainfo -v command. The following output indicates that the
32-bit version of the operating system is installed:
32-bit sparc applications
The following output indicates that the 64-bit version of the operating system is installed:
64-bit sparcv9 applications 32-bit sparc applicationsIf you want to change your system into 32-bit mode so you can run a native afs client, run the following command as root:
# eeprom boot-file=kernel/unix # reboot
If you need to have your system running in 64bit mode please email afs@ncsa.uiuc.edu and we can give you further information about running a beta afs client
Loading client files onto the local disk
The first step in installing a client is to load AFS binaries onto the
local disk - namely, the afsd binary and files needed to incorporate
AFS using a dynamic kernel loader (modload). These files must reside on
the local disk of every client machine.
Create the following directories for the local files:
# mkdir -p /usr/vice/etc/modloadNow
# cd /usr/vice/etcWe need to determine what architecture type the machine is. If you do a
# uname -mit should tell you whether it is a sun4c, sun4m, sun4d, or sun4u machine.
Now in the /usr/vice/etc directory, ftp to the anonymous afs distribution server where you can access AFS install files.
# ftp solaris.ncsa.uiuc.edu # user: ftp # passwd:Once the ftp session is established then go to one of the following directories depending on the version of Solaris you are using and the system type:
ftp> cd pub/afs-sun4m_54 or ftp> cd pub/afs-sun4c_54
ftp> cd pub/afs-sun4x_55
ftp> cd pub/afs-sun4x_56
ftp> cd pub/afs-sun4x_57
ftp> cd usr/afsws/root.client/usr/vice/etcWarning: Make sure you do not cd to /usr/afsws/root.client/usr/vice/etc above, (the / is in front of the usr) or else you could get the wrong versions of the binaries.
Now get the following files from this directory (make sure you are doing a binary transfer):
ftp> bin ftp> get afsdThen cd to the modload directory on both the local and remote machines to get the next set of files.
ftp> cd modload ftp> lcd modloadNow get the following files:
ftp> get libafs.o ftp> get libafs64.oIf you get an error on the file that is fine (It isn't present in all versions of AFS.)
On the local machine go back up a directory to /usr/vice/etc.
ftp> lcd ..On the remote machine
ftp> cd /service/etcThen get the following files:
ftp> get ThisCell ftp> get CellServDBThis is all the local files you are going to need to retrieve for the AFS client.
ftp> quitNow make sure the correct permissions are set for all of the files:
# chmod 755 /usr/vice/etc/afsd # chmod 644 /usr/vice/etc/CellServDB # chmod 644 /usr/vice/etc/ThisCell # chmod 755 /usr/vice/etc/modload/lib*
.
.
fstatvfs 104
afs 105
nfs 106
.
.
.
.
ulimit 63
afs 73
rmdir 79
.
.
# rebootWhen the machine comes back up, log in and we are now ready to load the AFS library into the kernel.
# cp /usr/vice/etc/modload/libafs.o /kernel/fs/afs # cp /usr/vice/etc/modload/libafs64.o /kernel/fs/sparcv9/afsAgain, ignore errors on the second cp since that file isn't present in all versions of afs.
After that is done run:
# /usr/sbin/modload /kernel/misc/nfssrv # /usr/sbin/modload /kernel/fs/afsIf you wish to verify that AFS loaded correctly, use the modinfo comand:
# /usr/sbin/modinfo | grep afs
First create the cache directory and set the correct permissions:
# mkdir /usr/vice/cache # chmod 700 /usr/vice/cacheNow create the cache configuration file:
# echo "/afs:/usr/vice/cache:80000" > /usr/vice/etc/cacheinfoThe above is the standard mount location, /afs, and the standard cache location, /usr/vice/cache. It also is setting a cache size of 80MB. This can be increased or decreased as needed. The best method for setting up the cache area is creating a seperate partition of a local disk and mount it at /usr/vice/cache. Otherwise just use a portion of the /usr partition.
If you are having problems then contact us at
afs@ncsa.uiuc.edu.
Starting the cache manager
We are now going to start the cache manager which will initailize the
cache files in /usr/vice/cache and mount /afs.
First create the mount point for AFS:
# mkdir /afs # chmod 777 /afsNow make sure the cache manager mode bits are set correctly and invoke the cache manager:
# chmod 755 /usr/vice/etc/afsd # /usr/vice/etc/afsd -verboseYou should now see it creating all the cache files. This may take awhile depending on the size of your cache.
# ln -s /afs/ncsa/(hw type)/usr/afsws /usr/afswsReplace (hw type) with the architecture type of the machine, which was determined above by
uname -m
(ie. /afs/ncsa/sun4x_57/usr/afsws).
Enabling AFS to start on boot
Put the standard Solaris startup file in the /etc/init.d directory as afs.
You can copy this from the following location:
# cp /afs/ncsa/service/etc/rc/solaris_afs.rc /etc/init.d/afsThen set the permissions:
# chmod 755 /etc/init.d/afsNow set the following links for proper startup and shutdown:
# ln -s /etc/init.d/afs /etc/rc3.d/S99afs # ln -s /etc/init.d/afs /etc/rc2.d/K66afs
AFS binaries
If you want access to the AFS binaries then make sure that /usr/afsws/bin
and /usr/afsws/lib are in your PATH environment variable.
Setting up /usr/ncsa
In order to have access to other binaries we make available in AFS create the
following link:
# ln -s /afs/ncsa/packages/.link/SunOS_5.(Solaris minor rev level) /usr/ncsaReplace (Solaris minor rev level) with the minor rev level of Solaris you are using. (i.e. 4, 5, 6, or 7)
AFS login on console
If you want to be able to log onto the the console of the machine and use
your AFS password, use your AFS home directory, and get an AFS token, then
refer to the
Setting up Solaris console login page.
/etc/passwd entries
If you need to add user entries to the local /etc/passwd file then you can
find most users in the following file:
/afs/ncsa/common/etc/passwd
Grep for the user in the above file and copy the line to the local passwd file.
Altering file system cleanup scripts
Add the -local flag to the existing command in
/usr/lib/fs/nfs/nfsfind, so that it looks like:
find $dir -local -name .nfs\* -mtime +7 -mount -exec rm -f {} \;
This prevents the find from traversing the AFS tree.
[an error occurred while processing this directive]