On Mon, 06 May 2013 19:34:35 +0200 Marek Becka [off-list ref]
wrote:
Hi,
By accident I have created an array with simple quotes in name:
mdadm --assemble /dev/md0 --name=\'newname\':0 --update=name /dev/sdb1
/dev/sdd1
My mdadm.conf contains following line:
ARRAY /dev/md/0 metadata=1.2 UUID=0324aa8b:e17efd1a:bae27dd0:66fc7573
name='newname':0
Mdadm fails to assemble this array. After removing the name from
mdadm.conf, everything works fine.
mdadm --assemble --scan -v 2>&1 | grep sd[bd]1
mdadm: no RAID superblock on /dev/sdd1
mdadm: no RAID superblock on /dev/sdb1
mdadm: /dev/sdd1 has wrong uuid.
mdadm: /dev/sdb1 has wrong uuid.
mdadm: /dev/sdd1 has wrong name.
mdadm: /dev/sdb1 has wrong name.
I'm using mdadm - v3.2.5 - 18th May 2012 and kernel version 3.4.35. The
mdadm-3.2.6 will quote the quotes in --detail --brief and --examine --brief
output, so this issue is already address in the latest mdadm.
Next release will mention quotes in the mdadm.conf documentation.
NeilBrown