-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_openafs_centos.sh
executable file
·44 lines (34 loc) · 1.34 KB
/
install_openafs_centos.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
# INSTALL LATEST dkms RPM DIRECTLY FROM DELL AT http://linux.dell.com/dkms/
# THERE ARE SOME ONLINE REPORTS OF OLDER VERSIONS OF dkms BEING BUGGY
yum install http://linux.dell.com/dkms/permalink/dkms-2.2.0.3-1.noarch.rpm
# OR INSTALL RPMforge REPO AND INSTALL A SLIGHTLY OLDER dkms FROM RPMforge
rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
yum install http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
yum install dkms
# INSTALL DEPENDENCIES NEEDED BY OpenAFS RPMS
yum install cloog-ppl cpp gcc glibc-devel glibc-headers kernel-devel kernel-headers mpfr pp kernel-devel kernel-headers
# step 2 write to file
content="
[openafs]
name = OpenAFS 1.6.6 for RHEL \$releasever - \$basearch
baseurl = http://www.openafs.org/dl/openafs/1.6.5/rhel\$releasever/\$basearch
enabled = 1
protect = 0
gpgcheck = 0
"
echo "$content" > /etc/yum.repos.d/OpenAFS.repo
# step 3 install
yum install dkms-openafs openafs openafs-client openafs-docs openafs-krb5
# configure
mkdir -p /usr/vice/etc
echo "NADA.KTH.SE" > /usr/vice/etc/ThisCell
echo "PDC.KTH.SE" > /usr/vice/etc/CellAlias
# start openafs
# 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