* mdadm striped parity RAID with Advanced Format drives [not found] <201107211011.40151.polhallen@fuckaround.org> @ 2011-07-21 10:26 ` Stan Hoeppner 2011-07-21 10:27 ` Mikael Abrahamsson ` (2 more replies) 0 siblings, 3 replies; 13+ messages in thread From: Stan Hoeppner @ 2011-07-21 10:26 UTC (permalink / raw) To: Pol Hallen, linux-raid On 7/21/2011 3:11 AM, Pol Hallen wrote: > Hello and sorry if I write you in private.. No worries. I'm taking this back on list as others have more experience with this than me. > about 2Tb wd and 4Kb size, is there a howto to check and correct the size of > these disks? > > Can you tell me how? > Model Number: WDC WD20EARS-00MVWB0 1. Can one create a RAID5 from bare (partition-less) AF drives and avoid the read-modify-write problem? 2. Or is one required to assemble the array from properly aligned partitions created on each drive? Pol, *IF* the answer to #1 is yes, creating the array properly becomes easier. Simply create the array with raw device names and no partition numbers, for example, sd[a,b,c,d,e,f]. If you've already created partitions on the drives, wipe everything off all drives, including the partitions tables. If the answer to #1 is 'no', and to #2 is 'yes', then you need to follow the instructions posted by Erwan Leroux. -- Stan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 10:26 ` mdadm striped parity RAID with Advanced Format drives Stan Hoeppner @ 2011-07-21 10:27 ` Mikael Abrahamsson 2011-07-21 11:18 ` Stan Hoeppner 2011-07-21 10:46 ` Pol Hallen 2011-07-22 7:13 ` Luca Berra 2 siblings, 1 reply; 13+ messages in thread From: Mikael Abrahamsson @ 2011-07-21 10:27 UTC (permalink / raw) To: Stan Hoeppner; +Cc: Pol Hallen, linux-raid On Thu, 21 Jul 2011, Stan Hoeppner wrote: > 1. Can one create a RAID5 from bare (partition-less) AF drives and avoid > the read-modify-write problem? Yes, that's what I always do. > 2. Or is one required to assemble the array from properly aligned > partitions created on each drive? No. -- Mikael Abrahamsson email: swmike@swm.pp.se ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 10:27 ` Mikael Abrahamsson @ 2011-07-21 11:18 ` Stan Hoeppner 2011-07-21 11:23 ` Mikael Abrahamsson 2011-07-23 3:31 ` maurice 0 siblings, 2 replies; 13+ messages in thread From: Stan Hoeppner @ 2011-07-21 11:18 UTC (permalink / raw) To: Mikael Abrahamsson; +Cc: Pol Hallen, linux-raid On 7/21/2011 5:27 AM, Mikael Abrahamsson wrote: > On Thu, 21 Jul 2011, Stan Hoeppner wrote: > >> 1. Can one create a RAID5 from bare (partition-less) AF drives and >> avoid the read-modify-write problem? > > Yes, that's what I always do. Ok, good. >> 2. Or is one required to assemble the array from properly aligned >> partitions created on each drive? > > No. Great. Ok. Pol, keep in mind that all drives must be identical size when creating an array on raw disks. You said you're now working with 6 identical WD drives so this shouldn't be an issue. After you shutdown and delete the current array, wipe all existing partitions and partition tables from these drives before creating the raw disk array. Use: ~$ dd if=/dev/zero of=/dev/sdX bs=512 count=1 Do this once for each drive, replacing 'X' with the proper letter. Then create your new RAID5 array using sd[a,b,c,d,e,f]. Good luck. -- Stan ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 11:18 ` Stan Hoeppner @ 2011-07-21 11:23 ` Mikael Abrahamsson 2011-07-23 3:31 ` maurice 1 sibling, 0 replies; 13+ messages in thread From: Mikael Abrahamsson @ 2011-07-21 11:23 UTC (permalink / raw) To: Stan Hoeppner; +Cc: Pol Hallen, linux-raid On Thu, 21 Jul 2011, Stan Hoeppner wrote: > Ok. Pol, keep in mind that all drives must be identical size when > creating an array on raw disks. You said you're now working with 6 > identical WD drives so this shouldn't be an issue. They don't have to be identical size. It'll use the smallest component size and use that much data on all drives. I recommend to use superblock v1.2, which is default in later versions of mdadm. -- Mikael Abrahamsson email: swmike@swm.pp.se ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 11:18 ` Stan Hoeppner 2011-07-21 11:23 ` Mikael Abrahamsson @ 2011-07-23 3:31 ` maurice 2011-07-23 7:11 ` Michael Tokarev 1 sibling, 1 reply; 13+ messages in thread From: maurice @ 2011-07-23 3:31 UTC (permalink / raw) To: linux-raid On 7/21/2011 5:18 AM, Stan Hoeppner wrote: > ..Ok. Pol, keep in mind that all drives must be identical size when > creating an array on raw disks. That always makes me nervous. I have seen the case before where a drive has been "kicked out" and when you go to add it back, it is refused as "too small" Grown defects have shrunk the device. I find it is safer to make one big partition on each device, and make this a bit smaller than the device. -- Cheers, Maurice Hilarius eMail: /mhilarius@gmail.com/ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-23 3:31 ` maurice @ 2011-07-23 7:11 ` Michael Tokarev 2011-07-23 15:38 ` maurice 0 siblings, 1 reply; 13+ messages in thread From: Michael Tokarev @ 2011-07-23 7:11 UTC (permalink / raw) To: maurice; +Cc: linux-raid 23.07.2011 07:31, maurice wrote: > On 7/21/2011 5:18 AM, Stan Hoeppner wrote: >> ..Ok. Pol, keep in mind that all drives must be identical size when >> creating an array on raw disks. > That always makes me nervous. And this is not really correct statement. If you want to be sure, use --size=xxx argument when creating the array, and specify a size smaller than size of your drives. This way, you can avoid possible problems with drive size fluctuations and different size of a replacement drives from another manufacturer. Also, the "fluctuations" - i mean, several drives in the same batch may have slightly different size - will be masked out by mdadm itself, due to rounding to chunk size. Just use a few gigs less than your drive size is. Maybe the resulting size will be a nice power-of-two value, as well. > I have seen the case before where a drive has been "kicked out" and when > you go to add it back, it is refused as "too small" > Grown defects have shrunk the device. This CAN NOT HAPPEN. Drive never changes its size. Newly discovered defects gets remapped to _reserved_ space, not to a space taken from other data. If the drive runs out of reserved space (but you should replace it WAY before that), it will stop remapping sectors. > I find it is safer to make one big partition on each device, and make > this a bit smaller than the device. That works too, ofcourse. This way, it might be a bit easier to identify your drives too - for example, you can use GPT partition table there with proper labels for your partition. /mjt ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-23 7:11 ` Michael Tokarev @ 2011-07-23 15:38 ` maurice 2011-07-23 15:58 ` Mikael Abrahamsson 0 siblings, 1 reply; 13+ messages in thread From: maurice @ 2011-07-23 15:38 UTC (permalink / raw) Cc: linux-raid On 7/23/2011 1:11 AM, Michael Tokarev wrote: > .. >> I have seen the case before where a drive has been "kicked out" and when >> you go to add it back, it is refused as "too small" >> Grown defects have shrunk the device. > This CAN NOT HAPPEN. Drive never changes its size. If you say so. ;>} I have seen this exact issue happen at least twice.The arrays were originally built. After a failure they could not be rebuilt as one or more drives had become too small. If you have an explanation for that, I am all ears.. At that point it is a lot of work to recover as one needs to go and find a drive that is bigger , to facilitate the recovery. -- Cheers, Maurice Hilarius eMail: /mhilarius@gmail.com/ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-23 15:38 ` maurice @ 2011-07-23 15:58 ` Mikael Abrahamsson 2011-07-23 18:03 ` maurice 0 siblings, 1 reply; 13+ messages in thread From: Mikael Abrahamsson @ 2011-07-23 15:58 UTC (permalink / raw) To: maurice; +Cc: linux-raid On Sat, 23 Jul 2011, maurice wrote: >> This CAN NOT HAPPEN. Drive never changes its size. > > After a failure they could not be rebuilt as one or more drives had become > too small. I'd like to see text that indicates this. I agree with the original poster that this just doesn't happen. -- Mikael Abrahamsson email: swmike@swm.pp.se ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-23 15:58 ` Mikael Abrahamsson @ 2011-07-23 18:03 ` maurice 2011-07-25 8:41 ` Nikolay Kichukov 0 siblings, 1 reply; 13+ messages in thread From: maurice @ 2011-07-23 18:03 UTC (permalink / raw) To: Mikael Abrahamsson; +Cc: linux-raid On 7/23/2011 9:58 AM, Mikael Abrahamsson wrote: > .. > I'd like to see text that indicates this. I agree with the original > poster that this just doesn't happen. > I no longer have the details at hand, as I have fixed it, and it was about 8 months ago last time I saw it. -- Cheers, Maurice Hilarius eMail: /mhilarius@gmail.com/ ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-23 18:03 ` maurice @ 2011-07-25 8:41 ` Nikolay Kichukov 2011-07-25 18:57 ` Michael Tokarev 0 siblings, 1 reply; 13+ messages in thread From: Nikolay Kichukov @ 2011-07-25 8:41 UTC (permalink / raw) To: maurice; +Cc: Mikael Abrahamsson, linux-raid -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I can confirm this has happened to me once. The drive went just a bit smaller than it was originally. Unfortunately I have no evidence of this at this stage. It was real strange. Whatever I tried did not bring the same size back. It kept being reported as a few sectors less. Cheers, - -Nik On 07/23/2011 09:03 PM, maurice wrote: > On 7/23/2011 9:58 AM, Mikael Abrahamsson wrote: >> .. >> I'd like to see text that indicates this. I agree with the original poster that this just doesn't happen. >> > I no longer have the details at hand, as I have fixed it, and it was about 8 months ago last time I saw it. > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJOLSwjAAoJEDFLYVOGGjgXnB8IANbQH6knVjEWq9+Q5XOT0R6H blRSxD8p2Vby6Yoh6N9kzL2rYls5yeQlqaMCSmD4ojk7qL+A6yWDXpEPd02XJlsr E6MlaSZK3AQMMCcegnZQkmCSbshG8t/+plqNJLq9FO4h4rEQgoa6TuyJzSBhEWkT QNOLqSA/84prPuGTgr7fgf7OQGnB1GEPd5uu1jxWMwbSZ4bhIOikv5/XAgiHZGuJ ed9lRBTMIWfwtaMnLhrjIW6UgeyJQfIC0VFEao1/ze1+WeLReErKwGm7c0meHs4v NgZImsUQUZOFJRwzgoXy+fVxcBGtWCUlSIQSaGyRhfARyug+2Dk2e132jVZvSfY= =huL0 -----END PGP SIGNATURE----- ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-25 8:41 ` Nikolay Kichukov @ 2011-07-25 18:57 ` Michael Tokarev 0 siblings, 0 replies; 13+ messages in thread From: Michael Tokarev @ 2011-07-25 18:57 UTC (permalink / raw) To: Nikolay Kichukov; +Cc: maurice, Mikael Abrahamsson, linux-raid 25.07.2011 12:41, Nikolay Kichukov wrote: > I can confirm this has happened to me once. The drive went just a bit smaller than it was originally. Unfortunately I > have no evidence of this at this stage. It was real strange. Whatever I tried did not bring the same size back. It kept > being reported as a few sectors less. It's possible to get smaller size at one point, by enabling HPA area in a drive. I think all modern (desktop) drives support this feature. /mjt > Cheers, > -Nik > > On 07/23/2011 09:03 PM, maurice wrote: >> On 7/23/2011 9:58 AM, Mikael Abrahamsson wrote: >>> .. >>> I'd like to see text that indicates this. I agree with the original poster that this just doesn't happen. >>> >> I no longer have the details at hand, as I have fixed it, and it was about 8 months ago last time I saw it. > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 10:26 ` mdadm striped parity RAID with Advanced Format drives Stan Hoeppner 2011-07-21 10:27 ` Mikael Abrahamsson @ 2011-07-21 10:46 ` Pol Hallen 2011-07-22 7:13 ` Luca Berra 2 siblings, 0 replies; 13+ messages in thread From: Pol Hallen @ 2011-07-21 10:46 UTC (permalink / raw) To: Stan Hoeppner, linux-raid > Pol, *IF* the answer to #1 is yes, creating the array properly becomes > easier. Simply create the array with raw device names and no partition > numbers, for example, sd[a,b,c,d,e,f]. If you've already created > partitions on the drives, wipe everything off all drives, including the > partitions tables. > If the answer to #1 is 'no', and to #2 is 'yes', then you need to follow > the instructions posted by Erwan Leroux. Thanks for your courtesy :-) tonight I disasseble whole raid and check again disks, next I'll create a raid and will do performance test, that I'll post to list. Thanks again :-) Pol ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: mdadm striped parity RAID with Advanced Format drives 2011-07-21 10:26 ` mdadm striped parity RAID with Advanced Format drives Stan Hoeppner 2011-07-21 10:27 ` Mikael Abrahamsson 2011-07-21 10:46 ` Pol Hallen @ 2011-07-22 7:13 ` Luca Berra 2 siblings, 0 replies; 13+ messages in thread From: Luca Berra @ 2011-07-22 7:13 UTC (permalink / raw) To: linux-raid On Thu, Jul 21, 2011 at 05:26:22AM -0500, Stan Hoeppner wrote: >On 7/21/2011 3:11 AM, Pol Hallen wrote: >> Hello and sorry if I write you in private.. > >No worries. I'm taking this back on list as others have more experience >with this than me. > >> about 2Tb wd and 4Kb size, is there a howto to check and correct the size of >> these disks? >> >> Can you tell me how? > >> Model Number: WDC WD20EARS-00MVWB0 > >1. Can one create a RAID5 from bare (partition-less) AF drives and avoid >the read-modify-write problem? until someone proves me wrong i believe 0 is divisible both by 512 and 4096. L. -- Luca Berra -- bluca@comedia.it ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2011-07-25 18:57 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <201107211011.40151.polhallen@fuckaround.org>
2011-07-21 10:26 ` mdadm striped parity RAID with Advanced Format drives Stan Hoeppner
2011-07-21 10:27 ` Mikael Abrahamsson
2011-07-21 11:18 ` Stan Hoeppner
2011-07-21 11:23 ` Mikael Abrahamsson
2011-07-23 3:31 ` maurice
2011-07-23 7:11 ` Michael Tokarev
2011-07-23 15:38 ` maurice
2011-07-23 15:58 ` Mikael Abrahamsson
2011-07-23 18:03 ` maurice
2011-07-25 8:41 ` Nikolay Kichukov
2011-07-25 18:57 ` Michael Tokarev
2011-07-21 10:46 ` Pol Hallen
2011-07-22 7:13 ` Luca Berra
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox