From: Mads Peter Bach <mpb@hum.auc.dk>
To: Anders Fugmann <afu@fugmann.dhs.org>
Cc: linux-raid@vger.kernel.org
Subject: Re: Upgrading Raid1 array to have 2. disks.
Date: Wed, 07 May 2003 01:46:16 +0200 [thread overview]
Message-ID: <3EB84948.2090401@hum.auc.dk> (raw)
In-Reply-To: <3EB8441F.8070606@fugmann.dhs.org>
Anders Fugmann wrote:
> Sorry if this is the wrong list to post this on.
It's the right list.
> I have made an error when creating a new raid1 array as I specified that
> the raid should consist of only one disk. Now, I would like to add
> another disk, but mdadm insists on adding it as a spare disk, offering
> no data redundancy.
> I have read the manpages, and tried googling without success.
> I do not wish to destroy the data on the discs, and recreate the array
> but It might be a last resort. Can anyone help me convince mdadm to add
> the 2. partition as an active disk.
You could keep your data by doing this:
Remove the current spare:
mdadm --remove /dev/md/0 /dev/ide/host0/bus0/target0/lun0/part1[0]
Create new array with
mdadm --create /dev/md/1 --level=1
--raid-devices=/dev/ide/host0/bus0/target0/lun0/part1[0] missing
Then create fs on new array, mount & copy data to the new array. Stop the old
array, add disk from old array to the new array.
--
Mads Peter Bach
Systemadministrator, Det Humanistiske Fakultet, Aalborg Universitet
Kroghstræde 3 - 5.111, DK-9220 Aalborg Øst - (+45) 96358062
# whois MPB1-DK@whois.dk-hostmaster.dk
-
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
next prev parent reply other threads:[~2003-05-06 23:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-06 23:24 Upgrading Raid1 array to have 2. disks Anders Fugmann
2003-05-06 23:46 ` Mads Peter Bach [this message]
2003-05-07 0:00 ` Neil Brown
2003-05-08 19:11 ` Anders Fugmann
2003-05-20 0:33 ` raid5, 2 drives dead at same time,kernel will Oops? 3tcdgwg3
2003-05-21 2:42 ` Neil Brown
2003-05-22 1:04 ` 3tcdgwg3
2003-05-30 20:33 ` 3tcdgwg3
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=3EB84948.2090401@hum.auc.dk \
--to=mpb@hum.auc.dk \
--cc=afu@fugmann.dhs.org \
--cc=linux-raid@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.