Multipath¶
The Multipath service allows configuring multipath storage devices.
Configuration options¶
The full API structs for the service can be viewed online.
The following configuration options can be set:
enabled: Iftrue, enable the Multipath service.wwns: An array of storage device WWNs to configure for multipath. These should be lowercase hexadecimal strings with no colon separators and enclosed in single quotes, for example'0x5abcdef123456001'. See the available diskWWNs in the output ofincus admin os system storage show. Cannot be combined withautomatic_transports.automatic_transports: An array of transports on which every storage device is automatically configured for multipath, without having to list its WWN. Supported values arefcfor Fibre Channel andiscsi. Cannot be combined withwwns.automatic_wwn_prefixes: An array of WWN prefixes limitingautomatic_transportsto the matching storage devices. These use the same format aswwns, for example'0x60014058'. Requiresautomatic_transports.
Automatic configuration¶
When automatic_transports is set, IncusOS configures every storage device reached over the listed transports for multipath as soon as it is detected, including devices that only have a single path. Devices and paths that show up later are picked up without any configuration change.
config:
enabled: true
automatic_transports:
- fc
- iscsi
To only configure some of those devices, such as the ones from a particular storage array, list the start of their WWNs. A device must then be on one of the listed transports and match one of the prefixes.
config:
enabled: true
automatic_transports:
- fc
automatic_wwn_prefixes:
- '0x60014058'
- '0x60060e80'
The resulting multipath device is named after its identifier and is available as /dev/mapper/<identifier>, which is the same on every server that can reach the device. The detected devices and their paths are reported in the service state.
Warning
In this mode, only devices on the listed transports are configured for multipath. Devices on any other transport are ignored, including one that IncusOS may have booted from, which is why wwns can’t be set at the same time. Systems that need multipath on other devices, such as SAS drives with two paths, must keep listing them through wwns instead.
Note
A device that is already in use through one of its paths when this mode is enabled is left untouched. It only gets configured for multipath once it is no longer in use, which in practice means on the next boot. Similarly, a device in use when it stops matching automatic_wwn_prefixes keeps its multipath device until it is no longer in use.
Note
Prefixes only apply to devices identified by an NAA WWN, which is what storage arrays normally report. Any other device is ignored when automatic_wwn_prefixes is set.