<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hi,<br><br>Been playing with the patches you gave me. And I finally got the raid up and running, using the shipped dm-raid.ko module in the 3.2 kernel.<br><br>Lets go through the steps.<br><br>I have applied the dmraid_pdc_raid5.patch, this caused dmraid to produce a new error related to the missing dm-raid45 module. Before activating a new raid set  dmraid checks if a dm-target has been registered with device-mapper. This can be changed through a struct in metadata.c. Doing this accordingly only left me with the error of raid array not activated. Going through the dmesg I found that dmraid was giving a wrong raid type to the dm-raid module. Digging deeper I wound that the arguments given to dm-raid45 and dm-raid have a different structure. So I have changed the arguments structure send to the module accordingly.<br><br>$ dmraid -ay -t<br>pdc_ciihdaafgf: 0 1953124864 raid raid5_la 2 128 nosync 3 - /dev/sdb - /dev/sdc - /dev/sdd<br><br>this used to be something like (I forgot some numbers)<br>$ dmraid -ay -t<br>
pdc_ciihdaafgf: 0 1953124864 raid core 2 132016 nosync raid5_la 1 128 3 -1 /dev/sdb 0 /dev/sdc 0 /dev/sdd 0<br><br>The patch has been attached. (see that I have made some typo's in naming the patch.)<br>
<br>Now I can activate the raid and by using kpartx I can also mount the partitions on the raid. Whoot.<br><br>Unfortunately the fix was a bit dirty, could be that I have broken dmraid for the other raid types. Also I am not sure if you need to send the region_size to the dm-raid module.<br><br>Regards,<br><br>Mark-Willem<br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Tue, 3 Apr 2012 11:13:20 +0400<br>From: astarta@rat.ru<br>To: markwillem@hotmail.com<br>CC: ataraid-list@redhat.com<br>Subject: Re: Howto: implement AMD SB9xx RAID5 support in dmraid<br><br>
  
<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
    
  
  
    Hello,<br>
    <br>
    I do have dm-raid45 patch for 3.2. <br>
    I do not remember where it was taken from, but it compiles with 3.2
    :-)<br>
    <br>
    <br>
    On 04/03/2012 11:13 AM, Mark-Willem Jansen wrote:
    <blockquote cite="mid:SNT145-W71765812B1F7666C07EA91CC4D0@phx.gbl">
      <style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
      <div dir="ltr">
        Hello,<br>
        <br>
        Later this day I will apply the patch. But patching the kernel
        will be more cumbersome. The <br>
        present kernel running om my system is 3.2.0 and the patches
        found on the web are for <br>
        older kernels. But maybe the module dm-raid.ko included in the
        kernel can be helpful.<br>
        <br>
        Regards,<br>
        <br>
        Mark-Willem<br>
        <br>
        <div>> Date: Mon, 2 Apr 2012 17:42:12 +0400<br>
          > From: <a class="ecxmoz-txt-link-abbreviated" href="mailto:astarta@rat.ru">astarta@rat.ru</a><br>
          > To: <a class="ecxmoz-txt-link-abbreviated" href="mailto:markwillem@hotmail.com">markwillem@hotmail.com</a><br>
          > CC: <a class="ecxmoz-txt-link-abbreviated" href="mailto:psusi@ubuntu.com">psusi@ubuntu.com</a><br>
          > Subject: Re: Howto: implement AMD SB9xx RAID5 support in
          dmraid<br>
          > <br>
          > hello,<br>
          > <br>
          > You may try the attached patch to support RAID5 in pdc
          dmraid format. It <br>
          > works OK for me.<br>
          > Be sure to patch the kernel itself to support dm-raid45
          target.<br>
          > <br>
          > <br>
          > On 04/02/2012 02:59 AM, Phillip Susi wrote:<br>
          > > -----BEGIN PGP SIGNED MESSAGE-----<br>
          > > Hash: SHA1<br>
          > ><br>
          > > On 04/01/2012 04:21 PM, Mark-Willem Jansen wrote:<br>
          > >> ERROR: pdc: zero sectors on /dev/sdd<br>
          > >> ERROR: pdc: setting up RAID device /dev/sdd<br>
          > > It looks like sectors() in pdc.c is missing the case
          for computing the size of a RAID5. For that matter, there
          appears to be no #define for PDC_T_RAID5, so you will need to
          add one and add it to the mapping table in type() and fix
          sectors() to handle it and probably a few other things.<br>
          > ><br>
          > ><br>
          > > -----BEGIN PGP SIGNATURE-----<br>
          > > Version: GnuPG v1.4.11 (GNU/Linux)<br>
          > > Comment: Using GnuPG with Mozilla -
          <a class="ecxmoz-txt-link-freetext" href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>
          > ><br>
          > >
          iQEcBAEBAgAGBQJPeN2yAAoJEJrBOlT6nu75NFQIANRt6f4STTvdEV+lYbsT8OL3<br>
          > >
          l22ZRVt9ReIAu7CJzRjx0yfaYAUo6Zy8fwzOjt9eF4fPYVQvnn53SYQu/qtyv2DZ<br>
          > >
          rDyv7owpxwcqQsZIYvBzQvWjEVT2s6VJrVtOVnZ2G1awa1SwIoc9LPnmouOeKhQG<br>
          > >
          auYL+O1UqfQEroJDsnOkZ8srrgc/m2zN3AxID4ps0FymQyNgy2s+HhBlsI4LeUNK<br>
          > >
          GimqJMwfbvaMlk0u8botcm2aMwogq+ap1GhJYddnRMluS6U4UJnS7NYrZYtww/1m<br>
          > >
          3WJWkX9hsYxo+QBA0qassg3zc/efzkC8pBBvDo7FLNGcXs2txi7dXmNXLferwFo=<br>
          > > =o0zP<br>
          > > -----END PGP SIGNATURE-----<br>
          > ><br>
          > > _______________________________________________<br>
          > > Ataraid-list mailing list<br>
          > > <a class="ecxmoz-txt-link-abbreviated" href="mailto:Ataraid-list@redhat.com">Ataraid-list@redhat.com</a><br>
          > > <a class="ecxmoz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/ataraid-list" target="_blank">https://www.redhat.com/mailman/listinfo/ataraid-list</a><br>
          > <br>
          > <br>
          > -- <br>
          > Ñ óâàæåíèåì,<br>
          > Astarta<br>
          > Àäìèíèñòðàòîð Ôîðóìà "Êðûñèíûé Áóì"<br>
          > <a class="ecxmoz-txt-link-freetext" href="http://rat.ru/forum/index.php" target="_blank">http://rat.ru/forum/index.php</a><br>
          > <br>
          > “The Linux philosophy is 'Laugh in the face of danger'.<br>
          > Oops. Wrong One. 'Do it yourself'. Yes, that's it.”<br>
          > (c) Linus Torvalds.<br>
          > <br>
        </div>
      </div>
    </blockquote>
    <br>
    <br>
    <pre class="ecxmoz-signature">-- 
Ñ óâàæåíèåì,
Astarta
Àäìèíèñòðàòîð Ôîðóìà "Êðûñèíûé Áóì"
<a class="ecxmoz-txt-link-freetext" href="http://rat.ru/forum/index.php" target="_blank">http://rat.ru/forum/index.php</a>

“The Linux philosophy is 'Laugh in the face of danger'.
Oops. Wrong One. 'Do it yourself'. Yes, that's it.”
(c) Linus Torvalds. </pre></div>                                      </div></body>
</html>