A PCRE internal error occured. This might be caused by a faulty plugin
 


{{:tp:too.png|}}

Topologie



Serveur de fichiers
1. installation du serveur nfs

# aptitude install nfs-kernel-server portmap


2. Configuration du serveur nfs
2.a Création des répertoires partagés:

# mkdir /mnt/{xen,iso}


2.b Configuration des partages

# vim /etc/exports



Fichier /etc/exports

# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check)
#
/mnt/xen 192.168.202.112(rw,sync,no_root_squash,no_subtree_check)
/mnt/xen 192.168.202.168(rw,sync,no_root_squash,no_subtree_check)
/mnt/iso 192.168.202.112(rw,sync,no_root_squash,no_subtree_check)
/mnt/iso 192.168.202.168(rw,sync,no_root_squash,no_subtree_check)



Fichier /etc/hosts.allow

# /etc/hosts.allow: list of hosts that are allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: LOCAL @some_netgroup
# ALL: .foobar.edu EXCEPT terminalserver.foobar.edu
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#

#komo : Configuration nfs
portmap:192.168.202.112,192.168.202.168
nfsd:192.168.202.112,192.168.202.168
mountd:192.168.202.112,192.168.202.168
#komo : Configuration nfs



Fichier /etc/hosts.deny

# /etc/hosts.deny: list of hosts that are _not_ allowed to access the system.
# See the manual pages hosts_access(5) and hosts_options(5).
#
# Example: ALL: some.host.name, .some.domain
# ALL EXCEPT in.fingerd: other.host.name, .other.domain
#
# If you're going to protect the portmapper use the name "portmap" for the
# daemon name. Remember that you can only use the keyword "ALL" and IP
# addresses (NOT host or domain names) for the portmapper, as well as for
# rpc.mountd (the NFS mount daemon). See portmap(8) and rpc.mountd(8)
# for further information.
#
# The PARANOID wildcard matches any host whose name does not match its
# address.

# You may wish to enable this to ensure any programs that don't
# validate looked up hostnames still leave understandable logs. In past
# versions of Debian this has been the default.
# ALL: PARANOID

#komo : configuation nfs
portmap:ALL
nfsd:ALL
mountd:ALL



Prise en compte des modifications :

# exportfs -a


Serveur Xen
1. Installation du client nfs

# aptitude install nfs-common portmap


2. Création des points de montages

# mkdir /mnt/{xen,iso}


3. On monte les systèmes de fichiers nfs

root@afpi:~# mount -t nfs 192.168.202.15:/mnt/xen /mnt/xen/
root@afpi:~# mount -t nfs 192.168.202.15:/mnt/iso /mnt/iso/


4. Vérification

root@afpi:~# mount
...
192.168.202.15:/mnt/iso on /mnt/iso type nfs (rw,addr=192.168.202.15)
192.168.202.15:/mnt/xen on /mnt/xen type nfs (rw,addr=192.168.202.15)

 
tp/systeme_de_fichier.txt · Dernière modification: 2019/05/11 14:35 (modification externe)     Haut de page