Comment 44 for bug 1381170

Revision history for this message
verdy_p (verdy-p) wrote :

mint@mint ~ $ sudo mdadm --assemble --scan
mdadm: only give one device per ARRAY line: /dev/md/Samsung and 840
mdadm: only give one device per ARRAY line: /dev/md/Samsung and PROS

This is a bug in mdadm: it incorrectly configured /etc/mdadm/mdadm.conf because your existing RAID volumes have a space in their name.

Apparently your 2 existing RAID volumes are named "Samsung 840" and "Samsung PROS". RAID volumes that are created directly from Linux (mdadm --conf) don't have this problem because spaces will not be present. But RAID volumes can be created and named directly from the Intel RAID BIOS and do not have these restrictions (and they insert spaces by default between the volume group name and the subname for one of its volumes.

You need to edit /etc/mdadm/mdadm.conf to surround the volume names in 'quotation marks'.

Then the mount points in /dev/md can correctly be aliased.

Note: it is not possible to rename existing volumes in the existing RAID configuration to remove/replace these spaces in the leading metadata special partition (the operation is not authorized or not supported by the Intel RAID firmware).

So mdadm needs to be patched and properly detect volume names with spaces. However It correctly detects the presence of "[" or "]" or "/" in these volume names and replace them by underscores for naming the Linux devices (but a warning should be displayed).

Probably mdadm should include a tool to rename volumes in RAID metadata. For now it does not work at all, so we need the manual patch after "sudo mdadm --assemble --scan", by editing mdadm.conf: this should not happen, and in my opinion the quotes should always be added in the mdadm.conf so that it will correctly parse, but it may also happen that RAID volumes could also include one of these quotes (single or double) in their name, and apparently there's no correct support in the existing parser of the mdadm.conf file to support correct escaping and use of the correct quotation marks.