<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7226.0">
<TITLE>Unable to discover isw raid with 1.0.0-rc3</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">This is in a way continuation of the discussion at </FONT><A HREF="https://www.redhat.com/archives/ataraid-list/2004-August/msg00013.html"><U><FONT COLOR="#0000FF" SIZE=2 FACE="Arial">https://www.redhat.com/archives/ataraid-list/2004-August/msg00013.html</FONT></U></A><FONT SIZE=2 FACE="Arial">. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">Just tried version 1.0.0-rc3 on my ICH5-R system, and still couldn't discover the array. The problem I had with 1.0.0-rc2 turned out to be caused by bogus disk geometry data ( i guess [heads * sectors * cylinders] does not necessarily equal the total sector count). I noticed that in 1.0.0-rc3 the total sector count is not computed from geometry data but read from sysfs. So now I always end up with a 0 sector count because I'm not using sysfs. As a result, I get errors seeking to the superblock offset and couldn't find the metadata.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">So is dmraid intended for use with sysfs only now? If not, how can I get it to obtain the correct sector count when "carrying on with /dev/"? I mean, should I do something outside of dmraid to achieve this? </FONT></P>

<P><FONT SIZE=2 FACE="Arial">For now, I'm getting around this problem by seeking from the end of the device file to get to the superblock (since I end up with negative superblock offsets). This is kind of an ugly hack. Alternatively, it is also possible to get the sector count using the BLKGETSIZE ioctl, which is what hdparm uses. I don't know enough about this method to advocate for or against it, but it works on my setup.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Sorry if I'm being over-zealous :-) I need to return the ICH5-R to our QA team soon, and I really want to get as much testing done as I can.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here's output from "dmraid -r -vvv" with a couple of added prints:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">INFO: locking /var/lock/dmraid/.lock</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: Failed to find sysfs mount point</FONT>

<BR><FONT SIZE=2 FACE="Arial">carrying on with /dev/</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: hpt37x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: hpt45x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sdb" at offset -5632</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: isw    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">isw_sboffset is: 0</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sdb" at offset -1024</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: isw: failed reading first sector of ISW superblock for /dev/sdb</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: lsi    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sdb" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: pdc    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sdb" at offset -32256</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sdb: sil    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sdb" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: hpt37x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: hpt45x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sda" at offset -5632</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: isw    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">isw_sboffset is: 0</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sda" at offset -1024</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: isw: failed reading first sector of ISW superblock for /dev/sda</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: lsi    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sda" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: pdc    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sda" at offset -32256</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/sda: sil    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/sda" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: hpt37x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: hpt45x discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/hda" at offset -5632</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: isw    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">isw_sboffset is: 0</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/hda" at offset -1024</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: isw: failed reading first sector of ISW superblock for /dev/hda</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: lsi    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/hda" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: pdc    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/hda" at offset -32256</FONT>

<BR><FONT SIZE=2 FACE="Arial">INFO: /dev/hda: sil    discovering</FONT>

<BR><FONT SIZE=2 FACE="Arial">ERROR: failed seeking device "/dev/hda" at offset -512</FONT>

<BR><FONT SIZE=2 FACE="Arial">No Software RAID disks</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Cheers,</FONT>

<BR><FONT SIZE=2 FACE="Arial">Jane</FONT>
</P>

</BODY>
</HTML>