Instalando PVFS2 (servidor e nós).
Execute a sequência de comandos no servidor e nos nós:
# apt-get install libdb5.1 libdb5.1-dev
Nos nós e no servidor:
# cd /usr/src
# wget ftp://ftp.parl.clemson.edu/pub/pvfs2/pvfs-2.8.2.tar.gz
# mkdir /opt/mpich #Criando o caminho para a MPICH, mesmo sem ter instalado ela ainda
# mkdir /opt/pvfs2
# tar -xzvf pvfs-2.8.2.tar.gz
# ls
# cd pvfs-2.8.2
# ./configure --prefix=/opt/pvfs2 --enable-shared --disable-segv-backtrace --with-mpi=/opt/mpich
Deve terminar sem erros, com a linha:
PVFS2 version string: 2.8.2
# make
Deverá terminar com a última linha:
GENCONFIG examples/fs.conf
# make install
Depois, substituir o conteúdo dos arquivos
fstab no servidor e nós (alterar os números do IP de 192.168.1.6, dentro do arquivo
fstab.nopelo pelo IP do servidor).
# nano /etc/fstab
Exemplo
fstab (servidor):
#escrito por diocelio larsen 1.0
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=809f722c-c3d0-44be-a68a-6b3b1096ed92 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=006d02f8-6f89-41b2-a1e4-1f7629944b5b none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
tcp://servidor:3334/pvfs2-fs /mnt/pvfs2 pvfs2 defaults,noauto 0 0
Exemplo
fstab (nó):
#escrito por diocelio larsen 1.0
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda5 during installation
UUID=809f722c-c3d0-44be-a68a-6b3b1096ed92 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=006d02f8-6f89-41b2-a1e4-1f7629944b5b none swap sw 0 0
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
tcp://no01:3334/pvfs2-fs /mnt/pvfs2 pvfs2 defaults,noauto 0 0
192.168.1.6:/home/kluster /home/kluster nfs defaults 0 0
192.168.1.6:/opt /opt nfs defaults 0 0
192.168.1.6:/usr/local /usr/local nfs defaults 0 0
Depois de salvar, execute os comandos:
# mkdir /mnt/pvfs2 #Servidor e nós
# update-rc.d -f exim4 remove #Somente nos nós
Configurando a variável de ambiente, entrar no arquivo (servidor e nós):
# nano ~/.bashrc
E acrescentar no final:
LD_LIBRARY_PATH=/opt/pvfs2/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
Depois, reiniciar as máquinas:
# shutdown -r now