linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anugraha Sinha <asinha.mailinglist@gmail.com>
To: "Sheng Yang" <sheng@yasker.org>,
	"Dragan Milivojević" <galileo@pkm-inc.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Raid array name by mdadm
Date: Fri, 30 Oct 2015 21:32:50 +0900	[thread overview]
Message-ID: <56336372.2060105@gmail.com> (raw)
In-Reply-To: <CA+2rt40+GxLeSUaQYouHjg=1pC8tJFJrEZFj5ZV0cm03hOJb5g@mail.gmail.com>

Hi Sheng,

On 10/29/2015 7:01 AM, Sheng Yang wrote:
> On Wed, Oct 28, 2015 at 2:40 PM, Sheng Yang <sheng@yasker.org> wrote:
>> On Wed, Oct 28, 2015 at 12:56 PM, Dragan Milivojević
>> <galileo@pkm-inc.com> wrote:
>>> mdadm --create /dev/md/device-123 --verbose --level=mirror
>>> --raid-devices=2 /dev/loop0 /dev/loop1
>>>
>>> [root@eos ~]# ll /dev/md/device-123
>>> lrwxrwxrwx 1 root root 8 Oct 28 20:53 /dev/md/device-123 -> ../md127
>>>
>>> [root@eos ~]# mdadm --detail --scan
>>> ARRAY /dev/md/device-123 metadata=1.2 name=device-123
>>> UUID=03ba5df7:7c5cc933:367e19ef:384665c5
>>
>> Thank Dragan! It works!
>>
>> Seems it's mdadm itself create the link rather than do through kernel,
>> which gave me a little trouble. :D
>
> Hi Dragan,
>
> One more question if you don't mind:
>
> When you do
>
> mdadm --stop /dev/md/device-123
>
> Would mdadm remove the broken link file /dev/md/device-123 automatically?
>
> I found I have to remove the link file manually later...
>

You stopped the array. You might want to assemble it once again saying
mdadm --assemble /dev/md/device-123 /dev/loop0 /dev/loop1
Then, it would just create a new /dev/md*number* and create the link 
with /dev/md/device-123.

This is my logical thought, havent looked at the mdadm code though to 
confirm this.

Regards
Anugraha
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2015-10-30 12:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-28 18:43 Raid array name by mdadm Sheng Yang
2015-10-28 19:56 ` Dragan Milivojević
2015-10-28 21:40   ` Sheng Yang
2015-10-28 22:01     ` Sheng Yang
2015-10-30 12:32       ` Anugraha Sinha [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=56336372.2060105@gmail.com \
    --to=asinha.mailinglist@gmail.com \
    --cc=galileo@pkm-inc.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=sheng@yasker.org \
    /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).