Suchen

4.3. Standardeinstellungen der Konfigurationsdatei

download PDF
Die Konfigurationsdatei /etc/multipath.conf beinhaltet einen Abschnitt defaults, der den Parameter user_friendly_names auf yes setzt, wie nachfolgend aufgeführt.
defaults {
        user_friendly_names yes
}
Dies überschreibt den standardmäßigen Wert des Parameters user_friendly_names.
Die Konfigurationsdatei beinhaltet eine Vorlage von Konfigurations- Standardwerten. Dieser Abschnitt ist auskommentiert, wie nachfolgend aufgeführt.
#defaults {
#       udev_dir                /dev
#       polling_interval        10
#       selector                "round-robin 0"
#       path_grouping_policy    multibus
#       getuid_callout          "/sbin/scsi_id -g -u -s /block/%n"
#       prio_callout            /bin/true
#       path_checker            readsector0
#       rr_min_io               100
#       max_fds                 8192
#       rr_weight               priorities
#       failback                immediate
#       no_path_retry           fail
#       user_friendly_names     yes
#}
Um den Standardwert für irgendeinen der Konfigurations-Parameter zu überschreiben, können Sie die relevanten Zeilen aus dieser Vorlage in den Abschnitt defaults kopieren und die Markierung als Kommentar entfernen. Um beispielsweise den Parameter path_grouping_policy zu überschreiben, so dass er zu multibus anstelle des Standardwerts von failover wird, kopieren Sie die entsprechende Zeile aus der Vorlage in den ursprünglichen Abschnitt defaults der Konfigurationsdatei und entfernen die Markierung als Kommentar wie folgt.
defaults {
        user_friendly_names     yes
        path_grouping_policy    multibus
}
Tabelle 4.1, »Standardeinstellungen für die Multipath-Konfiguration« describes the attributes that are set in the defaults section of the multipath.conf configuration file. These values are used by DM-Multipath unless they are overwritten by the attributes specified in the devices and multipaths sections of the multipath.conf file.
Tabelle 4.1. Standardeinstellungen für die Multipath-Konfiguration
Attribut Beschreibung
udev_dir Definiert das Verzeichnis, in dem udev-Geräteknoten erstellt werden. Der Standardwert ist /udev.
polling_interval Gibt das Intervall zwischen zwei Pfad-Checks in Sekunden an. Der Standardwert lautet 5.
selector Gibt den Standard-Algorithmus an, der zur Bestimmung verwendet werden soll, welcher Pfad für die nächste I/O-Operation benutzt werden soll. Der Standardwert lautet round-robin 0.
path_grouping_policy
Definiert die Standard-Richtlinie zur Pfad-Gruppierung, die auf nicht angegebene multipaths angewendet werden soll. Mögliche Werte sind:
failover = 1 path pro priority group
multibus = alle gültigen paths in 1 priority group
group_by_serial = 1 priority group pro erkannter Seriennummer
group_by_prio = 1 priority group pro path priority value
group_by_node_name = 1 priority group pro target node name
Der Standardwert ist failover.
getuid_callout
Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
Der Standardwert lautet /sbin/scsi_id -g -u -s.
prio_callout Specifies the the default program and arguments to call out to obtain a path priority value. For example, the ALUA bits in SPC-3 provide an exploitable prio value for example. "none" is a valid value. The default value is no callout, indicating all paths are equal
path_checker Gibt die Standardmethode an, die zur Bestimmung des Status des Pfads verwendet wird. Mögliche Werte umfassen: readsector0, tur, emc_clariion, hp_sw und directio. Der Standardwert lautet readsector0.
rr_min_io Definiert die Anzahl der I/O-Anfragen, die an einen Pfad weitergeleitet werden sollen, bevor zum nächsten Pfad in der aktuellen Pfadgruppe gewechselt wird. Der Standardwert lautet 1000.
max_fds (RHEL 5.2 and later) Sets the maximum number of open file descriptors for the multipathd process. In RHEL 5.3, this option allows a value of max, which sets the number of open file descriptors to the system maximum.
rr_weight
If set to priorities, then instead of sending rr_min_io requests to a path before calling selector to choose the next path, the number of requests to send is determined by rr_min_io times the path's priority, as determined by the prio_callout program. Currently, there are priority callouts only for devices that use the group_by_prio path grouping policy, which means that all the paths in a path group will always have the same priority.
Wenn auf uniform gesetzt, sind alle Pfadgewichtungen gleich. Der Standardwert lautet uniform.
failback
Definiert den Pfad für Gruppen-Failback.
Ein Wert von 0 oder immediate gibt an, dass das System zu einer Pfadgruppe mit höherer priority als die aktuelle Pfadgruppe wechselt, sobald diese existiert.
Ein numerischer Wert größer als Null definiert ein verzögertes Failback, ausgedrückt in Sekunden.
Ein Wert von manual definiert, dass das Failback nur mit Eingriff des Systemverwalters passieren kann.
The default value is manual.
no_path_retry
Ein numerischer Wert für dieses Attribut definiert die Häufigkeit, wie oft das System versuchen soll, einen fehlgeschlagenen Pfad zu verwenden, bevor Queuing deaktiviert wird.
Ein Wert von fail weist auf einen unmittelbaren Ausfall hin, ohne Queuing.
Ein Wert von queue weist darauf hin, dass Queuing nicht stoppen sollte, bis der Pfad korrigiert wurde.
Der Standardwert ist (null).
flush_on_last_del (RHEL 5.3 and later) If set to yes, the multipathd daemon will disable queueing when the last path to a device has been deleted. The default value is no.
queue_without_daemon (RHEL 5.3 and later) If set to no, the multipathd daemon will disable queueing for all devices when it is shut down. The default value is yes.
user_friendly_names If set to yes, specifies that the system should using the bindings file to assign a persistent and unique alias to the multipath, in the form of mpathn. The default location of the bindings file is /var/lib/multipath/bindings, but this can be changed with the bindings_file option. If set to no, specifies that the system should use use the WWID as the alias for the multipath. In either case, what is specified here will be overriden by any device-specific aliases you specify in the multipaths section of the configuration file. The default value is no.
bindings_file (RHEL 5.2 and later) The location of the bindings file that is used with the user_friend_names option. The default value is /var/lib/multipath/bindings.
mode (RHEL 5.3 and later) The mode to use for the multipath device nodes, in octal. The default value is determined by the process.
uid (RHEL 5.3 and later) The user ID to use for the multipath device nodes. You must use the numeric user ID. The default value is determined by the process.
gid (RHEL 5.3 and later) The group ID to use for the multipath device nodes. You must use the numeric group ID. The default value is determined by the process.
Red Hat logoGithubRedditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

© 2024 Red Hat, Inc.