From: Stephen Lee <splee@plexio.com>
To: Neil Brown <neilb@cse.unsw.edu.au>
Cc: Raid <linux-raid@vger.kernel.org>
Subject: Re: mdadm help and howto for newbies?
Date: 19 Apr 2002 15:03:23 -0700 [thread overview]
Message-ID: <1019253806.8368.1417.camel@ralph.plexio.private> (raw)
In-Reply-To: <15552.36626.935374.992494@notabene.cse.unsw.edu.au>
On Fri, 2002-04-19 at 14:41, Neil Brown wrote:
> On April 19, splee@plexio.com wrote:
> >
> > 1. Do I need to mark my raid1 partitions with the type fd?
>
> Only if you want to use autodetect. I don't.
>
> > 2. I tried:
> > mdadm -C /dev/md0 --level raid1 --raid-disks 2 /dev/hda1 missing
> > and got the message:
> > md: can not import hda1, has active inodes!
> > md: error, md_import_device() returned -16
> > Does this mean that the partitions to be added to /dev/md0 must be
> > unmounted?
>
> Yes, definately. Once a partition has beein included into an md
> array, md *must* be the only thing accessing that partition, otherwise
> confusion can result.
>
> > 3. If #2 is yes then how do I convert my partitions to raid1? In using
> > raidtools, I simply copied the live drive contents to a spare drive
> > with "fd" type partitions and followed the instructions in the
> > Boot+Root+Raid+LILO Howto.
>
> Support /dev/hda1 was your live boot drive, and /dev/hdc1 was second
> partition that you eventually wanted to raid1 together with /dev/hda1.
> Then
> 1/ create a degraded raid1 using /dev/hdc1 only:
> mdadm -C /dev/md0 --level raid1 --raid-disks 2 missing /dev/hdc1
> 2/ create a filesystem on /dev/md0 and mount it:
> mkfs /dev/md0
> mount /dev/md0 /mnt
> 3/ copy everything from / to /mnt
> cp -ax / /mnt
> could do it.
> 4/ modify /mnt/etc/fstab to think that / is on /dev/md0
> 5/ reboot with a kernel-parameter of:
> md=0,/dev/hdc1 root=/dev/md0
> 6/ If this all seems to work properly, then add /dev/hda1 to the
> raid1 array:
> mdadm /dev/md0 -a /dev/hda1
> and change the kernel-paramter line to
> md=0,/dev/hda1,/dev/hdc1 root=/dev/md0
>
Thank you Neil!
May I suggest you include the above as an example of how to convert to
raid1 in your package documentation? To keep your job simple, you could
simply cut and paste list messages into a faq sheet.
Stephen
prev parent reply other threads:[~2002-04-19 22:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-19 20:35 mdadm help and howto for newbies? Stephen Lee
2002-04-19 21:41 ` Neil Brown
2002-04-19 22:03 ` Stephen Lee [this message]
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=1019253806.8368.1417.camel@ralph.plexio.private \
--to=splee@plexio.com \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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