http://www.linux-tips-and-tricks.de

configure automount for/für nfs disks/Platten PDF Print E-mail
Sonntag, 07 September 2008
Irgendwann ist es lästig immer wieder remote nfs Platten vom Server am Client zu mounten, die man ab und zu mal braucht. Dazu gibt es den automounter in Linux. Jetzt muss nur noch in ein bestimmtes Verzeichnis gewechselt werden und das remote Filesystem wird automatisch eingehängt.
 
Im Folgenden beschreibe ich kurz wie die Umgebung aussieht. Die Konfigurationsfiles stehen im Downloadbereich.
 
===> English <=== 
 
If you have a local LAN server in your network it's very unconvenient when you have to manually mount exported directoris of your LAN server to your clients. Automount is the right tool to achieve this. You just have to configure your automounter and than it's possible to cd to a local directory on your client and the automounter mounts the disk by magic.
 
Next page describes the environment I use and the way the automount works. The configuration files are available in the download area.
 
===> Click here for English <===
 
Auf dem Server werden die Verzeichnisse /disks/vol1 und /disks/vol2 in /etc/exports exportiert. Auf dem Clientrechner existieren die Verzeichnisse /nfs/idefix/vol1 und /nfs/idefix/vol1 (idefix ist der Hostname des Servers). Sie sind Links auf /import/idefix/vol1 bzw /import/idefix/vol2. Geht man in die Verzeichnisse werden sie automatisch gemounted. Notwendig dafür ist eine konfigurierte auto.master, einer auto.nfs und eine auto.nfssub.Dann rcautofs start eingeben und im yast den autofs im runlevel editor für immer einschalten.automount.jpg
 
===> English <===  
 
The LAN server exports directories /disks/vol1 and /disks/vol2 in /etc/exports. On the client exist the directories /nfs/idefix/vol1 and /nfs/idefix/vol1 (idefix is the hostname of the LAN server). They are links to  /import/idefix/vol1 and /import/idefix/vol2. Now you have to create and/or update in the /etc directory the config files auto.master, auto.nfs and auto.nfssub according your local environment and naming. Then start automount with rcautofs start and enable autofs in yast in th runlevel editor. Now cd to /nfs/idefix/vol1 or /nfs/idefix/vol1 and the nfs volumes are mounted automatically.
automount.jpg
 
References:
 
Last Updated ( Freitag, 25 November 2011 )
 

Add comment

===> Pls add comments in German or English only <===
eMail will be hidden/eMail wird versteckt


Security code
Refresh

< Prev   Next >