linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Marek Becka <marek.becka@superhosting.cz>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm fails to assemble arrays with quotes in name
Date: Mon, 13 May 2013 11:34:12 +1000	[thread overview]
Message-ID: <20130513113412.2102592d@notabene.brown> (raw)
In-Reply-To: <5187E9AB.4040904@superhosting.cz>

[-- Attachment #1: Type: text/plain, Size: 1101 bytes --]

On Mon, 06 May 2013 19:34:35 +0200 Marek Becka <marek.becka@superhosting.cz>
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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      parent reply	other threads:[~2013-05-13  1:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06 17:34 mdadm fails to assemble arrays with quotes in name Marek Becka
2013-05-09  5:14 ` NeilBrown
2013-05-09 15:47   ` Marek Becka
2013-05-13  1:34 ` NeilBrown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130513113412.2102592d@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=marek.becka@superhosting.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).