* Moving RAID 1 array to new server
@ 2003-11-11 0:03 Jean-Rene Cormier
2003-11-11 19:29 ` Juri Haberland
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-11 0:03 UTC (permalink / raw)
To: linux-raid
I just moved my RAID 1 array to a new server and I did the mistake of
moving only one disk at first to make sure that I would still have a
copy on the other server in case the new one couldn't read the array for
some reason. When I added the second disk it mark it as faulty or
something so I tried to remove it from the array and re-add it but it
added a spare drive instead. So now my array is running in degraded
mode, what can I do to so the second drive resync with the other one?
Here's the output of mdadm --detail /dev/md0:
/dev/md0:
Version : 00.90.00
Creation Time : Sat Mar 1 22:55:38 2003
Raid Level : raid1
Array Size : 60051456 (57.27 GiB 61.49 GB)
Device Size : 60051456 (57.27 GiB 61.49 GB)
Raid Devices : 2
Total Devices : 1
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Mon Nov 10 16:50:06 2003
State : dirty, no-errors
Active Devices : 1
Working Devices : 1
Failed Devices : 0
Spare Devices : 1
Number Major Minor RaidDevice State
0 33 1 0 active sync /dev/hde1
1 0 0 1 faulty removed
UUID : 97cdd679:0b676ca4:3d889120:566d5967
Events : 0.27
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-11 0:03 Moving RAID 1 array to new server Jean-Rene Cormier
@ 2003-11-11 19:29 ` Juri Haberland
2003-11-12 2:12 ` Jean-Rene Cormier
0 siblings, 1 reply; 11+ messages in thread
From: Juri Haberland @ 2003-11-11 19:29 UTC (permalink / raw)
To: linux-raid
Jean-Rene Cormier <jrc@vgmidi.com> wrote:
> I just moved my RAID 1 array to a new server and I did the mistake of
> moving only one disk at first to make sure that I would still have a
> copy on the other server in case the new one couldn't read the array for
> some reason. When I added the second disk it mark it as faulty or
> something so I tried to remove it from the array and re-add it but it
> added a spare drive instead. So now my array is running in degraded
> mode, what can I do to so the second drive resync with the other one?
It should work work with something like this:
mdadm --manage /dev/md0 --add /dev/hdXy
where hdXy ist the partition you want to add.
Cheers,
Juri
--
Juri Haberland <juri@koschikode.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-11 19:29 ` Juri Haberland
@ 2003-11-12 2:12 ` Jean-Rene Cormier
2003-11-12 9:40 ` Dick Streefland
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-12 2:12 UTC (permalink / raw)
To: Juri Haberland; +Cc: linux-raid
On Tue, 2003-11-11 at 15:29, Juri Haberland wrote:
> Jean-Rene Cormier <jrc@vgmidi.com> wrote:
> > I just moved my RAID 1 array to a new server and I did the mistake of
> > moving only one disk at first to make sure that I would still have a
> > copy on the other server in case the new one couldn't read the array for
> > some reason. When I added the second disk it mark it as faulty or
> > something so I tried to remove it from the array and re-add it but it
> > added a spare drive instead. So now my array is running in degraded
> > mode, what can I do to so the second drive resync with the other one?
>
> It should work work with something like this:
>
> mdadm --manage /dev/md0 --add /dev/hdXy
>
> where hdXy ist the partition you want to add.
I believe that's what I did but it added it as a spare drive. I'll try
it again tomorrow and see what it does.
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 2:12 ` Jean-Rene Cormier
@ 2003-11-12 9:40 ` Dick Streefland
2003-11-12 19:58 ` Juri Haberland
0 siblings, 1 reply; 11+ messages in thread
From: Dick Streefland @ 2003-11-12 9:40 UTC (permalink / raw)
To: linux-raid
Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
| I believe that's what I did but it added it as a spare drive. I'll try
| it again tomorrow and see what it does.
Perhaps you need this patch:
http://www.spinics.net/lists/raid/msg03627.html
--
Dick Streefland //// Altium BV
dick.streefland@altium.nl (@ @) http://www.altium.com
--------------------------------oOO--(_)--OOo---------------------------
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 9:40 ` Dick Streefland
@ 2003-11-12 19:58 ` Juri Haberland
2003-11-12 20:00 ` Jean-Rene Cormier
0 siblings, 1 reply; 11+ messages in thread
From: Juri Haberland @ 2003-11-12 19:58 UTC (permalink / raw)
To: linux-raid
Dick Streefland <spam@altium.nl> wrote:
> Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
> | I believe that's what I did but it added it as a spare drive. I'll try
> | it again tomorrow and see what it does.
>
> Perhaps you need this patch:
>
> http://www.spinics.net/lists/raid/msg03627.html
Where did he say that he uses 2.6?
Cheers,
Juri
--
Juri Haberland <juri@koschikode.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 19:58 ` Juri Haberland
@ 2003-11-12 20:00 ` Jean-Rene Cormier
2003-11-12 20:06 ` Juri Haberland
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-12 20:00 UTC (permalink / raw)
To: Juri Haberland; +Cc: linux-raid
On Wed, 2003-11-12 at 15:58, Juri Haberland wrote:
> Dick Streefland <spam@altium.nl> wrote:
> > Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
> > | I believe that's what I did but it added it as a spare drive. I'll try
> > | it again tomorrow and see what it does.
> >
> > Perhaps you need this patch:
> >
> > http://www.spinics.net/lists/raid/msg03627.html
>
> Where did he say that he uses 2.6?
I use 2.4.22 so I guess this patch is not for me. When I get home
tonight I'll try to re-add the disk to the array and see what it does.
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 20:00 ` Jean-Rene Cormier
@ 2003-11-12 20:06 ` Juri Haberland
2003-11-12 23:37 ` Jean-Rene Cormier
0 siblings, 1 reply; 11+ messages in thread
From: Juri Haberland @ 2003-11-12 20:06 UTC (permalink / raw)
To: linux-raid
Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
> On Wed, 2003-11-12 at 15:58, Juri Haberland wrote:
> I use 2.4.22 so I guess this patch is not for me. When I get home
> tonight I'll try to re-add the disk to the array and see what it does.
If it doesn't work please also post the relevant part of /proc/mdstat.
Cheers,
Juri
--
Juri Haberland <juri@koschikode.com>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 20:06 ` Juri Haberland
@ 2003-11-12 23:37 ` Jean-Rene Cormier
2003-11-13 0:08 ` Jean-Rene Cormier
2003-11-13 2:08 ` Neil Brown
0 siblings, 2 replies; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-12 23:37 UTC (permalink / raw)
To: Juri Haberland; +Cc: linux-raid
On Wed, 2003-11-12 at 16:06, Juri Haberland wrote:
> Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
> > On Wed, 2003-11-12 at 15:58, Juri Haberland wrote:
>
> > I use 2.4.22 so I guess this patch is not for me. When I get home
> > tonight I'll try to re-add the disk to the array and see what it does.
>
> If it doesn't work please also post the relevant part of /proc/mdstat.
Well I re-added the drive and it marked it as a spare.
Here's the output of mdadm --detail /dev/md0:
/dev/md0:
Version : 00.90.00
Creation Time : Sat Mar 1 22:55:38 2003
Raid Level : raid1
Array Size : 60051456 (57.27 GiB 61.49 GB)
Device Size : 60051456 (57.27 GiB 61.49 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Wed Nov 12 22:33:37 2003
State : dirty, no-errors
Active Devices : 1
Working Devices : 2
Failed Devices : 0
Spare Devices : 2
Number Major Minor RaidDevice State
0 33 1 0 active sync /dev/hde1
1 0 0 1 faulty removed
2 34 1 2 spare /dev/hdg1
UUID : 97cdd679:0b676ca4:3d889120:566d5967
Events : 0.30
And here's my /proc/mdstat:
Personalities : [raid1] [raid5]
read_ahead 1024 sectors
md0 : active raid1 hdg1[2] hde1[0]
60051456 blocks [2/1] [U_]
[=>...................] recovery = 6.9% (4162176/60051456)
finish=30.2min speed=30762K/sec
unused devices: <none>
It seems to be rebuilding but will it stay marked as a spare drive or
will it take over the main faulty drive after it's done rebuilding?
Thanks
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 23:37 ` Jean-Rene Cormier
@ 2003-11-13 0:08 ` Jean-Rene Cormier
2003-11-13 2:08 ` Neil Brown
1 sibling, 0 replies; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-13 0:08 UTC (permalink / raw)
To: Juri Haberland; +Cc: linux-raid
On Wed, 2003-11-12 at 19:37, Jean-Rene Cormier wrote:
> On Wed, 2003-11-12 at 16:06, Juri Haberland wrote:
> > Jean-Rene Cormier <jean-rene.cormier@cipanb.ca> wrote:
> > > On Wed, 2003-11-12 at 15:58, Juri Haberland wrote:
> >
> > > I use 2.4.22 so I guess this patch is not for me. When I get home
> > > tonight I'll try to re-add the disk to the array and see what it does.
> >
> > If it doesn't work please also post the relevant part of /proc/mdstat.
>
>
> Well I re-added the drive and it marked it as a spare.
> It seems to be rebuilding but will it stay marked as a spare drive or
> will it take over the main faulty drive after it's done rebuilding?
>
Well the array just finished syncing and both drive are marked as active
sync without any spare drive so I guess it answered my question.
Thanks
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-13 2:08 ` Neil Brown
@ 2003-11-13 0:11 ` Jean-Rene Cormier
0 siblings, 0 replies; 11+ messages in thread
From: Jean-Rene Cormier @ 2003-11-13 0:11 UTC (permalink / raw)
To: Neil Brown; +Cc: Juri Haberland, linux-raid
On Wed, 2003-11-12 at 22:08, Neil Brown wrote:
> On November 12, jean-rene.cormier@cipanb.ca wrote:
> > And here's my /proc/mdstat:
> >
> > Personalities : [raid1] [raid5]
> > read_ahead 1024 sectors
> > md0 : active raid1 hdg1[2] hde1[0]
> > 60051456 blocks [2/1] [U_]
> > [=>...................] recovery = 6.9% (4162176/60051456)
> > finish=30.2min speed=30762K/sec
> > unused devices: <none>
> >
> > It seems to be rebuilding but will it stay marked as a spare drive or
> > will it take over the main faulty drive after it's done rebuilding?
> >
>
> Wait 30.2 minutes and see?
> It should mark it as a fully active drive, no longer spare.
It just finished and it's marked as fully active now, it was the first
time I had a to resync an array so I didn't knew how it worked.
Jean-Rene Cormier
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Moving RAID 1 array to new server
2003-11-12 23:37 ` Jean-Rene Cormier
2003-11-13 0:08 ` Jean-Rene Cormier
@ 2003-11-13 2:08 ` Neil Brown
2003-11-13 0:11 ` Jean-Rene Cormier
1 sibling, 1 reply; 11+ messages in thread
From: Neil Brown @ 2003-11-13 2:08 UTC (permalink / raw)
To: Jean-Rene Cormier; +Cc: Juri Haberland, linux-raid
On November 12, jean-rene.cormier@cipanb.ca wrote:
> And here's my /proc/mdstat:
>
> Personalities : [raid1] [raid5]
> read_ahead 1024 sectors
> md0 : active raid1 hdg1[2] hde1[0]
> 60051456 blocks [2/1] [U_]
> [=>...................] recovery = 6.9% (4162176/60051456)
> finish=30.2min speed=30762K/sec
> unused devices: <none>
>
> It seems to be rebuilding but will it stay marked as a spare drive or
> will it take over the main faulty drive after it's done rebuilding?
>
Wait 30.2 minutes and see?
It should mark it as a fully active drive, no longer spare.
NeilBrown
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2003-11-13 2:08 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-11 0:03 Moving RAID 1 array to new server Jean-Rene Cormier
2003-11-11 19:29 ` Juri Haberland
2003-11-12 2:12 ` Jean-Rene Cormier
2003-11-12 9:40 ` Dick Streefland
2003-11-12 19:58 ` Juri Haberland
2003-11-12 20:00 ` Jean-Rene Cormier
2003-11-12 20:06 ` Juri Haberland
2003-11-12 23:37 ` Jean-Rene Cormier
2003-11-13 0:08 ` Jean-Rene Cormier
2003-11-13 2:08 ` Neil Brown
2003-11-13 0:11 ` Jean-Rene Cormier
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).