#1 Le 09/06/2017, à 15:21
- pierrot10
Est-ce qu'un partage NFS occupe la place du Master ou de tous les disq
Bonjour à tous,
J'ai 8 mchaine et j'ai désignée une comme master.
Sur toutes les machine, j'ai créé un dossier /mirror
Ensuite j'ai lu ceci:
Network File System (NFS)
NFS is used to create a distributed file system which is synchronized over the network. This folder will be used to distribute the compiled executables over the nodes so that they can execute your program.Make a folder in all nodes, where we will store our data and executables :
admin@master:~$ sudo mkdir /mirror
NFS - Master
We will share the contents of the folder to all the other nodes (physically stored on the master node):admin@master:~$ sudo apt-get install nfs-kernel-serveradmin@master:~$ echo "/mirror *(rw,sync,no_subtree_check)" | sudo tee -a /etc/exports
admin@master:~$ sudo service nfs-kernel-server restart
NFS - Slave
admin@slaveX:~$ sudo apt-get install nfs-common
admin@slaveX:~$ echo "master:/mirror /mirror nfs" | sudo tee -a /etc/fstab
admin@slaveX:~$ sudo mount -a
Admettons que j'ai 500G de disponible dans tous les disques.
Si le master mets 100G sur /mirror depuis le master
Si le master mets 100G sur /mirror depuis le linux01
Si le master mets 100G sur /mirror depuis le linux02
Si le master mets 100G sur /mirror depuis le linux03
Si le master mets 100G sur /mirror depuis le linux04
Est-ce u'il restera de la place pour les autre linux0X, sur la Master?
Ou est-ce que le 100G sont stoké physiquement sur le disque de la machine propiétaire des fichiers?
Bon week-end
Hors ligne