All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding more disks to existing Raid5 Array
@ 2004-05-14 17:03 Rolf Schatzmann
  2004-05-14 17:28 ` Guy
  0 siblings, 1 reply; 2+ messages in thread
From: Rolf Schatzmann @ 2004-05-14 17:03 UTC (permalink / raw)
  To: linux-raid



Hello,

I have found conflicting info on the internet and in the archives and
would like to clarify something.

I have a software raid 5 array created using raidtools2 on a 2.4.2x
kernel on  debain stable, currently the array consists of 3 active 120GB
IDE drives and one spare drive, so my raidtab file appears like this:

raiddev /dev/md0
        raid-level      5
        persistent-superblock   1
        chunk-size      256
        nr-raid-disks   3
        nr-spare-disks  1
        device  /dev/hde1
                raid-disk       0
        device  /dev/hdg1
                raid-disk       1
        device  /dev/hdi1
                raid-disk       2
        device  /dev/hdk1
                spare-disk      0

I need to increase the size of the array, can I just change hdk1 to
raid-disk  3  and then run 
Raidhotadd /dev/hdk1  /dev/md0

On one web site I found it says that this works as it re-builds the data
across all available drives stripping the data and parity across the
entire available array in the same way that it would if I was re-adding
a drive that had been marked as failed and kicked out of the array. This
would see logical to me as surely all the required data & parity must be
there to allow it to rebuild the array when you do add a failed drive
back in normally.

But elsewhere in this lists archives I found a post that said that at
creation time the raid 5 array is fixed to a set size and number of
disks and that trying to add to this will result in the destruction of
the array.

What is true?  Is there a tool to add drives to the array, or do I have
to copy everything off, make a new array and then copy it all back?

Help appreciated as always.

Rolf



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

* RE: Adding more disks to existing Raid5 Array
  2004-05-14 17:03 Adding more disks to existing Raid5 Array Rolf Schatzmann
@ 2004-05-14 17:28 ` Guy
  0 siblings, 0 replies; 2+ messages in thread
From: Guy @ 2004-05-14 17:28 UTC (permalink / raw)
  To: 'Rolf Schatzmann', linux-raid

A tool called Raidreconf can do what you want.
I have never used it.
I don't know how much risk there is in data loss.
I would backup my data first!

Find it, read about it, understand it.

Maybe someone else can comment on the risks?

Guy

-----Original Message-----
From: linux-raid-owner@vger.kernel.org
[mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Rolf Schatzmann
Sent: Friday, May 14, 2004 1:04 PM
To: linux-raid@vger.kernel.org
Subject: Adding more disks to existing Raid5 Array



Hello,

I have found conflicting info on the internet and in the archives and
would like to clarify something.

I have a software raid 5 array created using raidtools2 on a 2.4.2x
kernel on  debain stable, currently the array consists of 3 active 120GB
IDE drives and one spare drive, so my raidtab file appears like this:

raiddev /dev/md0
        raid-level      5
        persistent-superblock   1
        chunk-size      256
        nr-raid-disks   3
        nr-spare-disks  1
        device  /dev/hde1
                raid-disk       0
        device  /dev/hdg1
                raid-disk       1
        device  /dev/hdi1
                raid-disk       2
        device  /dev/hdk1
                spare-disk      0

I need to increase the size of the array, can I just change hdk1 to
raid-disk  3  and then run 
Raidhotadd /dev/hdk1  /dev/md0

On one web site I found it says that this works as it re-builds the data
across all available drives stripping the data and parity across the
entire available array in the same way that it would if I was re-adding
a drive that had been marked as failed and kicked out of the array. This
would see logical to me as surely all the required data & parity must be
there to allow it to rebuild the array when you do add a failed drive
back in normally.

But elsewhere in this lists archives I found a post that said that at
creation time the raid 5 array is fixed to a set size and number of
disks and that trying to add to this will result in the destruction of
the array.

What is true?  Is there a tool to add drives to the array, or do I have
to copy everything off, make a new array and then copy it all back?

Help appreciated as always.

Rolf


-
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



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

end of thread, other threads:[~2004-05-14 17:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 17:03 Adding more disks to existing Raid5 Array Rolf Schatzmann
2004-05-14 17:28 ` Guy

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.