tachtler:repository_ausliefern_centos_7
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
tachtler:repository_ausliefern_centos_7 [2014/12/17 14:37] – [nfs: /etc/exports] klaus | tachtler:repository_ausliefern_centos_7 [2017/09/16 17:03] – [nfs: /etc/sysconfig/nfs] klaus | ||
---|---|---|---|
Zeile 782: | Zeile 782: | ||
Diese kann mit nachfolgendem Befehl erstellt werden: | Diese kann mit nachfolgendem Befehl erstellt werden: | ||
< | < | ||
- | # touch / | + | # touch / |
</ | </ | ||
Zeile 836: | Zeile 836: | ||
Das Aussehen des Text-Menüs, | Das Aussehen des Text-Menüs, | ||
- | PXE Boot Menü - Menü | + | {{: |
=== tftp: Boot Menü: grafisches Menü === | === tftp: Boot Menü: grafisches Menü === | ||
Zeile 864: | Zeile 864: | ||
Das Aussehen des grafischen Menüs, könnte wie nachfolgend dargestellt aussehen: | Das Aussehen des grafischen Menüs, könnte wie nachfolgend dargestellt aussehen: | ||
- | PXE Boot Menü - grafisches Menü | + | {{: |
==== tftp: Boot-Menü Dateirechte ==== | ==== tftp: Boot-Menü Dateirechte ==== | ||
Zeile 919: | Zeile 919: | ||
Die durchzuführende Anpassung sieht wie folgt aus: | Die durchzuführende Anpassung sieht wie folgt aus: | ||
- | (**Komplette Konfigurationsdatei**): | + | **BIS CentOS Version --> 7.3 < |
<code ini> | <code ini> | ||
# | # | ||
Zeile 939: | Zeile 939: | ||
# | # | ||
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) | # Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) | ||
- | RPCNFSDARGS="" | + | # Tachtler - Enable mount NFSv2 (for older clients) |
+ | # default: | ||
+ | RPCNFSDARGS=" | ||
# Number of nfs server processes to be started. | # Number of nfs server processes to be started. | ||
# The default is 8. | # The default is 8. | ||
Zeile 950: | Zeile 952: | ||
# default: RPCMOUNTDOPTS="" | # default: RPCMOUNTDOPTS="" | ||
RPCMOUNTDOPTS=" | RPCMOUNTDOPTS=" | ||
+ | # Port rpc.mountd should listen on. | ||
+ | # | ||
# | # | ||
+ | # Optional arguments passed to rpc.statd. See rpc.statd(8) | ||
+ | # Tachtler | ||
+ | # default: STATDARG="" | ||
+ | STATDARG=" | ||
+ | # | ||
+ | # Optional arguments passed to rpc.idmapd. See rpc.idmapd(8) | ||
+ | RPCIDMAPDARGS="" | ||
+ | # | ||
+ | # Optional arguments passed to rpc.gssd. See rpc.gssd(8) | ||
+ | RPCGSSDARGS="" | ||
+ | # Enable usage of gssproxy. See gssproxy-mech(8). | ||
+ | GSS_USE_PROXY=" | ||
+ | # | ||
+ | # Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8) | ||
+ | RPCSVCGSSDARGS="" | ||
+ | # | ||
+ | # Optional arguments passed to blkmapd. See blkmapd(8) | ||
+ | BLKMAPDARGS="" | ||
+ | </ | ||
+ | |||
+ | **AB CentOS Version --> 7.4 <-- (**Komplette Konfigurationsdatei**): | ||
+ | <code ini> | ||
+ | # | ||
+ | # Optinal options passed to rquotad | ||
+ | # Tachtler | ||
+ | # default: RPCRQUOTADOPTS="" | ||
+ | RPCRQUOTADOPTS=" | ||
+ | # | ||
+ | # Optional arguments passed to in-kernel lockd | ||
+ | #LOCKDARG= | ||
+ | # TCP port rpc.lockd should listen on. | ||
+ | # Tachtler | ||
+ | # default: # | ||
+ | LOCKD_TCPPORT=32803 | ||
+ | # UDP port rpc.lockd should listen on. | ||
+ | # Tachtler | ||
+ | # default: # | ||
+ | LOCKD_UDPPORT=32769 | ||
+ | # | ||
+ | # Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) | ||
+ | # Tachtler - Enable mount NFSv2 (for older clients) | ||
+ | # default: RPCNFSDARGS="" | ||
+ | RPCNFSDARGS=" | ||
+ | # Number of nfs server processes to be started. | ||
+ | # The default is 8. | ||
+ | RPCNFSDCOUNT=8 | ||
+ | # Set V4 grace period in seconds | ||
+ | # | ||
+ | # | ||
+ | # Optional arguments passed to rpc.mountd. See rpc.mountd(8) | ||
+ | # Tachtler | ||
+ | # default: RPCMOUNTDOPTS="" | ||
+ | # RPCMOUNTDOPTS="" | ||
+ | # Port rpc.mountd should listen on. | ||
+ | # default: # | ||
+ | MOUNTD_PORT=892 | ||
# Optional arguments passed to rpc.statd. See rpc.statd(8) | # Optional arguments passed to rpc.statd. See rpc.statd(8) | ||
# Tachtler | # Tachtler | ||
Zeile 972: | Zeile 1032: | ||
:!: **WICHTIG** - Diese Konfiguration dient dazu, die **__zufällige__** Zuweisung von Ports für den **'' | :!: **WICHTIG** - Diese Konfiguration dient dazu, die **__zufällige__** Zuweisung von Ports für den **'' | ||
+ | |||
+ | :!: **HINWEIS** - Ein Überprüfung, | ||
+ | < | ||
+ | # cat / | ||
+ | +2 +3 +4 +4.1 -4.2 | ||
+ | </ | ||
+ | bzw. | ||
+ | < | ||
+ | # rpcinfo -s | ||
+ | | ||
+ | 100000 | ||
+ | 100005 | ||
+ | 100024 | ||
+ | 100003 | ||
+ | 100227 | ||
+ | 100021 | ||
+ | </ | ||
+ | * //**Wichtig ist hier die Zeile mit '' | ||
+ | |||
+ | ==== nfs: / | ||
+ | |||
+ | Um die Auslieferung eines gespiegelten Repositorys via **NFS-Server** zu realisieren, | ||
+ | |||
+ | Die Konfigurationsdatei, | ||
+ | * ''/ | ||
+ | |||
+ | Die durchzuführende Anpassung sieht wie folgt aus: | ||
+ | |||
+ | (**Komplette Konfigurationsdatei**): | ||
+ | |||
+ | <code ini> | ||
+ | # | ||
+ | # / | ||
+ | # | ||
+ | # This is an NFS mount configuration file. This file can be broken | ||
+ | # up into three different sections: Mount, Server and Global | ||
+ | # | ||
+ | # [ MountPoint " | ||
+ | # This section defines all the mount options that | ||
+ | # should be used on a particular mount point. The '< | ||
+ | # string need to be an exact match of the path in the mount | ||
+ | # command. Example: | ||
+ | # [ MountPoint "/ | ||
+ | # | ||
+ | # Would cause all mount to / | ||
+ | # the background | ||
+ | # | ||
+ | # [ Server " | ||
+ | # This section defines all the mount options that | ||
+ | # should be used on mounts to a particular NFS server. | ||
+ | # Example: | ||
+ | # [ Server " | ||
+ | # | ||
+ | # | ||
+ | # All reads and writes to the ' | ||
+ | # will be done with 32k (32768 bytes) block sizes. | ||
+ | # | ||
+ | [ NFSMount_Global_Options ] | ||
+ | # This statically named section defines global mount | ||
+ | # options that can be applied on all NFS mount. | ||
+ | # | ||
+ | # Protocol Version [2,3,4] | ||
+ | # This defines the default protocol version which will | ||
+ | # be used to start the negotiation with the server. | ||
+ | # Tachtler | ||
+ | # default: # Defaultvers=4 | ||
+ | Defaultvers=4 | ||
+ | # | ||
+ | # Setting this option makes it mandatory the server supports the | ||
+ | # given version. The mount will fail if the given version is | ||
+ | # not support by the server. | ||
+ | # Tachtler | ||
+ | # default: # Nfsvers=4 | ||
+ | Nfsvers=4 | ||
+ | # | ||
+ | # Network Protocol [udp, | ||
+ | # This defines the default network protocol which will | ||
+ | # be used to start the negotiation with the server. | ||
+ | # Defaultproto=tcp | ||
+ | # | ||
+ | # Setting this option makes it mandatory the server supports the | ||
+ | # given network protocol. The mount will fail if the given network | ||
+ | # protocol is not supported by the server. | ||
+ | # Proto=tcp | ||
+ | # | ||
+ | # The number of times a request will be retired before | ||
+ | # generating a timeout | ||
+ | # Retrans=2 | ||
+ | # | ||
+ | # The number of minutes that will retry mount | ||
+ | # Retry=2 | ||
+ | # | ||
+ | # The minimum time (in seconds) file attributes are cached | ||
+ | # acregmin=30 | ||
+ | # | ||
+ | # The Maximum time (in seconds) file attributes are cached | ||
+ | # acregmin=60 | ||
+ | # | ||
+ | # The minimum time (in seconds) directory attributes are cached | ||
+ | # acregmin=30 | ||
+ | # | ||
+ | # The Maximum time (in seconds) directory attributes are cached | ||
+ | # acregmin=60 | ||
+ | # | ||
+ | # Enable Access | ||
+ | # Acl=False | ||
+ | # | ||
+ | # Enable Attribute Caching | ||
+ | # Ac=True | ||
+ | # | ||
+ | # Do mounts in background (i.e. asynchronously) | ||
+ | # Background=False | ||
+ | # | ||
+ | # Close-To-Open cache coherence | ||
+ | # Cto=True | ||
+ | # | ||
+ | # Do mounts in foreground (i.e. synchronously) | ||
+ | # Foreground=True | ||
+ | # | ||
+ | # How to handle times out from servers (Hard is STRONGLY suggested) | ||
+ | # Hard=True | ||
+ | # Soft=False | ||
+ | # | ||
+ | # Enable File Locking | ||
+ | # Lock=True | ||
+ | # | ||
+ | # Enable READDIRPLUS on NFS version 3 mounts | ||
+ | # Rdirplus=True | ||
+ | # | ||
+ | # Maximum Read Size (in Bytes) | ||
+ | # Rsize=8k | ||
+ | # | ||
+ | # Maximum Write Size (in Bytes) | ||
+ | # Wsize=8k | ||
+ | # | ||
+ | # Maximum Server Block Size (in Bytes) | ||
+ | # Bsize=8k | ||
+ | # | ||
+ | # Ignore unknown mount options | ||
+ | # Sloppy=False | ||
+ | # | ||
+ | # Share Data and Attribute Caches | ||
+ | # Sharecache=True | ||
+ | # | ||
+ | # The amount of time, in tenths of a seconds, the client | ||
+ | # will wait for a response from the server before retransmitting | ||
+ | # the request. | ||
+ | # Timeo=600 | ||
+ | # | ||
+ | # Sets all attributes times to the same time (in seconds) | ||
+ | # actimeo=30 | ||
+ | # | ||
+ | # Server Mountd port mountport | ||
+ | # mountport=4001 | ||
+ | # | ||
+ | # Server Mountd Protocol | ||
+ | # mountproto=tcp | ||
+ | # | ||
+ | # Server Mountd Version | ||
+ | # Tachtler | ||
+ | # default: # mounvers=3 | ||
+ | mounvers=4 | ||
+ | # | ||
+ | # Server Mountd Host | ||
+ | # mounthost=hostname | ||
+ | # | ||
+ | # Server Port | ||
+ | # Port=2049 | ||
+ | # | ||
+ | # RPCGSS security flavors | ||
+ | # [none, sys, krb5, krb5i, krb5p ] | ||
+ | # Sec=sys | ||
+ | </ | ||
+ | |||
+ | **__Nachfolgende Änderungen sind durchzuführen: | ||
+ | |||
+ | Einstellen der Protokoll-Version auf die **Version 4**: | ||
+ | <code ini> | ||
+ | # Protocol Version [2,3,4] | ||
+ | # This defines the default protocol version which will | ||
+ | # be used to start the negotiation with the server. | ||
+ | # Tachtler | ||
+ | # default: # Defaultvers=4 | ||
+ | Defaultvers=4 | ||
+ | </ | ||
+ | |||
+ | Den **'' | ||
+ | <code ini> | ||
+ | # Setting this option makes it mandatory the server supports the | ||
+ | # given version. The mount will fail if the given version is | ||
+ | # not support by the server. | ||
+ | # Tachtler | ||
+ | # default: # Nfsvers=4 | ||
+ | Nfsvers=4 | ||
+ | </ | ||
+ | |||
+ | Den **'' | ||
+ | <code ini> | ||
+ | # Server Mountd Version | ||
+ | # Tachtler | ||
+ | # default: # mounvers=3 | ||
+ | mounvers=4 | ||
+ | </ | ||
+ | |||
+ | :!: **WICHTIG** - Diese Konfiguration dient dazu, die **__NFS-Version__** für den **'' | ||
+ | < | ||
+ | ... mount.nfs requested NFS version or transport protocol is not supported | ||
+ | </ | ||
==== nfs: / | ==== nfs: / | ||
Zeile 984: | Zeile 1252: | ||
<code ini> | <code ini> | ||
/ | / | ||
- | / | + | / |
</ | </ | ||
Zeile 1074: | Zeile 1342: | ||
Eine einfache Überprüfung, | Eine einfache Überprüfung, | ||
< | < | ||
- | # netstat -tulpen | grep nfs | + | # netstat -tulpen | egrep ' |
+ | Proto Recv-Q Send-Q Local Address | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | tcp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | udp 0 0 127.0.0.1: | ||
+ | udp 0 0 0.0.0.0: | ||
+ | </ | ||
+ | ===== Problemlösungen ===== | ||
+ | |||
+ | ==== Service: rpcbind.socket ==== | ||
+ | |||
+ | :!: **HINWEIS** - **__NUR__ relevant, wenn IPv6 deaktiviert wurde!** | ||
+ | |||
+ | Falls nachfolgende Fehlermeldungen in ''/ | ||
+ | < | ||
+ | ... Binding to IPv6 address not available since kernel does not support IPv6. | ||
+ | ... [/ | ||
</ | </ | ||
+ | liegt dies daran, dass bei diesem Server **IPv6** deaktiviert wurde und dies aktuell von dem Dienstes/ | ||
+ | Nachfolgende Lösung aus nachfolgendem **Bug-Report** sollte demnach hier angewendet werden (siehe externen Link): | ||
+ | * [[https:// | ||
- | :!: FIXME **Hier geht es weiter... / under construction...** FIXME :!: | + | Nachfolgende Schritte sind konkret durchzuführen: |
+ | |||
+ | Anlegen eines Verzeichnisses in nachfolgendem Pfad und mit nachfolgendem Namen: | ||
+ | < | ||
+ | # mkdir / | ||
+ | </ | ||
+ | |||
+ | Anschließend wird eine Konfigurationsdatei mit nachfolgendem Namen und Inhalt erzeugt: | ||
+ | < | ||
+ | # vim / | ||
+ | </ | ||
+ | Inhalt: | ||
+ | <code ini> | ||
+ | [Socket] | ||
+ | ListenStream= | ||
+ | ListenStream=/ | ||
+ | ListenStream=0.0.0.0:111 | ||
+ | </ | ||
+ | |||
+ | Anschließend kann der Dienstes/ | ||
+ | < | ||
+ | # systemctl restart rpcbind.socket | ||
+ | </ | ||
+ | |||
+ | Mit nachfolgendem Befehl kann nun überprüft werden, ob der Dienstes/ | ||
+ | < | ||
+ | # systemctl status rpcbind.socket | ||
+ | ● rpcbind.socket - RPCbind Server Activation Socket | ||
+ | | ||
+ | Drop-In: / | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | Jan 14 06:13:55 vml70040.idmz.tachtler.net systemd[1]: Listening on RPCbind S... | ||
+ | Jan 14 06:13:55 vml70040.idmz.tachtler.net systemd[1]: Starting RPCbind Serve... | ||
+ | Hint: Some lines were ellipsized, use -l to show in full. | ||
+ | </ | ||
tachtler/repository_ausliefern_centos_7.txt · Zuletzt geändert: 2017/09/16 17:04 von klaus