mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Recreating RAID1 after the reckless mdadm usage
@ 2008-04-03  5:46 Artem S. Tashkinov
  2008-04-03  6:46 ` martin f krafft
  0 siblings, 1 reply; 2+ messages in thread
From: Artem S. Tashkinov @ 2008-04-03  5:46 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Recreating RAID1 after the reckless mdadm usage
  2008-04-03  5:46 Recreating RAID1 after the reckless mdadm usage Artem S. Tashkinov
@ 2008-04-03  6:46 ` martin f krafft
  0 siblings, 0 replies; 2+ messages in thread
From: martin f krafft @ 2008-04-03  6:46 UTC (permalink / raw)
  To: linux-kernel

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

also sprach Artem S. Tashkinov <birdie@permonline.ru> [2008.04.03.0746 +0200]:
> 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?

Looks good. Although you should not use --force or --assume-clean,
you wouldn't have needed them, but they also don't make a difference
in the above command.

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
the united nations did a poll about food. the only question they asked
was: "could you please give your honest opinion about a solution for
the shortage of food in the rest of the world?" this poll failed
because:
  - in africa they didn't know what food was....
  - in eastern-europe they didn't know what honest was....
  - in western-europe they didn't know what shortage was...
  - in china they didn't know what opinion was...
  - in the middle-east they didn't know what solution was...
  - in south-america they didn't know what please was...
  - and in the usa they didn't know what "the rest of the world" was...
 
spamtraps: madduck.bogus@madduck.net

[-- Attachment #2: Digital signature (see http://martin-krafft.net/gpg/) --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-03  7:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-03  5:46 Recreating RAID1 after the reckless mdadm usage Artem S. Tashkinov
2008-04-03  6:46 ` martin f krafft

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®