|
|
Subject: Re: Replacing a disk in a RAID1 array. - msg#00532
List: user-groups.linux.ilug.general
On Friday 19 December 2003 12:11, Michael Thompson wrote:
> There is "magic" written to the partition, by mkraid, which indicates
> what raid array the partition belongs to so if you remove /dev/sda from
> box 1 and put in box 2 as /dev/sdc then the raid array might not start?
I hotremoved sdb from box1 and hotadded a new disk - worked fine.
Then I put that disk in box2 as sdb, and am now trying to get box2 to rebuild
its RAID (which is conceptually the same as sda having failed on box1, and
then my having shutdown and replaced sda)
--
Niall
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: Replacing a disk in a RAID1 array.
On Fri, 2003-12-19 at 11:43, Niall O Broin wrote:
> On Friday 19 December 2003 11:25, Paul Kelly :: Blacknight Solutions wrote:>
> > Don't you need to export the partition table from the working disk and
> > import that onto the new one? And then raidhotadd would work?
> >
> > I've never done it (never had to, yet, fingers crossed) but I think
> > that's what he's missing?
>
> No, he's not missing that - he (I) partitioned the replacement drive exactly
> as the old drive. But somehow, the component needs to become part of the RAID
> array. This is what mkraid does, but it destroys data. I need remkraid.
There is "magic" written to the partition, by mkraid, which indicates
what raid array the partition belongs to so if you remove /dev/sda from
box 1 and put in box 2 as /dev/sdc then the raid array might not start?
The information contained in this e-mail and in any attachments is confidential
and is designated solely for the attention of the intended recipient(s). If you
are not an intended recipient, you must not use, disclose, copy, distribute or
retain this e-mail or any part thereof. If you have received this e-mail in
error, please notify the sender by return e-mail and delete all copies of this
e-mail from your computer system(s).
Please direct any additional queries to: communications@xxxxxxxxxxxx
Thank You.
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Next Message by Date:
click to view message preview
Re: Replacing a disk in a RAID1 array.
> > ... he (I) partitioned the replacement drive exactly as the old drive.
> > But somehow, the component needs to become part of the RAID array. This
> > is what mkraid does, but it destroys data.
Afair the mkraid docs warn that mkraid destroys data, and you'd think it
would, but what yr trying to do sounds exactly like the procedure given
by an ibm guy in the Software Raid Howto. He gives instructions
assuming you have one partition full of data, and you want to contruct
an array by having another blank partition mirror the first. Have a
read of the howto, and see if it fits the bill. I've created raid
arrays in this manner before and haven't lost data, though almost all
the manpages of the tools involved say that data loss is
likely/inevitable.
Heh, you can afford to risk it anyways, you have the other half of the
old raid as a backup of sorts ;-)
--
<HomerJ> 29 of the scariest nerds in Ireland i'd imagine.
Homerj, describing a SAGE meeting, on #supporteers (irc.linux.ie)
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Previous Message by Thread:
click to view message preview
Re: Replacing a disk in a RAID1 array.
On Fri, 2003-12-19 at 11:43, Niall O Broin wrote:
> On Friday 19 December 2003 11:25, Paul Kelly :: Blacknight Solutions wrote:>
> > Don't you need to export the partition table from the working disk and
> > import that onto the new one? And then raidhotadd would work?
> >
> > I've never done it (never had to, yet, fingers crossed) but I think
> > that's what he's missing?
>
> No, he's not missing that - he (I) partitioned the replacement drive exactly
> as the old drive. But somehow, the component needs to become part of the RAID
> array. This is what mkraid does, but it destroys data. I need remkraid.
There is "magic" written to the partition, by mkraid, which indicates
what raid array the partition belongs to so if you remove /dev/sda from
box 1 and put in box 2 as /dev/sdc then the raid array might not start?
The information contained in this e-mail and in any attachments is confidential
and is designated solely for the attention of the intended recipient(s). If you
are not an intended recipient, you must not use, disclose, copy, distribute or
retain this e-mail or any part thereof. If you have received this e-mail in
error, please notify the sender by return e-mail and delete all copies of this
e-mail from your computer system(s).
Please direct any additional queries to: communications@xxxxxxxxxxxx
Thank You.
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
Next Message by Thread:
click to view message preview
Re: Replacing a disk in a RAID1 array.
> > ... he (I) partitioned the replacement drive exactly as the old drive.
> > But somehow, the component needs to become part of the RAID array. This
> > is what mkraid does, but it destroys data.
Afair the mkraid docs warn that mkraid destroys data, and you'd think it
would, but what yr trying to do sounds exactly like the procedure given
by an ibm guy in the Software Raid Howto. He gives instructions
assuming you have one partition full of data, and you want to contruct
an array by having another blank partition mirror the first. Have a
read of the howto, and see if it fits the bill. I've created raid
arrays in this manner before and haven't lost data, though almost all
the manpages of the tools involved say that data loss is
likely/inevitable.
Heh, you can afford to risk it anyways, you have the other half of the
old raid as a backup of sorts ;-)
--
<HomerJ> 29 of the scariest nerds in Ireland i'd imagine.
Homerj, describing a SAGE meeting, on #supporteers (irc.linux.ie)
--
Irish Linux Users' Group
http://www.linux.ie/mailman/listinfo/ilug/
|
|