From: Maxime Boissonneault <maxime.boissonneault@usherbrooke.ca>
To: linux-raid@vger.kernel.org
Subject: Re: Upgrading a software RAID
Date: Sat, 30 May 2009 14:11:52 -0400 [thread overview]
Message-ID: <4A2176E8.9090701@usherbrooke.ca> (raw)
In-Reply-To: <20090528150849.GB30322@cthulhu.home.robinhill.me.uk>
>> If the / was on a RAID5, would it be able to boot with 2 disks ?
>> If so, is it possible to convert my RAID0 to a RAID5 ?
>> For example, I could boot on a CD, backup / onto /home, delete the RAID0
>> array and recreate it as RAID5, then restore the backup. Would this work ?
>>
>>
> Yes, a RAID-5 will run fine with just two disks. You could certainly
> boot from CD, backup, recreate the RAID, then restore - you'd probably
> need to update the mdadm.conf file (and the initrd) to indicate the new
> array UUID and details though.
>
> You may also want to read through the GRUB section on
> http://en.gentoo-wiki.com/wiki/RAID/Software to see how to install grub
> onto all the drives (avoiding the issue of which drive is currently
> being booted from).
>
>
Ok. This is the configuration I had :
/dev/md1 was a RAID0 composed of /dev/sda2, /dev/sdb2 and /dev/sdc2
I did this :
mdadm --stop /dev/md1
mdadm --zero-superblock /dev/sda2
mdadm --zero-superblock /dev/sdb2
mdadm --zero-superblock /dev/sdc2
and then this :
mdadm --create --verbose /dev/md1 --level=5 --raid-devices=3 /dev/sda2
/dev/sdb2 /dev/sdc2
I used the rescue mode from an alternate CD (hardy 8.04.2) to format
/dev/md1 as ext3. Then, I restored the backup and updated the
/etc/mdadm/mdadm.conf file with the output of mdadm --detail --scan.
Now, GRUB loads (it was on /dev/md0 which is a RAID1 composed of sd*1),
and it tries to load Ubuntu, but it just won't load.
You said that I would have to edit initrd... what is that and what do I
have to change in it ?
Thanks,
Maxime Boissonneault
next prev parent reply other threads:[~2009-05-30 18:11 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 15:32 Adaptec 2405 : hardware or software raid? Janek Kozicki
2009-05-25 16:52 ` Andrew Burgess
2009-05-25 17:05 ` Upgrading a software RAID Maxime Boissonneault
2009-05-28 13:38 ` Bill Davidsen
2009-05-28 13:44 ` Maxime Boissonneault
2009-05-28 14:05 ` Bill Davidsen
2009-05-28 14:14 ` Robin Hill
2009-05-28 14:32 ` Maxime Boissonneault
2009-05-28 15:08 ` Robin Hill
2009-05-30 18:11 ` Maxime Boissonneault [this message]
2009-05-30 19:03 ` Robin Hill
2009-05-30 20:03 ` Maxime Boissonneault
2009-05-30 20:15 ` Robin Hill
2009-05-30 22:18 ` Maxime Boissonneault
2009-05-30 22:52 ` Maxime Boissonneault
2009-06-02 18:23 ` Bill Davidsen
2009-06-02 18:32 ` Thomas Fjellstrom
2009-06-02 19:57 ` Bill Davidsen
2009-06-02 20:03 ` Thomas Fjellstrom
2009-06-02 21:13 ` CoolCold
2009-06-03 16:30 ` Bill Davidsen
2009-05-29 8:58 ` Keld Jørn Simonsen
2009-05-30 18:32 ` Bill Davidsen
2009-05-30 18:35 ` Maxime Boissonneault
2009-05-30 19:10 ` Robin Hill
2009-05-30 22:39 ` Bill Davidsen
2009-05-31 0:17 ` Keld Jørn Simonsen
2009-05-31 5:21 ` Maxime Boissonneault
2009-06-02 18:33 ` Bill Davidsen
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=4A2176E8.9090701@usherbrooke.ca \
--to=maxime.boissonneault@usherbrooke.ca \
--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 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).