Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

4.5. Konfigurationsdatei-Geräte

Tabelle 4.3, »Geräte-Attribute« shows the attributes that you can set for each individual storage device in the devices section of the multipath.conf configuration file. These attributes are used by DM-Multipath unless they are overwritten by the attributes specified in the multipaths section of the multipath.conf file for paths that contain the device. These attributes override the attributes set in the defaults section of the multipath.conf file.
Viele Geräte, die multipathing unterstützen, sind standardmäßig in einer multipath-Konfiguration enthalten. Die Werte für die Geräte, die standardmäßig unterstützt werden, sind in der Datei multipath.conf.defaults aufgelistet. Sie müssen die Werte für diese Geräte möglicherweise nicht modifizieren. Falls doch, können Sie die Standardwerte überschreiben, indem Sie einen Eintrag für das Gerät in der Konfigurationsdatei einfügen, der diese Werte überschreibt. Sie können die Standardwerte der Gerätekonfiguration aus der Datei multipath.conf.defaults für das jeweilige Gerät kopieren und die Werte außer Kraft setzen, die Sie ändern möchten.
To add a device to this section of the configuration file that is not configured automatically by default, you need to set the vendor and product parameters. You can find these values by looking at /sys/block/device_name/device/vendor and /sys/block/device_name/device/model where device_name is the device to be multipathed, as in the following example:
[root@cypher-06 ~]# cat /sys/block/sda/device/vendor
WINSYS  
[root@cypher-06 ~]# cat /sys/block/sda/device/model
SF2372
The additional parameters to specify depend on your specific device. If the device is active/active, you will usually not need to set additional parameters. You may want to set path_grouping_policy to multibus. Other parameters you may need to set are no_path_retry and rr_min_io, as described in Tabelle 4.3, »Geräte-Attribute«.
Falls das Gerät aktiv/passiv ist, es jedoch Pfade automatisch mit I/O zum passiven Pfad wechselt, müssen Sie die Checker-Funktion auf eine Variante setzen, die I/O nicht zum Pfad schickt, um es auf Funktionstüchtigkeit zu testen (ansonsten befindet sich das Gerät kontinuierlich im Failover). Dies hat fast unweigerlich zur Folge, dass Sie den path_checker auf tur setzen müssen. Dies funktioniert für alle SCSI-Geräte. die den Befehl "Test Unit Ready" unterstützen, was bei den meisten der Fall ist.
If the device needs a special command to switch paths, then configuring this device for multipath requires a hardware handler kernel module. The current hardware handlers are emc and "rdac. If these are not sufficient for your device, you may not be able to configure the device for multipath.

Tabelle 4.3. Geräte-Attribute

Attribut Beschreibung
vendor Gibt den Herstellernamen des Speichergeräts an, auf das die device-Attribute zutreffen, z.B. COMPAQ.
product Gibt den Produktnamen des Speichergeräts an, auf das die device-Attribute zutreffen, z.B. HSV110 (C)COMPAQ.
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
getuid_callout Specifies the default program and arguments to call out to obtain a unique path identifier. An absolute path is required.
prio_callout Specifies the the default program and arguments to call out to obtain a path weight. Weights are summed for each path group to determine the next path group to use in case of failue. "none" is a valid value.
path_checker Definiert die Standardmethode, die zur Ermittlung des Status der Pfade verwendet werden soll. Mögliche Werte umfassen readsector0 und tur, emc_clariion, hp_sw und directio.
path_selector Gibt den Standard-Algorithmus an, der zur Bestimmung verwendet werden soll, welcher Pfad für die nächste I/O-Operation verwendet werden soll.
features The extra features of multipath devices. The only existing feature is queue_if_no_path, which is the same as setting no_path_retry to queue. For information on issues that may arise when using this feature, see Abschnitt 5.3, »Issues with queue_if_no_path feature«.
hardware_handler Definiert ein Modul, das verwendet wird, um beim Wechsel von Pfadgruppen oder der Handhabung von I/O-Fehlern hardwarespezifische Aktionen durchzuführen. Mögliche Werte beinhalten 0, 1 emc und 1 rdac. Der Standardwert lautet 0.
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.
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).
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.
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.
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.
product_blacklist Definiert einen regulären Ausdruck, um Geräte anhand des Produkts auf die Blacklist zu setzen.
Das folgende Beispiel zeigt einen device-Eintrag in der Konfigurationsdatei von multipath.
#	}
#	device {
#		vendor			"COMPAQ  "
#		product			"MSA1000         "
#		path_grouping_policy	multibus
#		path_checker		tur
#		rr_weight		priorities
#	}
#}