Aide Linux - Liste de diffusion Ze-Linux hebergée par Hebergement - Over-Link
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux]nfs + export



Eric Rapilly a écrit :
salut la liste; Quelqu'un peut il me rappeler, en pratique, comment on fait pour exporter (copier) des fichiers d'une machine à l'autre. merci d'avance et bon ouikende à tous

----------------------------------
Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
http://lists.ze-linux.org/howto_ml.html
Liste Herbergee par Over-Link [http://www.over-link.net]
----------------------------------
Annonces immobilieres, auto, moto ... http://www.uneannonce.fr



Pour créer un serveur nfs, c'est  très simple

J'installe sur le serveur l'utilitaire nfs-utils-0.2.1-2mdk (ou une version actualisée).

Je mets dans /etc/exports le répertoire que je veux exporter, et vers qui!
Exple:
[root@jmse jmse]# cat /etc/exports
/export agreg2(rw)
/export agreg3(rw)

J'arrête et redémarre les démons nfs:
[root@jmse jmse]# /etc/rc.d/init.d/nfs stop
Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: [FAILED]
Shutting down NFS quotas: [FAILED]
Shutting down NFS services: [ OK ]
[root@jmse jmse]# /etc/rc.d/init.d/nfs start
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
[root@jmse jmse]# ps aux | grep rpc
root 456 0.0 0.0 0 0 ? SW 16:30 0:00 [rpciod]
root 466 0.0 0.4 1104 552 ? S 16:30 0:00 rpc.statd
root 1455 0.0 0.3 1160 416 ? S 17:04 0:00 rpc.rquotad
root 1483 0.0 0.6 1420 776 ? S 17:04 0:00 rpc.mountd --no-nroot 1487 0.0 0.4 1316 524 pts/2 S 17:04 0:00 grep rpc



et ça marche!

Ensuite, je monte ce repertoire export sur les machines clientes:


[root@agreg2 rc.d]# mount jmse:/export /mnt/imported_directory

JM

--
Jean-Marc Sac-Epée, Ingénieur de Recherches en Calcul Scientifique,
Laboratoire de Mathématiques, UMR 7122, Université de Metz,
Tél 03 87 54 72 69  Fax 03 87 31 52 73
http://www.math.univ-metz.fr/~jmse   mail: jmse@xxxxxxxxxxxxxxxxx



----------------------------------
Informations, désabonnement, règles, obligations sur la liste Aide-Linux :
http://lists.ze-linux.org/howto_ml.html
Liste Herbergee par Over-Link [http://www.over-link.net]
----------------------------------
Annonces immobilieres, auto, moto ... http://www.uneannonce.fr


Aide Linux - Liste de diffusion Ze-Linux hebergée par Hebergement - Over-Link