From patchwork Sat Aug 6 22:40:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xose Vazquez Perez X-Patchwork-Id: 9266129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5914D60754 for ; Sat, 6 Aug 2016 22:44:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4801728395 for ; Sat, 6 Aug 2016 22:44:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CBF62841F; Sat, 6 Aug 2016 22:44:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx5-phx2.redhat.com (mx5-phx2.redhat.com [209.132.183.37]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2BD5728395 for ; Sat, 6 Aug 2016 22:44:31 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx5-phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u76MensO029159; Sat, 6 Aug 2016 18:40:49 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u76MeL0f015804 for ; Sat, 6 Aug 2016 18:40:21 -0400 Received: from mx1.redhat.com (ext-mx08.extmail.prod.ext.phx2.redhat.com [10.5.110.32]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u76MeLgF020287 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Sat, 6 Aug 2016 18:40:21 -0400 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2FAC9C05681B for ; Sat, 6 Aug 2016 22:40:19 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id q128so9100283wma.1 for ; Sat, 06 Aug 2016 15:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=RH03vLxPVcI/fSrWrHZ3CyokqQvnKslOTd2EOO9I7Bg=; b=yz++acVXVZ2yg70yXR75cT2xB32DHEVM2WzJcMI7gw0TJYknQgjdx/bgZy2qIbBc+f Rp3qCIzU60xsiTbM98QnN5lUH90Ma9t2XQI0Rk3WHvL4OIP6axzfQ4AoOr8sjj2g4E9u t3tjOvVBcvMV83iCnY1xb/UV+5QnQdKysZLKl6ltNp4o1s1ohVJ6NvjaCzKrtLZ6lTm6 MSUyQ0ZVAp65zsri4Uz7o5w1PSwsTO5/OQYXIrvMFNDk08exVsEsygXYZX3549+/bawJ fiw1DVO2PDXm/365uSujFHbzoPhRw+K+0d8CRh6XTv5HLgOv/bShqvkx9e1J/pdfjHk/ 1rFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=RH03vLxPVcI/fSrWrHZ3CyokqQvnKslOTd2EOO9I7Bg=; b=BNUvzbVD39R0Rv+L+MzPtF0/fFstXOravo4UfppU+6qkbP0nvnseb1cXK5vaxbcM5i TV217noJlPOIZnJ8sD20uzF0Vcxbf3Q9D6eKiUn7S2LvfkQZePg88QSDLbNA9ruJiIBF j6FCqV+fmlse1CQp8H947zXJmfX43QV7PYeourvVdHs+Sz2mCPVoOWRQH9+zuU4jghJM q1MvwspcPjbGtfJDoA4TwHt0rcQdu4Ns/5cxl+untCDtycu4kTBE9NzRVBooGOsBC5TQ +T9vfG+YL1JLcrTjgOM9jPyaX1HirooQDTxbKhPz2t5i+A/PGZNMfmC7Bv5iaTtp8dQZ 0eBQ== X-Gm-Message-State: AEkoouvm0breJ9q0TWCj7m/dSb6GNQCe5hacMoc3BQWEEfOduWHcE0/nrCG92P8wlN+UIg== X-Received: by 10.194.18.35 with SMTP id t3mr76801605wjd.174.1470523217452; Sat, 06 Aug 2016 15:40:17 -0700 (PDT) Received: from localhost (193.173.78.188.dynamic.jazztel.es. [188.78.173.193]) by smtp.gmail.com with ESMTPSA id a194sm15617352wmd.24.2016.08.06.15.40.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Aug 2016 15:40:16 -0700 (PDT) From: Xose Vazquez Perez To: Date: Sun, 7 Aug 2016 00:40:05 +0200 Message-Id: <1470523208-14067-4-git-send-email-xose.vazquez@gmail.com> In-Reply-To: <1470523208-14067-1-git-send-email-xose.vazquez@gmail.com> References: <1470523208-14067-1-git-send-email-xose.vazquez@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sat, 06 Aug 2016 22:40:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Sat, 06 Aug 2016 22:40:19 +0000 (UTC) for IP:'74.125.82.67' DOMAIN:'mail-wm0-f67.google.com' HELO:'mail-wm0-f67.google.com' FROM:'xose.vazquez@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.02 (BAYES_50, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.67 mail-wm0-f67.google.com 74.125.82.67 mail-wm0-f67.google.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.32 X-loop: dm-devel@redhat.com Cc: device-mapper development , Xose Vazquez Perez Subject: [dm-devel] [PATCH 4/7] multipath-tools: add dots(spaces) between sections and keywords X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP Cleaner layout. Cc: Christophe Varoqui Cc: device-mapper development Signed-off-by: Xose Vazquez Perez --- multipath/multipath.conf.5 | 143 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 141 insertions(+), 2 deletions(-) diff --git a/multipath/multipath.conf.5 b/multipath/multipath.conf.5 index 1a96acf..14a8ccb 100644 --- a/multipath/multipath.conf.5 +++ b/multipath/multipath.conf.5 @@ -1,19 +1,28 @@ .TH MULTIPATH.CONF 5 2016-08-06 "Linux" +. +. .\" ---------------------------------------------------------------------------- .SH NAME .\" ---------------------------------------------------------------------------- +. multipath.conf \- multipath daemon configuration file. +. +. .\" ---------------------------------------------------------------------------- .SH DESCRIPTION .\" ---------------------------------------------------------------------------- +. .B "/etc/multipath.conf" is the configuration file for the multipath daemon. It is used to overwrite the built-in configuration table of \fBmultipathd\fP. Any line whose first non-white-space character is a '#' is considered a comment line. Empty lines are ignored. +. +. .\" ---------------------------------------------------------------------------- .SH SYNTAX .\" ---------------------------------------------------------------------------- +. The configuration file contains entries of the form: .RS .nf @@ -44,6 +53,8 @@ Each \fIsection\fP contains one or more attributes or subsections. The recognized keywords for attributes or subsections depend on the section in which they occur. .LP +. +. The following \fIsection\fP keywords are recognized: .TP 17 .B defaults @@ -73,10 +84,15 @@ This section defines values for attributes that should override the device-specific settings for all devices. .RE .LP +. +. .\" ---------------------------------------------------------------------------- .SH "defaults section" .\" ---------------------------------------------------------------------------- +. The \fIdefaults\fR section recognizes the following keywords: +. +. .TP 17 .B verbosity Default verbosity. Higher values increase the verbosity level. Valid @@ -85,6 +101,8 @@ levels are between 0 and 6. .TP Default value is: \fB2\fR .RE +. +. .TP .B polling_interval Interval between two path checks in seconds. For properly functioning paths, @@ -95,6 +113,8 @@ setting in the multipathd.service definition if systemd is used. .TP Default value is: \fB5\fR .RE +. +. .TP .B max_polling_interval Maximal interval between two path checks in seconds. @@ -102,6 +122,8 @@ Maximal interval between two path checks in seconds. .TP Default value is: \fB4 * polling_interval\fR .RE +. +. .TP .B reassign_maps Enable reassigning of device-mapper maps. With this option multipathd @@ -112,6 +134,8 @@ device, not the underlying block devices. Possible values are .TP Default value is: \fBno\fR .RE +. +. .TP .B multipath_dir Directory where the dynamic shared objects are stored. @@ -119,6 +143,8 @@ Directory where the dynamic shared objects are stored. .TP Default value is: \fB\fR, commonly \fI/lib64/multipath/\fR .RE +. +. .TP .B path_selector The default path selector algorithm to use; they are offered by the @@ -138,6 +164,8 @@ to the path and its relative throughput. .TP Default value is: \fBservice-time 0\fR .RE +. +. .TP .B path_grouping_policy The default path grouping policy to apply to unspecified @@ -164,6 +192,8 @@ in \fI/sys/class/fc_transport/target*/node_name\fR. .TP Default value is: \fBfailover\fR .RE +. +. .TP .B uid_attribute The udev attribute providing a unique path identifier. @@ -173,11 +203,15 @@ Default value is: \fBID_SERIAL\fR for SCSI devices .TP Default value is: \fBID_UID\fR for DASD devices .RE +. +. .TP .B getuid_callout (Deprecated) The default program and args to callout to obtain a unique path identifier. Should be specified with an absolute path. .TP +. +. .B prio The name of the path priority routine. The specified routine should return a numeric value specifying the relative priority @@ -237,6 +271,8 @@ priority provided as argument. Requires prio_args keyword. .TP Default value is: \fBconst\fR .RE +. +. .TP .B prio_args Arguments to pass to to the prio function. This only applies to certain @@ -275,6 +311,8 @@ set will always be in their own path group. .TP Default value is: \fB\fR .RE +. +. .TP .B features Specify any device-mapper features to be used. Syntax is \fInum list\fR @@ -297,6 +335,8 @@ Number of msecs before pg_init retry, it must be between 0 and 60000. .TP Default value is: \fB0\fR .RE +. +. .TP .B path_checker The default method used to determine the paths state. Possible values @@ -336,6 +376,8 @@ Check the path state for HP/COMPAQ Smart Array(CCISS) controllers. .TP Default value is: \fBtur\fR .RE +. +. .TP .B alias_prefix The \fIuser_friendly_names\fR prefix. @@ -343,6 +385,8 @@ The \fIuser_friendly_names\fR prefix. .TP Default value is: \fBmpath\fR .RE +. +. .TP .B failback Tell multipathd how to manage path group failback. @@ -365,6 +409,8 @@ Deferred failback (time to defer in seconds). .TP Default value is: \fBmanual\fR .RE +. +. .TP .B rr_min_io The number of IO to route to a path before switching to the next in @@ -373,6 +419,8 @@ the same path group. This is only for BIO based multipath. .TP Default value is: \fB1000\fR .RE +. +. .TP .B rr_min_io_rq The number of IO requests to route to a path before switching to the @@ -381,6 +429,8 @@ next in the same path group. This is only for request based multipath. .TP Default value is: \fB1\fR .RE +. +. .TP .B max_fds Specify the maximum number of file descriptors that can be opened by multipath @@ -393,6 +443,8 @@ if that number is greated than 1024. .TP Default value is: \fBmax\fR .RE +. +. .TP .B rr_weight If set to \fIpriorities\fR the multipath configurator will assign @@ -404,6 +456,8 @@ or .TP Default value is: \fBuniform\fR .RE +. +. .TP .B no_path_retry Specify the number of retries until disable queueing, or @@ -415,6 +469,8 @@ for never stop queueing. If unset no queueing is attempted. .TP Default value is: \fB\fR .RE +. +. .TP .B queue_without_daemon If set to @@ -431,6 +487,8 @@ cannot be told to stop queueing IO. Setting queue_without_daemon to .TP Default value is: \fBno\fR .RE +. +. .TP .B checker_timeout Specify the timeout to use for path checkers and prioritizers that issue SCSI @@ -439,6 +497,8 @@ commands with an explicit timeout, in seconds. .TP Default value is: in \fB/sys/block/sd/device/timeout\fR .RE +. +. .TP .B flush_on_last_del If set to @@ -449,6 +509,8 @@ deleted. .TP Default value is: \fBno\fR .RE +. +. .TP .B user_friendly_names If set to @@ -462,6 +524,8 @@ be overridden by any specific aliases in the \fImultipaths\fR section. .TP Default value is: \fBno\fR .RE +. +. .TP .B fast_io_fail_tmo Specify the number of seconds the SCSI layer will wait after a problem has been @@ -473,6 +537,8 @@ will disable the timeout. .TP Default value is: in \fB5\fR .RE +. +. .TP .B dev_loss_tmo Specify the number of seconds the SCSI layer will wait after a problem has @@ -489,6 +555,8 @@ is not set. .TP Default value is: \fB600\fR .RE +. +. .TP .B bindings_file The full pathname of the binding file to be used when the user_friendly_names option is set. @@ -496,6 +564,8 @@ The full pathname of the binding file to be used when the user_friendly_names op .TP Default value is: \fB/etc/multipath/bindings\fR .RE +. +. .TP .B wwids_file The full pathname of the WWIDs file, which is used by multipath to keep track @@ -504,6 +574,8 @@ of the WWIDs for LUNs it has created multipath devices on in the past. .TP Default value is: \fB/etc/multipath/wwids\fR .RE +. +. .TP .B log_checker_err If set to @@ -516,6 +588,8 @@ errors are logged at level 3 until the device is restored. If set to .TP Default value is: \fBalways\fR .RE +. +. .TP .B reservation_key This is the service action reservation key used by mpathpersist. It must be @@ -527,6 +601,8 @@ device server to identify the I_T nexus. .TP Default value is: \fB\fR .RE +. +. .TP .B retain_attached_hw_handler If set to @@ -539,6 +615,8 @@ multipath will continue to use its configured hardware handler. .TP Default value is: \fByes\fR .RE +. +. .TP .B detect_prio If set to @@ -553,6 +631,8 @@ attributes \fIaccess_state\fR and \fIpreferred_path\fR are supported, or the .TP Default value is: \fByes\fR .RE +. +. .TP .B force_sync If set to @@ -564,6 +644,8 @@ multipathd checkers running in parallel causes significant CPU pressure. .TP Default value is: \fBno\fR .RE +. +. .TP .B strict_timinig If set to @@ -578,6 +660,8 @@ seconds. .TP Default value is: \fBno\fR .RE +. +. .TP .B deferred_remove If set to @@ -591,6 +675,8 @@ will be canceled. .TP Default value is: \fBno\fR .RE +. +. .TP .B partition_delimiter If this value is not set, when multipath renames a device, it will act just @@ -601,6 +687,8 @@ the \fI-p\fR option is used, and always add delimiter. .TP Default value is: \fB\fR .RE +. +. .TP .B config_dir If set to anything other than "", multipath will search this directory @@ -611,6 +699,8 @@ config_dir must either be "" or a fully qualified directory name. .TP Default value is: \fB/etc/multipath/conf.d/\fR .RE +. +. .TP .B delay_watch_checks If set to a value greater than 0, multipathd will watch paths that have @@ -621,6 +711,8 @@ have stayed up for \fIdelay_wait_checks\fR checks. .TP Default value is: \fBno\fR .RE +. +. .TP .B delay_wait_checks If set to a value greater than 0, when a device that has recently come back @@ -631,6 +723,8 @@ comes back online, it will marked and delayed, and not used until it has passed .TP Default value is: \fBno\fR .RE +. +. .TP .B find_multipaths If set to @@ -656,6 +750,8 @@ multipath devices, without having to edit the blacklist. .TP Default value is: \fBno\fR .RE +. +. .TP .B uxsock_timeout CLI receive timeout in milliseconds. For larger systems CLI commands @@ -668,6 +764,8 @@ those issues. .TP Default value is: \fB1000\fR .RE +. +. .TP .B retrigger_tries Sets the number of times multipathd will try to retrigger a uevent to get the @@ -676,6 +774,8 @@ WWID. .TP Default value is: \fB3\fR .RE +. +. .TP .B retrigger_delay Sets the amount of time, in seconds, to wait between retriggers. @@ -683,6 +783,8 @@ Sets the amount of time, in seconds, to wait between retriggers. .TP Default value is: \fB10\fR .RE +. +. .TP .B missing_uev_wait_timeout Controls how many seconds multipathd will wait, after a new multipath device @@ -694,14 +796,19 @@ on a device until it receives a change uevent from the initial table load. Default value is: \fB30\fR .RE . +. +. .\" ---------------------------------------------------------------------------- .SH "blacklist section" .\" ---------------------------------------------------------------------------- +. The \fIblacklist\fR section is used to exclude specific device from inclusion in the multipath topology. It is most commonly used to exclude local disks or LUNs for the array controller. .LP +. +. The following keywords are recognized: .TP 17 .B devnode @@ -720,15 +827,20 @@ and .B product keywords. For a full description of these keywords please see the \fIdevices\fR section description. +. +. .\" ---------------------------------------------------------------------------- .SH "blacklist_exceptions section" .\" ---------------------------------------------------------------------------- +. The \fIblacklist_exceptions\fR section is used to revert the actions of the \fIblacklist\fR section, for example to include specific device in the multipath topology. This allows one to selectively include devices which would normally be excluded via the \fIblacklist\fR section. .LP +. +. The following keywords are recognized: .TP 17 .B devnode @@ -756,12 +868,17 @@ The \fIproperty\fR blacklist and whitelist handling is different from the usual handling in the sense that the whitelist \fIhas\fR to be set, otherwise the device will be blacklisted. In these cases the message \fIblacklisted, udev property missing\fR will be displayed. +. +. .\" ---------------------------------------------------------------------------- .SH "multipaths section" .\" ---------------------------------------------------------------------------- +. The only recognized attribute for the \fImultipaths\fR section is the \fImultipath\fR subsection. .LP +. +. The \fImultipath\fR subsection recognizes the following attributes: .TP 17 .B wwid @@ -770,6 +887,8 @@ The \fImultipath\fR subsection recognizes the following attributes: .B alias Symbolic name for the multipath map. .LP +. +. The following attributes are optional; if not set the default values are taken from the \fIdefaults\fR or \fIdevices\fR section: @@ -811,12 +930,17 @@ section: .RE .PD .LP +. +. .\" ---------------------------------------------------------------------------- .SH "devices section" .\" ---------------------------------------------------------------------------- +. The only recognized attribute for the \fIdevices\fR section is the \fIdevice\fR subsection. .LP +. +. The \fIdevice\fR subsection recognizes the following attributes: .TP 17 .B vendor @@ -860,6 +984,8 @@ Hardware handler for SCSI-3 ALUA compatible arrays. .TP Default value is: \fB\fR .RE +. +. .LP The following attributes are optional; if not set the default values are taken from the \fIdefaults\fR @@ -910,9 +1036,12 @@ section: .RE .PD .LP +. +. .\" ---------------------------------------------------------------------------- .SH "overrides section" .\" ---------------------------------------------------------------------------- +. The overrides section recognizes the following optional attributes; if not set the values are taken from the \fIdevices\fR or \fIdefaults\fR sections: .sp 1 @@ -967,9 +1096,12 @@ the values are taken from the \fIdevices\fR or \fIdefaults\fR sections: .RE .PD .LP +. +. .\" ---------------------------------------------------------------------------- .SH "WWID generation" .\" ---------------------------------------------------------------------------- +. Multipath uses a \fIWorld Wide Identification\fR (WWID) to determine which paths belong to the same device. Each path presenting the same WWID is assumed to point to the same device. @@ -993,9 +1125,12 @@ variable. If none of the \fIgetuid_callout\fR or \fIuid_attribute\fR parameters are present multipath will try to use the sysfs attribute \fIvpd_pg83\fR to generate the WWID. +. +. .\" ---------------------------------------------------------------------------- .SH "KNOWN ISSUES" .\" ---------------------------------------------------------------------------- +. The usage of \fIqueue_if_no_path\fR option can lead to \fID state\fR processes being hung and not killable in situations where all the paths to the LUN go offline. It is advisable to use the \fIno_path_retry\fR option instead. @@ -1005,17 +1140,21 @@ deadlock if the \fIdev_loss_tmo\fR setting results in a device being removed while I/O is still queued. The multipath daemon will update the \fIdev_loss_tmo\fR setting accordingly to avoid this deadlock. Hence if both values are specified the order of precedence is \fIno_path_retry, queue_if_no_path, dev_loss_tmo.\fR - +. +. .\" ---------------------------------------------------------------------------- .SH "SEE ALSO" .\" ---------------------------------------------------------------------------- +. .BR udev (8), .BR dmsetup (8), .BR multipath (8), .BR multipathd (8). - +. +. .\" ---------------------------------------------------------------------------- .SH AUTHORS .\" ---------------------------------------------------------------------------- +. \fImultipath-tools\fR was developed by Christophe Varoqui, and others.