Linux RAID subsystem development
 help / color / mirror / Atom feed
* Creating degraded more arrays with mdadm?
@ 2002-12-14 22:27 Ross Vandegrift
  2002-12-14 22:48 ` Derek Vadala
  0 siblings, 1 reply; 2+ messages in thread
From: Ross Vandegrift @ 2002-12-14 22:27 UTC (permalink / raw)
  To: linux-raid

Hey everyone,

	I started building a new array today to give some failover
capabilities to an aging Maxtor 17G drive and an IBM Deathstar 20G.  The
Maxtor had data on it, so I went about my usual routine of creating an
array in with a failed disk.

	I'm trying to convert to using mdadm for everything, but I
couldn't really figure out how to do this.  I thought I figured it out
with

# mdadm --create /dev/md0 --level=1 --raid-disks=1 /dev/hde2
... copy data
# mdadm --add /dev/md0 /dev/hdg2

But I knew something didn't work as expected when there was no sync
required.  I realized only after stopping and restating the array I
created a one disk mirror with one hot spare.  Doh!

Given that I have /dev/hde2 with data, and /dev/hdg1 and I want to put
them into an array, how do I use mdadm to make a degraded mode md device
like I used to with raidtools2?

(btw - have I asked this before?  I'm having a small case of deja vu,
but google and MARC couldn't corroborate my feeling...)

-- 
Ross Vandegrift
ross@willow.seitz.com

A Pope has a Water Cannon.                               It is a Water Cannon.
He fires Holy-Water from it.                        It is a Holy-Water Cannon.
He Blesses it.                                 It is a Holy Holy-Water Cannon.
He Blesses the Hell out of it.          It is a Wholly Holy Holy-Water Cannon.
He has it pierced.                It is a Holey Wholly Holy Holy-Water Cannon.
He makes it official.       It is a Canon Holey Wholly Holy Holy-Water Cannon.
Batman and Robin arrive.                                       He shoots them.

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

* Re: Creating degraded more arrays with mdadm?
  2002-12-14 22:27 Creating degraded more arrays with mdadm? Ross Vandegrift
@ 2002-12-14 22:48 ` Derek Vadala
  0 siblings, 0 replies; 2+ messages in thread
From: Derek Vadala @ 2002-12-14 22:48 UTC (permalink / raw)
  To: Ross Vandegrift; +Cc: linux-raid

On Sat, 14 Dec 2002, Ross Vandegrift wrote:

> 	I'm trying to convert to using mdadm for everything, but I
> couldn't really figure out how to do this.  I thought I figured it out
> with
>
> # mdadm --create /dev/md0 --level=1 --raid-disks=1 /dev/hde2
> ... copy data
> # mdadm --add /dev/md0 /dev/hdg2
>

Use the missing keyword in place of the device name:

# mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/hde2 missing

That should leave you with a 2-disk mirror with only /dev/hde2 as a
member.

--
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek


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

end of thread, other threads:[~2002-12-14 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-14 22:27 Creating degraded more arrays with mdadm? Ross Vandegrift
2002-12-14 22:48 ` Derek Vadala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox