* Where can i download mdadm 3.3
@ 2012-11-18 13:42 Salatiel Filho
2012-11-20 1:26 ` NeilBrown
0 siblings, 1 reply; 10+ messages in thread
From: Salatiel Filho @ 2012-11-18 13:42 UTC (permalink / raw)
To: linux-raid
Hi guys, i will be building a few arrays very soon and i'd like to
test the badblock feature and the replaceable feature, but i haven`t
found where i can download the source of mdadm 1.3. Where can i get it
?
Thanks !
[]'s
Salatiel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-18 13:42 Where can i download mdadm 3.3 Salatiel Filho
@ 2012-11-20 1:26 ` NeilBrown
2012-11-20 11:02 ` Salatiel Filho
[not found] ` <CAGmni9rKhsTS5hoBo2dFkcksyikS-STmPqagQhbsVC=CiB=54g@mail.gmail.com>
0 siblings, 2 replies; 10+ messages in thread
From: NeilBrown @ 2012-11-20 1:26 UTC (permalink / raw)
To: Salatiel Filho; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
wrote:
> Hi guys, i will be building a few arrays very soon and i'd like to
> test the badblock feature and the replaceable feature, but i haven`t
> found where i can download the source of mdadm 1.3. Where can i get it
> ?
>
You can't. 3.3 doesn't exist yet.
However
git clone git://neil.brown.name/mdadm
cd mdadm
make
will get you code that supports bad blocks and replaceable devices.
Alternately you can get a tar file at
http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-20 1:26 ` NeilBrown
@ 2012-11-20 11:02 ` Salatiel Filho
2012-11-20 17:00 ` Salatiel Filho
[not found] ` <CAGmni9rKhsTS5hoBo2dFkcksyikS-STmPqagQhbsVC=CiB=54g@mail.gmail.com>
1 sibling, 1 reply; 10+ messages in thread
From: Salatiel Filho @ 2012-11-20 11:02 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
Thanks Neil !
[]'s
Salatiel
On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> wrote:
>
>> Hi guys, i will be building a few arrays very soon and i'd like to
>> test the badblock feature and the replaceable feature, but i haven`t
>> found where i can download the source of mdadm 1.3. Where can i get it
>> ?
>>
> You can't. 3.3 doesn't exist yet.
>
> However
> git clone git://neil.brown.name/mdadm
> cd mdadm
> make
>
> will get you code that supports bad blocks and replaceable devices.
>
> Alternately you can get a tar file at
>
> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
>
> NeilBrown
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-20 11:02 ` Salatiel Filho
@ 2012-11-20 17:00 ` Salatiel Filho
2012-11-20 21:25 ` NeilBrown
0 siblings, 1 reply; 10+ messages in thread
From: Salatiel Filho @ 2012-11-20 17:00 UTC (permalink / raw)
Cc: linux-raid
[]'s
Salatiel
On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
<salatiel.filho@gmail.com> wrote:
> Thanks Neil !
> []'s
> Salatiel
>
>
> On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
>> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
>> wrote:
>>
>>> Hi guys, i will be building a few arrays very soon and i'd like to
>>> test the badblock feature and the replaceable feature, but i haven`t
>>> found where i can download the source of mdadm 1.3. Where can i get it
>>> ?
>>>
>> You can't. 3.3 doesn't exist yet.
>>
>> However
>> git clone git://neil.brown.name/mdadm
>> cd mdadm
>> make
>>
>> will get you code that supports bad blocks and replaceable devices.
>>
>> Alternately you can get a tar file at
>>
>> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
>>
>> NeilBrown
Forgot to send a copy to the list:
Now the question, how do i enable badblock list ?
# mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
I actually created also a new array
# mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
but how do i verify if badblock support was enabled ?
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
[not found] ` <20121121071529.1d6bea7b@notabene.brown>
@ 2012-11-20 21:24 ` Salatiel Filho
0 siblings, 0 replies; 10+ messages in thread
From: Salatiel Filho @ 2012-11-20 21:24 UTC (permalink / raw)
To: NeilBrown, linux-raid
On Tue, Nov 20, 2012 at 5:15 PM, NeilBrown <neilb@suse.de> wrote:
> On Tue, 20 Nov 2012 08:33:10 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> wrote:
>
>> On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
>> > On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
>> > wrote:
>> >
>> >> Hi guys, i will be building a few arrays very soon and i'd like to
>> >> test the badblock feature and the replaceable feature, but i haven`t
>> >> found where i can download the source of mdadm 1.3. Where can i get it
>> >> ?
>> >>
>> > You can't. 3.3 doesn't exist yet.
>> >
>> > However
>> > git clone git://neil.brown.name/mdadm
>> > cd mdadm
>> > make
>> >
>> > will get you code that supports bad blocks and replaceable devices.
>> >
>> > Alternately you can get a tar file at
>> >
>> > http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
>> >
>> > NeilBrown
>>
>> Neil , now the question, how do i enable badblock list ?
>> # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
>
> Why not posted to the list?
>
> That looks right. Did it work?
>
> NeilBrown
I forgot "reply to all" , sorry.
Yes, it worked. I was looking for some information with
# mdadm -D /dev/md1 and could not find.
but
#mdadm -E /dev/sdb2 shows me Bad Block Log : 512 entries available
at offset 262128 sectors , so i think it is activated. Now i'm writing
to the array so my bad disk will show me some error.
I will report the progress as soon as the errors appear.
Thanks !
[]'s
Salatiel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-20 17:00 ` Salatiel Filho
@ 2012-11-20 21:25 ` NeilBrown
2012-11-25 13:30 ` Salatiel Filho
0 siblings, 1 reply; 10+ messages in thread
From: NeilBrown @ 2012-11-20 21:25 UTC (permalink / raw)
To: Salatiel Filho; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]
On Tue, 20 Nov 2012 14:00:35 -0300 Salatiel Filho <salatiel.filho@gmail.com>
wrote:
> []'s
> Salatiel
>
>
> On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
> <salatiel.filho@gmail.com> wrote:
> > Thanks Neil !
> > []'s
> > Salatiel
> >
> >
> > On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
> >> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> >> wrote:
> >>
> >>> Hi guys, i will be building a few arrays very soon and i'd like to
> >>> test the badblock feature and the replaceable feature, but i haven`t
> >>> found where i can download the source of mdadm 1.3. Where can i get it
> >>> ?
> >>>
> >> You can't. 3.3 doesn't exist yet.
> >>
> >> However
> >> git clone git://neil.brown.name/mdadm
> >> cd mdadm
> >> make
> >>
> >> will get you code that supports bad blocks and replaceable devices.
> >>
> >> Alternately you can get a tar file at
> >>
> >> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
> >>
> >> NeilBrown
>
> Forgot to send a copy to the list:
>
>
> Now the question, how do i enable badblock list ?
> # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
Yes, I think that is right - does it work?
>
> I actually created also a new array
> # mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
> but how do i verify if badblock support was enabled ?
mdadm -E /dev/sdb3
should show
Bad Block Log : 512 entries available at offset xxx sectors
NeilBrown
> --
> 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] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-20 21:25 ` NeilBrown
@ 2012-11-25 13:30 ` Salatiel Filho
2012-11-27 0:13 ` NeilBrown
0 siblings, 1 reply; 10+ messages in thread
From: Salatiel Filho @ 2012-11-25 13:30 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
On Tue, Nov 20, 2012 at 6:25 PM, NeilBrown <neilb@suse.de> wrote:
>
> On Tue, 20 Nov 2012 14:00:35 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> wrote:
>
> > []'s
> > Salatiel
> >
> >
> > On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
> > <salatiel.filho@gmail.com> wrote:
> > > Thanks Neil !
> > > []'s
> > > Salatiel
> > >
> > >
> > > On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
> > >> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> > >> wrote:
> > >>
> > >>> Hi guys, i will be building a few arrays very soon and i'd like to
> > >>> test the badblock feature and the replaceable feature, but i haven`t
> > >>> found where i can download the source of mdadm 1.3. Where can i get it
> > >>> ?
> > >>>
> > >> You can't. 3.3 doesn't exist yet.
> > >>
> > >> However
> > >> git clone git://neil.brown.name/mdadm
> > >> cd mdadm
> > >> make
> > >>
> > >> will get you code that supports bad blocks and replaceable devices.
> > >>
> > >> Alternately you can get a tar file at
> > >>
> > >> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
> > >>
> > >> NeilBrown
> >
> > Forgot to send a copy to the list:
> >
> >
> > Now the question, how do i enable badblock list ?
> > # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
>
> Yes, I think that is right - does it work?
>
> >
> > I actually created also a new array
> > # mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
> > but how do i verify if badblock support was enabled ?
>
> mdadm -E /dev/sdb3
>
> should show
>
> Bad Block Log : 512 entries available at offset xxx sectors
>
> NeilBrown
>
> > --
> > 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
>
Well, about the tests:
I have put some data on a degraded raid 5 with 3 disks where one of
them has random read errors. After that i added a new disk and the
raid started to resync.
After 62.5% i started getting read errors on /dev/sdd2 and the array
stopped to resync.
1) Shouldn`t badblocks be ignored to allow the recover of most data?
I can see in mdadm -E /dev/sdd2 Bad Block Log : 512 entries
available at offset 262128 sectors - bad blocks present.
2) After stop the array and try to reassembled with mdadm -A
/dev/md1 /dev/sd[bcde]2 --force i got the following message:
mdadm -A /dev/md1 /dev/sd[bcde]2 --force
mdadm: forcing event count in /dev/sdb2(0) from 87705 upto 87713
mdadm: forcing event count in /dev/sdc2(1) from 87705 upto 87713
mdadm: /dev/md1 has been started with 3 drives (out of 4).
and i noticed that sde2 was not added to the array.
# mdadm -D /dev/md1
/dev/md1:
Version : 1.2
Creation Time : Tue Nov 20 08:43:35 2012
Raid Level : raid5
Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
Used Dev Size : 1306106880 (1245.60 GiB 1337.45 GB)
Raid Devices : 4
Total Devices : 3
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Sun Nov 25 10:04:06 2012
State : active, degraded
Active Devices : 3
Working Devices : 3
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Name : zotac:1 (local to host zotac)
UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
Events : 87713
Number Major Minor RaidDevice State
0 8 18 0 active sync /dev/sdb2
1 8 34 1 active sync /dev/sdc2
2 8 50 2 active sync /dev/sdd2
6 0 0 6 removed
After add it manually , mdadm -a /dev/md1 /dev/sde2
the rebuild started from the beginning, ignoring the recovery offset:
# mdadm -E /dev/sde2
/dev/sde2:
Magic : a92b4efc
Version : 1.2
Feature Map : 0xb
Array UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
Name : zotac:1 (local to host zotac)
Creation Time : Tue Nov 20 08:43:35 2012
Raid Level : raid5
Raid Devices : 4
Avail Dev Size : 3592190757 (1712.89 GiB 1839.20 GB)
Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
Used Dev Size : 2612213760 (1245.60 GiB 1337.45 GB)
Data Offset : 262144 sectors
Super Offset : 8 sectors
Recovery Offset : 1634547480 sectors
State : clean
Device UUID : 08019409:984c2217:21706201:039b6bbf
Internal Bitmap : 8 sectors from superblock
Update Time : Sun Nov 25 10:04:06 2012
Bad Block Log : 512 entries available at offset 262128 sectors
Checksum : bd6c4947 - correct
Events : 87705
Layout : left-symmetric
Chunk Size : 512K
Device Role : Active device 3
Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
3) What's the correct procedure that allows me recover most of the
data, ignoring the readerrors ?
4) I know that sdd2 has read errors at sectors 1634863440 -
1634863800, if i write zero directly to those sectors using 'dd' , how
will raid behave during rebuild? After a write it will probably be
able to read it again (i dont care about the data on those sectors) .
5) Right now i am not using replaceable option , but where replaceable
option could help me here ?
Thanks !
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-25 13:30 ` Salatiel Filho
@ 2012-11-27 0:13 ` NeilBrown
2012-12-04 13:59 ` Salatiel Filho
0 siblings, 1 reply; 10+ messages in thread
From: NeilBrown @ 2012-11-27 0:13 UTC (permalink / raw)
To: Salatiel Filho; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 6366 bytes --]
On Sun, 25 Nov 2012 10:30:10 -0300 Salatiel Filho <salatiel.filho@gmail.com>
wrote:
> On Tue, Nov 20, 2012 at 6:25 PM, NeilBrown <neilb@suse.de> wrote:
> >
> > On Tue, 20 Nov 2012 14:00:35 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> > wrote:
> >
> > > []'s
> > > Salatiel
> > >
> > >
> > > On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
> > > <salatiel.filho@gmail.com> wrote:
> > > > Thanks Neil !
> > > > []'s
> > > > Salatiel
> > > >
> > > >
> > > > On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
> > > >> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> > > >> wrote:
> > > >>
> > > >>> Hi guys, i will be building a few arrays very soon and i'd like to
> > > >>> test the badblock feature and the replaceable feature, but i haven`t
> > > >>> found where i can download the source of mdadm 1.3. Where can i get it
> > > >>> ?
> > > >>>
> > > >> You can't. 3.3 doesn't exist yet.
> > > >>
> > > >> However
> > > >> git clone git://neil.brown.name/mdadm
> > > >> cd mdadm
> > > >> make
> > > >>
> > > >> will get you code that supports bad blocks and replaceable devices.
> > > >>
> > > >> Alternately you can get a tar file at
> > > >>
> > > >> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
> > > >>
> > > >> NeilBrown
> > >
> > > Forgot to send a copy to the list:
> > >
> > >
> > > Now the question, how do i enable badblock list ?
> > > # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
> >
> > Yes, I think that is right - does it work?
> >
> > >
> > > I actually created also a new array
> > > # mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
> > > but how do i verify if badblock support was enabled ?
> >
> > mdadm -E /dev/sdb3
> >
> > should show
> >
> > Bad Block Log : 512 entries available at offset xxx sectors
> >
> > NeilBrown
> >
> > > --
> > > 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
> >
>
>
> Well, about the tests:
> I have put some data on a degraded raid 5 with 3 disks where one of
> them has random read errors. After that i added a new disk and the
> raid started to resync.
> After 62.5% i started getting read errors on /dev/sdd2 and the array
> stopped to resync.
Any useful messages from the kernel log?
>
> 1) Shouldn`t badblocks be ignored to allow the recover of most data?
> I can see in mdadm -E /dev/sdd2 Bad Block Log : 512 entries
> available at offset 262128 sectors - bad blocks present.
That's the theory. And bad blocks found should be recorded on both sdd2 and
the new device.
>
> 2) After stop the array and try to reassembled with mdadm -A
> /dev/md1 /dev/sd[bcde]2 --force i got the following message:
> mdadm -A /dev/md1 /dev/sd[bcde]2 --force
> mdadm: forcing event count in /dev/sdb2(0) from 87705 upto 87713
> mdadm: forcing event count in /dev/sdc2(1) from 87705 upto 87713
> mdadm: /dev/md1 has been started with 3 drives (out of 4).
That doesn't look good. Again, complete kernel messages might help.
>
> and i noticed that sde2 was not added to the array.
>
> # mdadm -D /dev/md1
> /dev/md1:
> Version : 1.2
> Creation Time : Tue Nov 20 08:43:35 2012
> Raid Level : raid5
> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
> Used Dev Size : 1306106880 (1245.60 GiB 1337.45 GB)
> Raid Devices : 4
> Total Devices : 3
> Persistence : Superblock is persistent
>
> Intent Bitmap : Internal
>
> Update Time : Sun Nov 25 10:04:06 2012
> State : active, degraded
> Active Devices : 3
> Working Devices : 3
> Failed Devices : 0
> Spare Devices : 0
>
> Layout : left-symmetric
> Chunk Size : 512K
>
> Name : zotac:1 (local to host zotac)
> UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
> Events : 87713
>
> Number Major Minor RaidDevice State
> 0 8 18 0 active sync /dev/sdb2
> 1 8 34 1 active sync /dev/sdc2
> 2 8 50 2 active sync /dev/sdd2
> 6 0 0 6 removed
>
>
> After add it manually , mdadm -a /dev/md1 /dev/sde2
> the rebuild started from the beginning, ignoring the recovery offset:
That would be because the 'Events' number is too old so the 'recovery offset'
is suspect.
>
> # mdadm -E /dev/sde2
> /dev/sde2:
> Magic : a92b4efc
> Version : 1.2
> Feature Map : 0xb
> Array UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
> Name : zotac:1 (local to host zotac)
> Creation Time : Tue Nov 20 08:43:35 2012
> Raid Level : raid5
> Raid Devices : 4
>
> Avail Dev Size : 3592190757 (1712.89 GiB 1839.20 GB)
> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
> Used Dev Size : 2612213760 (1245.60 GiB 1337.45 GB)
> Data Offset : 262144 sectors
> Super Offset : 8 sectors
> Recovery Offset : 1634547480 sectors
> State : clean
> Device UUID : 08019409:984c2217:21706201:039b6bbf
>
> Internal Bitmap : 8 sectors from superblock
> Update Time : Sun Nov 25 10:04:06 2012
> Bad Block Log : 512 entries available at offset 262128 sectors
> Checksum : bd6c4947 - correct
> Events : 87705
>
> Layout : left-symmetric
> Chunk Size : 512K
>
> Device Role : Active device 3
> Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
>
>
>
> 3) What's the correct procedure that allows me recover most of the
> data, ignoring the readerrors ?
>
> 4) I know that sdd2 has read errors at sectors 1634863440 -
> 1634863800, if i write zero directly to those sectors using 'dd' , how
> will raid behave during rebuild? After a write it will probably be
> able to read it again (i dont care about the data on those sectors) .
If it can read, it will, and will write to the new device.
>
> 5) Right now i am not using replaceable option , but where replaceable
> option could help me here ?
I don't think 'replaceable' is particularly relevant here.
NeilBrown
>
>
> Thanks !
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-11-27 0:13 ` NeilBrown
@ 2012-12-04 13:59 ` Salatiel Filho
2012-12-04 21:27 ` NeilBrown
0 siblings, 1 reply; 10+ messages in thread
From: Salatiel Filho @ 2012-12-04 13:59 UTC (permalink / raw)
To: NeilBrown; +Cc: linux-raid
On Mon, Nov 26, 2012 at 9:13 PM, NeilBrown <neilb@suse.de> wrote:
> On Sun, 25 Nov 2012 10:30:10 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> wrote:
>
>> On Tue, Nov 20, 2012 at 6:25 PM, NeilBrown <neilb@suse.de> wrote:
>> >
>> > On Tue, 20 Nov 2012 14:00:35 -0300 Salatiel Filho <salatiel.filho@gmail.com>
>> > wrote:
>> >
>> > > []'s
>> > > Salatiel
>> > >
>> > >
>> > > On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
>> > > <salatiel.filho@gmail.com> wrote:
>> > > > Thanks Neil !
>> > > > []'s
>> > > > Salatiel
>> > > >
>> > > >
>> > > > On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
>> > > >> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
>> > > >> wrote:
>> > > >>
>> > > >>> Hi guys, i will be building a few arrays very soon and i'd like to
>> > > >>> test the badblock feature and the replaceable feature, but i haven`t
>> > > >>> found where i can download the source of mdadm 1.3. Where can i get it
>> > > >>> ?
>> > > >>>
>> > > >> You can't. 3.3 doesn't exist yet.
>> > > >>
>> > > >> However
>> > > >> git clone git://neil.brown.name/mdadm
>> > > >> cd mdadm
>> > > >> make
>> > > >>
>> > > >> will get you code that supports bad blocks and replaceable devices.
>> > > >>
>> > > >> Alternately you can get a tar file at
>> > > >>
>> > > >> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
>> > > >>
>> > > >> NeilBrown
>> > >
>> > > Forgot to send a copy to the list:
>> > >
>> > >
>> > > Now the question, how do i enable badblock list ?
>> > > # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
>> >
>> > Yes, I think that is right - does it work?
>> >
>> > >
>> > > I actually created also a new array
>> > > # mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
>> > > but how do i verify if badblock support was enabled ?
>> >
>> > mdadm -E /dev/sdb3
>> >
>> > should show
>> >
>> > Bad Block Log : 512 entries available at offset xxx sectors
>> >
>> > NeilBrown
>> >
>> > > --
>> > > 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
>> >
>>
>>
>> Well, about the tests:
>> I have put some data on a degraded raid 5 with 3 disks where one of
>> them has random read errors. After that i added a new disk and the
>> raid started to resync.
>> After 62.5% i started getting read errors on /dev/sdd2 and the array
>> stopped to resync.
>
> Any useful messages from the kernel log?
>
>>
>> 1) Shouldn`t badblocks be ignored to allow the recover of most data?
>> I can see in mdadm -E /dev/sdd2 Bad Block Log : 512 entries
>> available at offset 262128 sectors - bad blocks present.
>
> That's the theory. And bad blocks found should be recorded on both sdd2 and
> the new device.
>
>>
>> 2) After stop the array and try to reassembled with mdadm -A
>> /dev/md1 /dev/sd[bcde]2 --force i got the following message:
>> mdadm -A /dev/md1 /dev/sd[bcde]2 --force
>> mdadm: forcing event count in /dev/sdb2(0) from 87705 upto 87713
>> mdadm: forcing event count in /dev/sdc2(1) from 87705 upto 87713
>> mdadm: /dev/md1 has been started with 3 drives (out of 4).
>
> That doesn't look good. Again, complete kernel messages might help.
>
>>
>> and i noticed that sde2 was not added to the array.
>>
>> # mdadm -D /dev/md1
>> /dev/md1:
>> Version : 1.2
>> Creation Time : Tue Nov 20 08:43:35 2012
>> Raid Level : raid5
>> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
>> Used Dev Size : 1306106880 (1245.60 GiB 1337.45 GB)
>> Raid Devices : 4
>> Total Devices : 3
>> Persistence : Superblock is persistent
>>
>> Intent Bitmap : Internal
>>
>> Update Time : Sun Nov 25 10:04:06 2012
>> State : active, degraded
>> Active Devices : 3
>> Working Devices : 3
>> Failed Devices : 0
>> Spare Devices : 0
>>
>> Layout : left-symmetric
>> Chunk Size : 512K
>>
>> Name : zotac:1 (local to host zotac)
>> UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
>> Events : 87713
>>
>> Number Major Minor RaidDevice State
>> 0 8 18 0 active sync /dev/sdb2
>> 1 8 34 1 active sync /dev/sdc2
>> 2 8 50 2 active sync /dev/sdd2
>> 6 0 0 6 removed
>>
>>
>> After add it manually , mdadm -a /dev/md1 /dev/sde2
>> the rebuild started from the beginning, ignoring the recovery offset:
>
> That would be because the 'Events' number is too old so the 'recovery offset'
> is suspect.
>
>
>>
>> # mdadm -E /dev/sde2
>> /dev/sde2:
>> Magic : a92b4efc
>> Version : 1.2
>> Feature Map : 0xb
>> Array UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
>> Name : zotac:1 (local to host zotac)
>> Creation Time : Tue Nov 20 08:43:35 2012
>> Raid Level : raid5
>> Raid Devices : 4
>>
>> Avail Dev Size : 3592190757 (1712.89 GiB 1839.20 GB)
>> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
>> Used Dev Size : 2612213760 (1245.60 GiB 1337.45 GB)
>> Data Offset : 262144 sectors
>> Super Offset : 8 sectors
>> Recovery Offset : 1634547480 sectors
>> State : clean
>> Device UUID : 08019409:984c2217:21706201:039b6bbf
>>
>> Internal Bitmap : 8 sectors from superblock
>> Update Time : Sun Nov 25 10:04:06 2012
>> Bad Block Log : 512 entries available at offset 262128 sectors
>> Checksum : bd6c4947 - correct
>> Events : 87705
>>
>> Layout : left-symmetric
>> Chunk Size : 512K
>>
>> Device Role : Active device 3
>> Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
>>
>>
>>
>> 3) What's the correct procedure that allows me recover most of the
>> data, ignoring the readerrors ?
>>
>> 4) I know that sdd2 has read errors at sectors 1634863440 -
>> 1634863800, if i write zero directly to those sectors using 'dd' , how
>> will raid behave during rebuild? After a write it will probably be
>> able to read it again (i dont care about the data on those sectors) .
>
> If it can read, it will, and will write to the new device.
>
>>
>> 5) Right now i am not using replaceable option , but where replaceable
>> option could help me here ?
>
> I don't think 'replaceable' is particularly relevant here.
>
> NeilBrown
>
>
>>
>>
>> Thanks !
>
I am still doing some tests and i will report back.
btw, is there anyway to see how many badblock the disk has ? I can see
only the 'bad blocks present.' , but not how many.
[]'s
Salatiel
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Where can i download mdadm 3.3
2012-12-04 13:59 ` Salatiel Filho
@ 2012-12-04 21:27 ` NeilBrown
0 siblings, 0 replies; 10+ messages in thread
From: NeilBrown @ 2012-12-04 21:27 UTC (permalink / raw)
To: Salatiel Filho; +Cc: linux-raid
[-- Attachment #1: Type: text/plain, Size: 7536 bytes --]
On Tue, 4 Dec 2012 10:59:53 -0300 Salatiel Filho <salatiel.filho@gmail.com>
wrote:
> On Mon, Nov 26, 2012 at 9:13 PM, NeilBrown <neilb@suse.de> wrote:
> > On Sun, 25 Nov 2012 10:30:10 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> > wrote:
> >
> >> On Tue, Nov 20, 2012 at 6:25 PM, NeilBrown <neilb@suse.de> wrote:
> >> >
> >> > On Tue, 20 Nov 2012 14:00:35 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> >> > wrote:
> >> >
> >> > > []'s
> >> > > Salatiel
> >> > >
> >> > >
> >> > > On Tue, Nov 20, 2012 at 8:02 AM, Salatiel Filho
> >> > > <salatiel.filho@gmail.com> wrote:
> >> > > > Thanks Neil !
> >> > > > []'s
> >> > > > Salatiel
> >> > > >
> >> > > >
> >> > > > On Mon, Nov 19, 2012 at 10:26 PM, NeilBrown <neilb@suse.de> wrote:
> >> > > >> On Sun, 18 Nov 2012 10:42:22 -0300 Salatiel Filho <salatiel.filho@gmail.com>
> >> > > >> wrote:
> >> > > >>
> >> > > >>> Hi guys, i will be building a few arrays very soon and i'd like to
> >> > > >>> test the badblock feature and the replaceable feature, but i haven`t
> >> > > >>> found where i can download the source of mdadm 1.3. Where can i get it
> >> > > >>> ?
> >> > > >>>
> >> > > >> You can't. 3.3 doesn't exist yet.
> >> > > >>
> >> > > >> However
> >> > > >> git clone git://neil.brown.name/mdadm
> >> > > >> cd mdadm
> >> > > >> make
> >> > > >>
> >> > > >> will get you code that supports bad blocks and replaceable devices.
> >> > > >>
> >> > > >> Alternately you can get a tar file at
> >> > > >>
> >> > > >> http://git.neil.brown.name/git?p=mdadm.git;a=snapshot;h=master
> >> > > >>
> >> > > >> NeilBrown
> >> > >
> >> > > Forgot to send a copy to the list:
> >> > >
> >> > >
> >> > > Now the question, how do i enable badblock list ?
> >> > > # mdadm -A /dev/md1 /dev/sd[bcd]2 --update=bbl ?
> >> >
> >> > Yes, I think that is right - does it work?
> >> >
> >> > >
> >> > > I actually created also a new array
> >> > > # mdadm -C -n4 -l5 -e 1.2 /dev/md2 /dev/sd[bcde]3 ,
> >> > > but how do i verify if badblock support was enabled ?
> >> >
> >> > mdadm -E /dev/sdb3
> >> >
> >> > should show
> >> >
> >> > Bad Block Log : 512 entries available at offset xxx sectors
> >> >
> >> > NeilBrown
> >> >
> >> > > --
> >> > > 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
> >> >
> >>
> >>
> >> Well, about the tests:
> >> I have put some data on a degraded raid 5 with 3 disks where one of
> >> them has random read errors. After that i added a new disk and the
> >> raid started to resync.
> >> After 62.5% i started getting read errors on /dev/sdd2 and the array
> >> stopped to resync.
> >
> > Any useful messages from the kernel log?
> >
> >>
> >> 1) Shouldn`t badblocks be ignored to allow the recover of most data?
> >> I can see in mdadm -E /dev/sdd2 Bad Block Log : 512 entries
> >> available at offset 262128 sectors - bad blocks present.
> >
> > That's the theory. And bad blocks found should be recorded on both sdd2 and
> > the new device.
> >
> >>
> >> 2) After stop the array and try to reassembled with mdadm -A
> >> /dev/md1 /dev/sd[bcde]2 --force i got the following message:
> >> mdadm -A /dev/md1 /dev/sd[bcde]2 --force
> >> mdadm: forcing event count in /dev/sdb2(0) from 87705 upto 87713
> >> mdadm: forcing event count in /dev/sdc2(1) from 87705 upto 87713
> >> mdadm: /dev/md1 has been started with 3 drives (out of 4).
> >
> > That doesn't look good. Again, complete kernel messages might help.
> >
> >>
> >> and i noticed that sde2 was not added to the array.
> >>
> >> # mdadm -D /dev/md1
> >> /dev/md1:
> >> Version : 1.2
> >> Creation Time : Tue Nov 20 08:43:35 2012
> >> Raid Level : raid5
> >> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
> >> Used Dev Size : 1306106880 (1245.60 GiB 1337.45 GB)
> >> Raid Devices : 4
> >> Total Devices : 3
> >> Persistence : Superblock is persistent
> >>
> >> Intent Bitmap : Internal
> >>
> >> Update Time : Sun Nov 25 10:04:06 2012
> >> State : active, degraded
> >> Active Devices : 3
> >> Working Devices : 3
> >> Failed Devices : 0
> >> Spare Devices : 0
> >>
> >> Layout : left-symmetric
> >> Chunk Size : 512K
> >>
> >> Name : zotac:1 (local to host zotac)
> >> UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
> >> Events : 87713
> >>
> >> Number Major Minor RaidDevice State
> >> 0 8 18 0 active sync /dev/sdb2
> >> 1 8 34 1 active sync /dev/sdc2
> >> 2 8 50 2 active sync /dev/sdd2
> >> 6 0 0 6 removed
> >>
> >>
> >> After add it manually , mdadm -a /dev/md1 /dev/sde2
> >> the rebuild started from the beginning, ignoring the recovery offset:
> >
> > That would be because the 'Events' number is too old so the 'recovery offset'
> > is suspect.
> >
> >
> >>
> >> # mdadm -E /dev/sde2
> >> /dev/sde2:
> >> Magic : a92b4efc
> >> Version : 1.2
> >> Feature Map : 0xb
> >> Array UUID : 93e55a39:94681b9d:4c0a1a15:cad51a71
> >> Name : zotac:1 (local to host zotac)
> >> Creation Time : Tue Nov 20 08:43:35 2012
> >> Raid Level : raid5
> >> Raid Devices : 4
> >>
> >> Avail Dev Size : 3592190757 (1712.89 GiB 1839.20 GB)
> >> Array Size : 3918320640 (3736.80 GiB 4012.36 GB)
> >> Used Dev Size : 2612213760 (1245.60 GiB 1337.45 GB)
> >> Data Offset : 262144 sectors
> >> Super Offset : 8 sectors
> >> Recovery Offset : 1634547480 sectors
> >> State : clean
> >> Device UUID : 08019409:984c2217:21706201:039b6bbf
> >>
> >> Internal Bitmap : 8 sectors from superblock
> >> Update Time : Sun Nov 25 10:04:06 2012
> >> Bad Block Log : 512 entries available at offset 262128 sectors
> >> Checksum : bd6c4947 - correct
> >> Events : 87705
> >>
> >> Layout : left-symmetric
> >> Chunk Size : 512K
> >>
> >> Device Role : Active device 3
> >> Array State : AAAA ('A' == active, '.' == missing, 'R' == replacing)
> >>
> >>
> >>
> >> 3) What's the correct procedure that allows me recover most of the
> >> data, ignoring the readerrors ?
> >>
> >> 4) I know that sdd2 has read errors at sectors 1634863440 -
> >> 1634863800, if i write zero directly to those sectors using 'dd' , how
> >> will raid behave during rebuild? After a write it will probably be
> >> able to read it again (i dont care about the data on those sectors) .
> >
> > If it can read, it will, and will write to the new device.
> >
> >>
> >> 5) Right now i am not using replaceable option , but where replaceable
> >> option could help me here ?
> >
> > I don't think 'replaceable' is particularly relevant here.
> >
> > NeilBrown
> >
> >
> >>
> >>
> >> Thanks !
> >
>
> I am still doing some tests and i will report back.
> btw, is there anyway to see how many badblock the disk has ? I can see
> only the 'bad blocks present.' , but not how many.
When the array is active you can look in /sys/block/mdXX/md/dev-YYY/badblocks
It will list them all.
Currently mdadm doesn't extract this information. I should probably add an
--examine-badblocks
option to list them.
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-12-04 21:27 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-18 13:42 Where can i download mdadm 3.3 Salatiel Filho
2012-11-20 1:26 ` NeilBrown
2012-11-20 11:02 ` Salatiel Filho
2012-11-20 17:00 ` Salatiel Filho
2012-11-20 21:25 ` NeilBrown
2012-11-25 13:30 ` Salatiel Filho
2012-11-27 0:13 ` NeilBrown
2012-12-04 13:59 ` Salatiel Filho
2012-12-04 21:27 ` NeilBrown
[not found] ` <CAGmni9rKhsTS5hoBo2dFkcksyikS-STmPqagQhbsVC=CiB=54g@mail.gmail.com>
[not found] ` <20121121071529.1d6bea7b@notabene.brown>
2012-11-20 21:24 ` 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).