* Raid over USB disks and eject
@ 2012-11-12 12:44 Salatiel Filho
2012-11-12 16:07 ` Benjamin ESTRABAUD
[not found] ` <50A11B2C.7070902@mpstor.com>
0 siblings, 2 replies; 5+ messages in thread
From: Salatiel Filho @ 2012-11-12 12:44 UTC (permalink / raw)
To: linux-raid
Hi guys, i have an external USB enclosure with 4 disks in RAID5 mode
using mdadm. I dont know exactly why but if i use this disks for
massive I/O for lots of hours (over 12 hours), linux usually eject
some or all disks (causing a faulty in the raid) and remaps them: sdb
-> sdf , sdc -> sdg , sdd -> sdh , sde -> sdi
Well , this was never exactly a problem because most of the time those
disks are idle (just backup), but i had a real disk failure and i will
replace the disk. But probably the rebuild process will take a lot
more than 12 hours so the chances are that some disk will be ejected
and i will be in a trouble situation where a raid5 rebuilding process
will probably be stopped by an apparently failure. So my question is:
If i get into that situation , will i be able to disassemble and
reassemble the disk using the three disks i know are 'fine' and
restart the rebuild process from where it stopped ? I have internal
bitmap enabled.
Is it possible to somehow freeze the rebuild process ? So i could
pause the process for a few hours after 8 hours of work for example.
The raid will be assembled but umounted during the rebuild proccess.
I am using kernel 3.2.30.
Thanks !!!
[]'s
Salatiel
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Raid over USB disks and eject
2012-11-12 12:44 Raid over USB disks and eject Salatiel Filho
@ 2012-11-12 16:07 ` Benjamin ESTRABAUD
2012-11-12 20:28 ` NeilBrown
[not found] ` <50A11B2C.7070902@mpstor.com>
1 sibling, 1 reply; 5+ messages in thread
From: Benjamin ESTRABAUD @ 2012-11-12 16:07 UTC (permalink / raw)
To: Salatiel Filho; +Cc: linux-raid
Hi!
You could setup a cron job that will pause the resync by writing to sysfs:
If your array if "md0":
echo "idle" > /sys/block/md0/md/sync_action
However, this is probably not necessary as the resynced stripes will be
marked in the bitmap, meaning that if your rebuild fails, re-assembling
the array should restart the resync from where it stopped.
Regards,
Ben.
On 12/11/12 12:44, Salatiel Filho wrote:
> Hi guys, i have an external USB enclosure with 4 disks in RAID5 mode
> using mdadm. I dont know exactly why but if i use this disks for
> massive I/O for lots of hours (over 12 hours), linux usually eject
> some or all disks (causing a faulty in the raid) and remaps them: sdb
> -> sdf , sdc -> sdg , sdd -> sdh , sde -> sdi
> Well , this was never exactly a problem because most of the time those
> disks are idle (just backup), but i had a real disk failure and i will
> replace the disk. But probably the rebuild process will take a lot
> more than 12 hours so the chances are that some disk will be ejected
> and i will be in a trouble situation where a raid5 rebuilding process
> will probably be stopped by an apparently failure. So my question is:
>
> If i get into that situation , will i be able to disassemble and
> reassemble the disk using the three disks i know are 'fine' and
> restart the rebuild process from where it stopped ? I have internal
> bitmap enabled.
>
> Is it possible to somehow freeze the rebuild process ? So i could
> pause the process for a few hours after 8 hours of work for example.
>
> The raid will be assembled but umounted during the rebuild proccess.
>
> I am using kernel 3.2.30.
>
> Thanks !!!
>
>
> []'s
> Salatiel
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message tomajordomo@vger.kernel.org
> More majordomo info athttp://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Raid over USB disks and eject
[not found] ` <50A11B2C.7070902@mpstor.com>
@ 2012-11-12 16:10 ` Salatiel Filho
0 siblings, 0 replies; 5+ messages in thread
From: Salatiel Filho @ 2012-11-12 16:10 UTC (permalink / raw)
To: Benjamin ESTRABAUD; +Cc: linux-raid
Hi Benjamin, thanks for the tip. I will try this later and post the
results here.
[]'s
Salatiel
On Mon, Nov 12, 2012 at 12:52 PM, Benjamin ESTRABAUD <be@mpstor.com> wrote:
> Hi!
>
> You could setup a cron job that will pause the resync by writing to sysfs:
>
> If your array if "md0":
>
> echo "idle" > /sys/block/md0/md/sync_action
>
> However, this is probably not necessary as the resynced stripes will be
> marked in the bitmap, meaning that if your rebuild fails, re-assembling the
> array should restart the resync from where it stopped.
>
> Regards,
> Ben.
>
>
> On 12/11/12 12:44, Salatiel Filho wrote:
>
> Hi guys, i have an external USB enclosure with 4 disks in RAID5 mode
> using mdadm. I dont know exactly why but if i use this disks for
> massive I/O for lots of hours (over 12 hours), linux usually eject
> some or all disks (causing a faulty in the raid) and remaps them: sdb
> -> sdf , sdc -> sdg , sdd -> sdh , sde -> sdi
> Well , this was never exactly a problem because most of the time those
> disks are idle (just backup), but i had a real disk failure and i will
> replace the disk. But probably the rebuild process will take a lot
> more than 12 hours so the chances are that some disk will be ejected
> and i will be in a trouble situation where a raid5 rebuilding process
> will probably be stopped by an apparently failure. So my question is:
>
> If i get into that situation , will i be able to disassemble and
> reassemble the disk using the three disks i know are 'fine' and
> restart the rebuild process from where it stopped ? I have internal
> bitmap enabled.
>
> Is it possible to somehow freeze the rebuild process ? So i could
> pause the process for a few hours after 8 hours of work for example.
>
> The raid will be assembled but umounted during the rebuild proccess.
>
> I am using kernel 3.2.30.
>
> Thanks !!!
>
>
> []'s
> Salatiel
> --
> 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] 5+ messages in thread
* Re: Raid over USB disks and eject
2012-11-12 16:07 ` Benjamin ESTRABAUD
@ 2012-11-12 20:28 ` NeilBrown
2012-11-14 16:25 ` Salatiel Filho
0 siblings, 1 reply; 5+ messages in thread
From: NeilBrown @ 2012-11-12 20:28 UTC (permalink / raw)
To: Benjamin ESTRABAUD; +Cc: Salatiel Filho, linux-raid
[-- Attachment #1: Type: text/plain, Size: 2460 bytes --]
On Mon, 12 Nov 2012 16:07:28 +0000 Benjamin ESTRABAUD <be@mpstor.com> wrote:
> Hi!
>
> You could setup a cron job that will pause the resync by writing to sysfs:
>
> If your array if "md0":
>
> echo "idle" > /sys/block/md0/md/sync_action
"idle" is not sufficient. It will stop the recovery, but then it will
immediately start again.
You need "frozen".
NeilBrown
>
> However, this is probably not necessary as the resynced stripes will be
> marked in the bitmap, meaning that if your rebuild fails, re-assembling
> the array should restart the resync from where it stopped.
>
> Regards,
> Ben.
>
> On 12/11/12 12:44, Salatiel Filho wrote:
> > Hi guys, i have an external USB enclosure with 4 disks in RAID5 mode
> > using mdadm. I dont know exactly why but if i use this disks for
> > massive I/O for lots of hours (over 12 hours), linux usually eject
> > some or all disks (causing a faulty in the raid) and remaps them: sdb
> > -> sdf , sdc -> sdg , sdd -> sdh , sde -> sdi
> > Well , this was never exactly a problem because most of the time those
> > disks are idle (just backup), but i had a real disk failure and i will
> > replace the disk. But probably the rebuild process will take a lot
> > more than 12 hours so the chances are that some disk will be ejected
> > and i will be in a trouble situation where a raid5 rebuilding process
> > will probably be stopped by an apparently failure. So my question is:
> >
> > If i get into that situation , will i be able to disassemble and
> > reassemble the disk using the three disks i know are 'fine' and
> > restart the rebuild process from where it stopped ? I have internal
> > bitmap enabled.
> >
> > Is it possible to somehow freeze the rebuild process ? So i could
> > pause the process for a few hours after 8 hours of work for example.
> >
> > The raid will be assembled but umounted during the rebuild proccess.
> >
> > I am using kernel 3.2.30.
> >
> > Thanks !!!
> >
> >
> > []'s
> > Salatiel
> > --
> > To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> > the body of a message tomajordomo@vger.kernel.org
> > More majordomo info athttp://vger.kernel.org/majordomo-info.html
> >
>
>
> --
> 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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Raid over USB disks and eject
2012-11-12 20:28 ` NeilBrown
@ 2012-11-14 16:25 ` Salatiel Filho
0 siblings, 0 replies; 5+ messages in thread
From: Salatiel Filho @ 2012-11-14 16:25 UTC (permalink / raw)
To: NeilBrown; +Cc: Benjamin ESTRABAUD, linux-raid
Hi NeilBrown, the frozen option did the trick. Thanks ! So far rebuild
with no problems. 2 hours rebuilding , 15min sleeping in a loop ...
[]'s
Salatiel
On Mon, Nov 12, 2012 at 5:28 PM, NeilBrown <neilb@suse.de> wrote:
> On Mon, 12 Nov 2012 16:07:28 +0000 Benjamin ESTRABAUD <be@mpstor.com> wrote:
>
>> Hi!
>>
>> You could setup a cron job that will pause the resync by writing to sysfs:
>>
>> If your array if "md0":
>>
>> echo "idle" > /sys/block/md0/md/sync_action
>
> "idle" is not sufficient. It will stop the recovery, but then it will
> immediately start again.
> You need "frozen".
>
> NeilBrown
>
>
>>
>> However, this is probably not necessary as the resynced stripes will be
>> marked in the bitmap, meaning that if your rebuild fails, re-assembling
>> the array should restart the resync from where it stopped.
>>
>> Regards,
>> Ben.
>>
>> On 12/11/12 12:44, Salatiel Filho wrote:
>> > Hi guys, i have an external USB enclosure with 4 disks in RAID5 mode
>> > using mdadm. I dont know exactly why but if i use this disks for
>> > massive I/O for lots of hours (over 12 hours), linux usually eject
>> > some or all disks (causing a faulty in the raid) and remaps them: sdb
>> > -> sdf , sdc -> sdg , sdd -> sdh , sde -> sdi
>> > Well , this was never exactly a problem because most of the time those
>> > disks are idle (just backup), but i had a real disk failure and i will
>> > replace the disk. But probably the rebuild process will take a lot
>> > more than 12 hours so the chances are that some disk will be ejected
>> > and i will be in a trouble situation where a raid5 rebuilding process
>> > will probably be stopped by an apparently failure. So my question is:
>> >
>> > If i get into that situation , will i be able to disassemble and
>> > reassemble the disk using the three disks i know are 'fine' and
>> > restart the rebuild process from where it stopped ? I have internal
>> > bitmap enabled.
>> >
>> > Is it possible to somehow freeze the rebuild process ? So i could
>> > pause the process for a few hours after 8 hours of work for example.
>> >
>> > The raid will be assembled but umounted during the rebuild proccess.
>> >
>> > I am using kernel 3.2.30.
>> >
>> > Thanks !!!
>> >
>> >
>> > []'s
>> > Salatiel
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> > the body of a message tomajordomo@vger.kernel.org
>> > More majordomo info athttp://vger.kernel.org/majordomo-info.html
>> >
>>
>>
>> --
>> 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] 5+ messages in thread
end of thread, other threads:[~2012-11-14 16:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-12 12:44 Raid over USB disks and eject Salatiel Filho
2012-11-12 16:07 ` Benjamin ESTRABAUD
2012-11-12 20:28 ` NeilBrown
2012-11-14 16:25 ` Salatiel Filho
[not found] ` <50A11B2C.7070902@mpstor.com>
2012-11-12 16:10 ` Salatiel Filho
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).