Re: [SLUG] RAID 1 to RAID5 with raidreconf

From: steve szmidt (steve@szmidt.org)
Date: Wed Oct 13 2004 - 14:03:50 EDT


On Wednesday 13 October 2004 01:46 pm, Mario Lombardo wrote:
> I was trying to see if anybody here had any success or failure. I realize
> the success and achievements of people online. I've read some of the
> original author's posts as well. I'm about to jump on raid.mlist or
> something. I forget what the newsgroup/list was.
>
> I could try what you mentioned, but I'd have to build a RAID5 array with
> only two empty disks. That's all I have to spare (four disks total). I
> can move the RAID1 stuff to there and then raidhotadd the third (parity)
> member. This sounds weird but not impossible. What do you think?

I seem to remember that you need three disks to do a raid 5. But it's been a
while...

My suggestion was to erase them and start clean. Are you saying you don't have
any backup, and so you are trying to get around that?

If that's the case, I'd do this:

Format one drive and use it as backup. Copy all data onto it.
Then reformat the remaining three as RAID 5, copy data back from backup.
Finally remake backup drive as a hot spare, or whatever you have in mind.

> /mario
>
> On Tuesday 12 October 2004 14:51, steve szmidt wrote:
> > On Tuesday 12 October 2004 01:41 pm, Mario Lombardo wrote:
> > > I have a SCSI system that boots from /dev/md0 via initrd. When
> > > following the raidreconf documentation on shutting /dev/md0:
> > >
> > > raidstop /dev/md0
> > >
> > > I lose the ability to run the following:
> > >
> > > raidreconf -o oldraidtab -n newraidtab -m /dev/md0
> > >
> > > I've tried to boot with a sysadmin rescue CD with /dev/md0 not running,
> > > but it says something about "no available level 1 drivers", but
> > > /proc/mdstat reveals it's aware of the personalities of RAID 1 and RAID
> > > 5.
> > >
> > > How should I approach this?
> > >
> > > /mario
> >
> > Stop messing with RAID! : )
> >
> > Well joking aside, it might be more reliable and time efficient to just
> > rebuild it fresh as RAID 5, than reconfiguring. (Obvioulsy you have
> > already backed up the data.) As the author noted "However: it is very
> > likely that there are serious bugs that will destroy your data, possibly
> > even on disks not related directly to the array you are re-configuring."
> >
> > Google reveals that a number of people are having problems reconfiguring
> > on both 2.4 and 2.6 kernels.
> >
> > So instead of loosing time trying to get that to work you could have it
> > up and running after a complete rebuild.
>
> -----------------------------------------------------------------------
> This list is provided as an unmoderated internet service by Networked
> Knowledge Systems (NKS). Views and opinions expressed in messages
> posted are those of the author and do not necessarily reflect the
> official policy or position of NKS or any of its employees.

-- 

Steve Szmidt

"They that would give up essential liberty for temporary safety deserve neither liberty nor safety." Benjamin Franklin ----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:39:22 EDT