* split raid1 into to arrays
@ 2007-03-27 2:54 Dirk Jagdmann
2007-03-27 15:57 ` Bill Davidsen
0 siblings, 1 reply; 3+ messages in thread
From: Dirk Jagdmann @ 2007-03-27 2:54 UTC (permalink / raw)
To: linux-raid
Hello experts,
I have a raid1 array with two drives working. It /dev/md0 built from
/dev/hda and /dev/hdb. Now I'd like to split it into two array with
one drive each (and then later add spares to my two arrays again). I
know that I can remove one drive from the array with: mdadm /dev/md0
-f /dev/hdb -r /dev/hdb , however I'm not sure what the superblock of
/dev/hdb now contains and how I could use the contents of /dev/hdb as
the starting point for my new /dev/md1 array? I did not find anything
in the manpage of mdadm which would provide me an automatic split.
So what are your advises?
--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: split raid1 into to arrays
2007-03-27 2:54 split raid1 into to arrays Dirk Jagdmann
@ 2007-03-27 15:57 ` Bill Davidsen
2007-03-29 10:01 ` Dirk Jagdmann
0 siblings, 1 reply; 3+ messages in thread
From: Bill Davidsen @ 2007-03-27 15:57 UTC (permalink / raw)
To: Dirk Jagdmann; +Cc: linux-raid
Dirk Jagdmann wrote:
> Hello experts,
>
> I have a raid1 array with two drives working. It /dev/md0 built from
> /dev/hda and /dev/hdb. Now I'd like to split it into two array with
> one drive each (and then later add spares to my two arrays again). I
> know that I can remove one drive from the array with: mdadm /dev/md0
> -f /dev/hdb -r /dev/hdb , however I'm not sure what the superblock of
> /dev/hdb now contains and how I could use the contents of /dev/hdb as
> the starting point for my new /dev/md1 array? I did not find anything
> in the manpage of mdadm which would provide me an automatic split.
>
> So what are your advises?
>
The fast way (not redundant):
You can mark hdb as failed, then remove it. Then you can create a new
array using hdb and a missing device.
The safe way:
get your additional drives, call then hdc and hdd just for discussion.
add hdc to the existing array and let it rebuild, then mark hdb as
failed and remove. Create a new array from hdb and hdd.
I'm sure someone will tell me if I left out a step.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: split raid1 into to arrays
2007-03-27 15:57 ` Bill Davidsen
@ 2007-03-29 10:01 ` Dirk Jagdmann
0 siblings, 0 replies; 3+ messages in thread
From: Dirk Jagdmann @ 2007-03-29 10:01 UTC (permalink / raw)
To: Bill Davidsen; +Cc: linux-raid
> The fast way (not redundant):
> You can mark hdb as failed, then remove it. Then you can create a new
> array using hdb and a missing device.
Used this way and it worked.
--
---> Dirk Jagdmann
----> http://cubic.org/~doj
-----> http://llg.cubic.org
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-29 10:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-27 2:54 split raid1 into to arrays Dirk Jagdmann
2007-03-27 15:57 ` Bill Davidsen
2007-03-29 10:01 ` Dirk Jagdmann
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).