<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'>
Hello Phillip (and other people in this list),<br><br>Here are some outputs of dmraid that may help you understand the situation.<br><br>$ dmraid -ay -vvv -d<br>WARN: locking /var/lock/dmraid/.lock<br>NOTICE: /dev/sdd: asr     discovering<br>NOTICE: /dev/sdd: ddf1    discovering<br>NOTICE: /dev/sdd: hpt37x  discovering<br>NOTICE: /dev/sdd: hpt45x  discovering<br>NOTICE: /dev/sdd: isw     discovering<br>DEBUG: not isw at 500107860992<br>DEBUG: isw trying hard coded -2115 offset.<br>DEBUG: not isw at 500106779136<br>NOTICE: /dev/sdd: jmicron discovering<br>NOTICE: /dev/sdd: lsi     discovering<br>NOTICE: /dev/sdd: nvidia  discovering<br>NOTICE: /dev/sdd: pdc     discovering<br>ERROR: pdc: zero sectors on /dev/sdd<br>ERROR: pdc: setting up RAID device /dev/sdd<br>NOTICE: /dev/sdd: sil     discovering<br>NOTICE: /dev/sdd: via     discovering<br>NOTICE: /dev/sdc: asr     discovering<br>NOTICE: /dev/sdc: ddf1    discovering<br>NOTICE: /dev/sdc: hpt37x  discovering<br>NOTICE: /dev/sdc: hpt45x  discovering<br>NOTICE: /dev/sdc: isw     discovering<br>DEBUG: not isw at 500107860992<br>DEBUG: isw trying hard coded -2115 offset.<br>DEBUG: not isw at 500106779136<br>NOTICE: /dev/sdc: jmicron discovering<br>NOTICE: /dev/sdc: lsi     discovering<br>NOTICE: /dev/sdc: nvidia  discovering<br>NOTICE: /dev/sdc: pdc     discovering<br>ERROR: pdc: zero sectors on /dev/sdc<br>ERROR: pdc: setting up RAID device /dev/sdc<br>NOTICE: /dev/sdc: sil     discovering<br>NOTICE: /dev/sdc: via     discovering<br>NOTICE: /dev/sdb: asr     discovering<br>NOTICE: /dev/sdb: ddf1    discovering<br>NOTICE: /dev/sdb: hpt37x  discovering<br>NOTICE: /dev/sdb: hpt45x  discovering<br>NOTICE: /dev/sdb: isw     discovering<br>DEBUG: not isw at 500107860992<br>DEBUG: isw trying hard coded -2115 offset.<br>DEBUG: not isw at 500106779136<br>NOTICE: /dev/sdb: jmicron discovering<br>NOTICE: /dev/sdb: lsi     discovering<br>NOTICE: /dev/sdb: nvidia  discovering<br>NOTICE: /dev/sdb: pdc     discovering<br>ERROR: pdc: zero sectors on /dev/sdb<br>ERROR: pdc: setting up RAID device /dev/sdb<br>NOTICE: /dev/sdb: sil     discovering<br>NOTICE: /dev/sdb: via     discovering<br>NOTICE: /dev/sda: asr     discovering<br>NOTICE: /dev/sda: ddf1    discovering<br>NOTICE: /dev/sda: hpt37x  discovering<br>NOTICE: /dev/sda: hpt45x  discovering<br>NOTICE: /dev/sda: isw     discovering<br>DEBUG: not isw at 64023256064<br>DEBUG: isw trying hard coded -2115 offset.<br>DEBUG: not isw at 64022174208<br>NOTICE: /dev/sda: jmicron discovering<br>NOTICE: /dev/sda: lsi     discovering<br>NOTICE: /dev/sda: nvidia  discovering<br>NOTICE: /dev/sda: pdc     discovering<br>NOTICE: /dev/sda: sil     discovering<br>NOTICE: /dev/sda: via     discovering<br>no raid disks<br>WARN: unlocking /var/lock/dmraid/.lock<br><br>I have also attached the output of "dmraid -rD"<br><br>Hopefully you can point me to the correct offset for the metadata.<br><br>Kind regards,<br><br>Mark-Willem<br><br><div><div id="SkyDrivePlaceholder"></div>> Date: Fri, 23 Mar 2012 13:23:46 -0400<br>> From: psusi@ubuntu.com<br>> To: markwillem@hotmail.com<br>> CC: ataraid-list@redhat.com; iuculano@debian.org; themuso@ubuntu.com<br>> Subject: Re: Howto: implement AMD SB9xx RAID5 support in dmraid<br>> <br>> On 3/23/2012 12:52 PM, Mark-Willem Jansen wrote:<br>> ><br>> > Dear dmraid developer(s)/maintainer(s),<br>> ><br>> > Since a few weeks I am trying to get my new rig up and running under<br>> > linux. I run a dual-boot system with Windows 7 and Debian/wheezy. I<br>> > have installed the OS files on a small SSD and have setup a RAID-5<br>> > for the rest of the files. It is a FakeRAID/SATA-RAID which is<br>> > controlled by the AMD SB950 chip. Unfortunately dmraid does not seem<br>> > to support this chip in combination with a RAID-5 setup. I would like<br>> > to implement this, but to do that I need some help and information.<br>> > The plan is as follows<br>> <br>> I would advise using mdadm instead since it is much better supported and <br>> more reliable and feature complete.<br>> <br>> > - Get dmraid working with the dm-raid module. Dmraid needs a<br>> > dm-target that support RAID-5. In the past there was a patch for the<br>> > prior 3.x linux-kernel which added the dm-raid45 module. Now a days<br>> > there is a module called dm-raid which will provide the same<br>> > aliases(dm-raid4, dm-raid5) as the dm-raid45 module. How does on<br>> > check if dmraid can be made compatible with this new module? My first<br>> > idea was to look at the symbols dm-raid and dm-raid45 export to the<br>> > user space and which of these symbols are used by dmriad.<br>> <br>> I believe it should just work unless they changed the format of the <br>> dmsetup table.<br>> <br>> > - Find the metadata offset for the SB950 chipset. For this I need not<br>> > know with which characters the header of the metadata starts? The<br>> > SB950 seems to contain a Promise controller.<br>> <br>> dmraid -n doesn't already recognize it?  You can find the existing known <br>> offsets in pdc.h.<br>> <br>> > - Interpret the metadata provided on the disks. From the setup screen<br>> > provided by the UEFI driver I can find the stripe size, but in which<br>> > sequence(ls,rs,la,ra) these stripes are order I do not know, yet.<br>> > What is the best way to find this sequence? The RAID-5 disk hold a<br>> > GPT table, maybe one can look at how the header of this table is<br>> > distributed over the disk to find the stripe sequence.<br>> <br>> dmraid already understands pdc metadata.<br>> <br>> > - [optionally] Implement GPT support.<br>> <br>> Ubtunu 12.04 has switched to letting kpartx activate the partitions <br>> instead of dmraid, which supports GPT.<br>> <br></div>                                          </div></body>
</html>