Connections Component Pack: Configurando o NFS Server: Difference between revisions

From Wiki
(Criou a página com "= Procedimento = 1) Criar a partição pv-connections 2) Executar a criação dos diretórios mkdir -p /pv-connections/esdata-{0,1,2} mkdir -p /pv-connections/esbackup...")
 
Line 3: Line 3:
1) Criar a partição pv-connections
1) Criar a partição pv-connections


2) Executar a criação dos diretórios
2) Executar a criação dos diretórios<big>Big text</big>


  mkdir -p /pv-connections/esdata-{0,1,2}
  mkdir -p /pv-connections/esdata-{0,1,2}
Line 21: Line 21:


4) Configurar o /etc/exports
4) Configurar o /etc/exports
<big> VOCÊ PODE UTILIZAR O nsfSetup.sh, mas preferi fazer manualmente. </big>


  /pv-connections/mongo-node-0/data/db      10.1.0.0/255.255.0.0(rw,no_root_squash)
  /pv-connections/mongo-node-0/data/db      10.1.0.0/255.255.0.0(rw,no_root_squash)
Line 59: Line 62:
   
   
  touch $HOSTNAME
  touch $HOSTNAME


= Ver também =
= Ver também =

Revision as of 18:06, 25 June 2019

Procedimento

1) Criar a partição pv-connections

2) Executar a criação dos diretóriosBig text

mkdir -p /pv-connections/esdata-{0,1,2}
mkdir -p /pv-connections/esbackup
mkdir -p /pv-connections/customizations
mkdir -p /pv-connections/mongo-node-{0,1,2}/data/db
mkdir -p /pv-connections/solr-data-solr-{0,1,2}
mkdir -p /pv-connections/zookeeper-data-zookeeper-{0,1,2}
mkdir -p /pv-connections/test

chmod -R 777 /pv-connections
chmod -R 005 /pv-connections/customizations

3) Instalar os pacotes do nfs

yum -y install nfs-utils

4) Configurar o /etc/exports

 VOCÊ PODE UTILIZAR O nsfSetup.sh, mas preferi fazer manualmente. 


/pv-connections/mongo-node-0/data/db       10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/mongo-node-1/data/db       10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/mongo-node-2/data/db       10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/solr-data-solr-0           10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/solr-data-solr-1           10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/solr-data-solr-2           10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/zookeeper-data-zookeeper-0 10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/zookeeper-data-zookeeper-1 10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/zookeeper-data-zookeeper-2 10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/esbackup                   10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/esdata-0                   10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/esdata-1                   10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/esdata-2                   10.1.0.0/255.255.0.0(rw,no_root_squash)
/pv-connections/customizations             10.1.0.0/255.255.0.0(rw,no_root_squash)

5) Executar o comando

systemctl restart nfs-server


6) Testando

Em um servidor remoto

mkdir /pv-connections

mount -t nfs 10.1.1.1:/pv-connections /pv-connections

cd /pv-connections/

ls

testando a escrita

cd /pv-connections/test

touch $HOSTNAME

Ver também