Created
August 28, 2017 21:48
-
-
Save antoniojxk/d42db80dd5f9b63b791acf0156f63e85 to your computer and use it in GitHub Desktop.
Instalación de OrangeFS sobre CentOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## INSTALACIÓN DE ORANGEFS EN CENTOS 6.9 | |
# actualizar el sistema | |
yum update; reboot | |
# deshabilitar SELinux | |
sestatus | |
setenforce 0 | |
vi /etc/sysconfig/selinux | |
cambiar "SELINUX=enforcing" to "SELINUX=disabled" : | |
reboot | |
# instalar las librerías requeridas | |
yum -y install gcc flex bison openssl-devel db4-devel kernel-devel perl make kernel-headers zip openssl automake autoconf patch gcc-c++ | |
# instalar Berkeley DB | |
tar -xzvf db-4.8.30.tar.gz | |
cd db-4.8.30 | |
cd build_unix | |
../dist/configure --prefix=/opt/db4.8.30 | |
make | |
sudo make install | |
# averiguar versión del kernel | |
uname -r | |
2.6.32-642.el6.x86_64 | |
# construir OrangeFS | |
tar -xzvf orangefs-2.8.8.tar.gz | |
cd orangefs-2.8.8 | |
./configure --prefix=/opt/orangefs --with-db=/opt/db4.8.30 --with-kernel=/usr/src/kernels/2.6.32-696.6.3.el6.x86_64/ | |
make | |
make install | |
make kmod | |
make kmod_prefix=/opt/orangefs kmod_install | |
cd /opt/orangefs | |
mkdir -p etc log storage/data storage/meta | |
/opt/orangefs/bin/pvfs2-genconfig /opt/orangefs/etc/orangefs-server.conf | |
# añadir servidor | |
export LD_LIBRARY_PATH=/opt/db4.8.30/lib:${LD_LIBRARY_PATH} | |
/opt/orangefs/sbin/pvfs2-server -f -a servidor1 /opt/orangefs/etc/orangefs-server.conf | |
/opt/orangefs/sbin/pvfs2-server -a servidor1 /opt/orangefs/etc/orangefs-server.conf | |
# añadir cliente (en el mismo servidor) | |
mkdir /mnt/orangefs | |
echo "tcp://servidor1:3334/pvfs2-fs /mnt/orangefs pvfs2 defaults,noauto 0 0" >> /etc/pvfs2tab | |
chmod a+r /etc/pvfs2tab | |
insmod `find /opt/orangefs -name pvfs2.ko` | |
/opt/orangefs/sbin/pvfs2-client | |
mount -t pvfs2 tcp://servidor1:3334/pvfs2-fs /mnt/orangefs | |
# instalar ssh | |
yum -y install openssh-server openssh-clients | |
chkconfig sshd on | |
service sshd start | |
netstat -tulpn | grep :22 | |
vi /etc/sysconfig/iptables | |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT | |
service iptables restart | |
# añadir cliente remoto | |
scp -r /opt/orangefs cliente1:/opt/ | |
mkdir /mnt/orangefs | |
echo "tcp://servidor1:3334/pvfs2-fs /mnt/orangefs pvfs2 defaults,noauto 0 0" >> /etc/pvfs2tab | |
chmod a+r /etc/pvfs2tab | |
insmod `find /opt/orangefs -name pvfs2.ko` | |
/opt/orangefs/sbin/pvfs2-client | |
mount -t pvfs2 tcp://servidor1:3334/pvfs2-fs /mnt/orangefs | |
# luego de reiniciar | |
# servidor | |
export LD_LIBRARY_PATH=/opt/db4.8.30/lib:${LD_LIBRARY_PATH} | |
/opt/orangefs/sbin/pvfs2-server -a servidor1 /opt/orangefs/etc/orangefs-server.conf | |
# cliente | |
insmod `find /opt/orangefs -name pvfs2.ko` | |
/opt/orangefs/sbin/pvfs2-client | |
mount -t pvfs2 tcp://servidor1:3334/pvfs2-fs /mnt/orangefs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment