Child pages
  • OpenAFS Install via YUM for EL6 EL7
Skip to end of metadata
Go to start of metadata

Recent versions of OpenAFS allow you to install the OpenAFS client using dkms to automatically (dynamically) rebuild and install the kernel modules every time the kernel is upgraded. This simplifies the installation and maintenance of OpenAFS.

Download the DKMS RPM and Dependencies

# INSTALL EPEL IF NOT ALREADY INSTALLED
# INSTALL dkms PACKAGE
yum install dkms

# INSTALL DEPENDENCIES NEEDED BY OpenAFS RPMS
yum install cloog-ppl cpp gcc glibc-devel glibc-headers kernel-devel kernel-headers mpfr

Setup Custom OpenAFS Yum Repository

CentOS/RHEL 6

/etc/yum.repos.d/OpenAFS.repo
[openafs]
name = OpenAFS 1.6.8 for RHEL $releasever - $basearch
baseurl = http://www.openafs.org/dl/openafs/1.6.8/rhel$releasever/$basearch
enabled = 1
protect = 0
gpgcheck = 0

OpenAFS sometimes creates new repos when new versions are released, you will need to manually update the OpenAFS version number in the name and baseurl lines above.

CentOS/RHEL 7

/etc/yum.repos.d/CentOS-StorageSIG.repo
[storage-sig]
name = CentOS Storage SIG $releasever - $basearch
#baseurl = http://cbs.centos.org/repos/storage$releasever-release/$basearch/os
baseurl = https://cbs.centos.org/repos/storage$releasever-testing/$basearch/os
enabled = 1
protect = 0
gpgcheck = 0

The packages are also created from a modified RPM spec file, so you'll find that the locations of openafs directories, executables and configuration files are now more appropriate for CentOS (such as having the config files in /etc/openafs and the client cache in /var/cache/openafs).

Install OpenAFS RPMs

yum install dkms-openafs openafs openafs-client openafs-docs openafs-krb5

Configure OpenAFS for NCSA's Environment

CentOS/RHEL 6

echo "ncsa.uiuc.edu" > /usr/vice/etc/ThisCell
echo "ncsa.uiuc.edu ncsa" > /usr/vice/etc/CellAlias

CentOS/RHEL 7

echo "ncsa.uiuc.edu" > /etc/openafs/ThisCell
echo "ncsa.uiuc.edu ncsa" > /etc/openafs/CellAlias
 
# IF HAS PARTITION MOUNTED AT /usr/vice/cache
#   rm -rf /var/spool/openafs  &&  ln -s /usr/vice/cache /var/spool/openafs

 

 

Start OpenAFS

CentOS/RHEL 6

# MAKE SURE openafs-client IS SET TO START AT RUN LEVELS 2,3,4,5
chkconfig --list openafs-client
# IF NOT, SET IT UP
# chkconfig --add openafs-client
# chkconfig openafs-client on
 
# START openafs-client
service openafs-client start

 

CentOS/RHEL 7

systemctl enable openafs-client
systemctl start openafs-client

 


Test OpenAFS

# TEST THAT OpenAFS IS MOUNTED AND ACCESSIBLE
cd /afs/ncsa.uiuc.edu/packages/linux/
ls
 
# TEST AUTHORIZED ACCESS
kinit; klist
aklog; tokens


# ACCESS AFS HOME DIRECTORY
cd /afs/ncsa.uiuc.edu/user/$USER/
pwd
ls 
  • No labels