mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Artem S. Tashkinov" <birdie@permonline.ru>
To: linux-kernel@vger.kernel.org
Subject: Recreating RAID1 after the reckless mdadm usage
Date: Thu, 03 Apr 2008 11:46:34 +0600	[thread overview]
Message-ID: <47F46F3A.3060105@permonline.ru> (raw)

Hello,

I have initially created RAID1 in a wrong way:

mdadm --create --verbose /dev/md0 --level=1 --force --raid-devices=1 
/dev/sda1

Note the --raid-devices=1 option and nowhere to be found 'missing' argument.

People have told me I wouldn't be able to add another partition to have 
a working RAID1. Unfortunately, I've already populated /dev/md0 with a 
great deal of data.

Then I did this:

mdadm --stop /dev/md0
mdadm --create --assume-clean --verbose /dev/md0 --level=1 --force 
--raid-devices=2 /dev/sda1 missing (which is obviously the right command).

After doing that I see that my data on a recreated /dev/md0 is there (It 
seems like it's intact). Is it safe to use this RAID1 and is my data 
safe? Can I now add the second block device to md0 using 'mdadm /dev/md0 
-a /dev/sdb1' command?

With respect,

Artem S. Tashkinov

             reply	other threads:[~2008-04-03  5:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-03  5:46 Artem S. Tashkinov [this message]
2008-04-03  6:46 ` martin f krafft

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=47F46F3A.3060105@permonline.ru \
    --to=birdie@permonline.ru \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®