NFS: mudanças entre as edições

De MochilaWiki
Ir para navegaçãoIr para pesquisar
 
(3 revisões intermediárias pelo mesmo usuário não estão sendo mostradas)
Linha 21: Linha 21:
== no cliente ==
== no cliente ==
<source lang="bash">
<source lang="bash">
mkdir /home/backup
apt-get install nfs-kernel-server nfs-common portmap
sudo mount 192.168.1.32:/home1/backup /home/backup
mkdir /srv/backup
sudo mount 192.168.1.32:/home1/backup /srv/backup
</source>
</source>
acrescentar em /etc/fstab
192.168.1.32:/home1/backup            /srv/backup/      nfs    defaults        0      0


== referencias ==
== referencias ==
* http://www.ghacks.net/2010/03/01/share-ubuntu-folders-with-nfs/
* http://www.techienote.com/2010/10/file-sharing-in-ubuntu-with-nfs.html
* http://ubuntuforums.org/showthread.php?t=249889
* http://www.ubuntugeek.com/nfs-server-and-client-configuration-in-ubuntu.html
* http://www.ubuntucampinas.org/?p=94
* https://help.ubuntu.com/community/SettingUpNFSHowTo

Edição atual tal como às 16h42min de 17 de agosto de 2012

no servidor

apt-get install nfs-kernel-server
mkdir -p /home1/backup
chmod 777 /home1/backup

acrescente em /etc/exports

/home1/backup 192.168.1.0/24(rw,no_root_squash,async,no_subtree_check)

reiniciar o servidor

/etc/init.d/nfs-kernel-server restart

exportar configuração

exportfs -a

no cliente

apt-get install nfs-kernel-server nfs-common portmap
mkdir /srv/backup
sudo mount 192.168.1.32:/home1/backup /srv/backup

acrescentar em /etc/fstab

192.168.1.32:/home1/backup             /srv/backup/      nfs     defaults        0       0

referencias