Re: Rebuilding a Raid 1

Bad Bod <[email protected]> Fri, 17 May 2013 23:46:48 +0700
Newsgroups gmane.linux.ataraid
Message-ID <CA+4duQnM3i4c9Vn5cBYwU-GwdVEkjo0EY+guxg3TYuRuqyaGCw@mail.gmail.com>
--===============7936050716388317057==
Content-Type: multipart/alternative; boundary=047d7b6243086c3ec904dcecbc3b

--047d7b6243086c3ec904dcecbc3b
Content-Type: text/plain; charset=ISO-8859-1

Hi Heinz,
  Seeing as all the major distro's use this for detecting RAID during
install from live CD, and right now they all fail, then you might suggest
to them that this project is dead and you no longer support. Quite why they
started using this for RAID, I am not sure. It did work, then got broken.
Maybe they still think it works? It does not.

Please ask the major distro's to start using mdadm instead of this broken
thing they are still using.


Regards
David


On Mon, May 13, 2013 at 4:59 PM, Heinz Mauelshagen <[email protected]>wrote:

>
> Have you tried mdadm? isw should be driven via md by now.
>
> Heinz
>
>
> On 04/25/2013 06:55 AM, Dead Gardens wrote:
>
> dmraid version
>
> # dmraid -V
> dmraid version:         1.0.0.rc13-64 (2010.11.04) debug
> dmraid library version: 1.0.0.rc13-17 (2009.06.10)
> device-mapper version:  4.11.5
>
>  ------------------------------
> From: [email protected]
> To: [email protected]
> Subject: Rebuilding a Raid 1
> Date: Thu, 25 Apr 2013 06:52:01 +0200
>
>  I'm trying to rebuild a raid 1 (dmraid+isw) unsuccessfully. I replaced
> the failed disk with a new one and the BIOS added it automatically to the
> raid. Running kernel 2.6.18-194.17.4.el5.
> *
> *
> *# dmraid -r*
> *
> *
> /dev/sda: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0
> /dev/sdb: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0 *
> *
> *# dmraid -s*
>
> *** Group superset isw_babcjifefe
> --> Subset
> name   : isw_babcjifefe_Raid0
> size   : 1953519616
> stride : 128
> type   : mirror
> status : nosync
> subsets: 0
> devs   : 2
> spares : 0
>
> When i try to start the raid i receive the next errors
> *# dmraid -f isw -S -M /dev/sdb*
>
> ERROR: isw: SPARE disk must use all space on the disk
>
> *# dmraid -tay*
>
> isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0
>
> *# dmraid -ay*
>
> RAID set "isw_babcjifefe_Raid0" was not activated
> ERROR: device "isw_babcjifefe_Raid0" could not be found
>
> *# dmraid -f isw -S -M /dev/sdb*
>
> ERROR: isw: SPARE disk must use all space on the disk
>
> # dmraid -R isw_babcjifefe_Raid0 /dev/sdb
>
> ERROR: disk /dev/sdb cannot be used to rebuilding
>
> *# dmesg*
>
> device-mapper: table: 253:13: mirror: Device lookup failure
> device-mapper: ioctl: error adding target to table
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
> device-mapper: table: 253:13: mirror: Device lookup failure
> device-mapper: ioctl: error adding target to table
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
> device-mapper: table: 253:13: mirror: Device lookup failure
> device-mapper: ioctl: error adding target to table
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
> device-mapper: ioctl: device doesn't appear to be in the dev hash table.
>
> Disks:
>
> Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
> 255 heads, 63 sectors/track, 121601 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> LVM:
>
> PV /dev/sda5   VG storage   lvm2 [914.64 GB / 28.64 GB free]
> Total: 1 [914.64 GB] / in use: 1 [914.64 GB] / in no VG: 0 [0   ]
> Reading all physical volumes.  This may take a while...
> Found volume group "storage" using metadata type lvm2
> ACTIVE            '/dev/storage/home' [68.00 GB] inherit
> ACTIVE            '/dev/storage/home2' [68.00 GB] inherit
> ACTIVE            '/dev/storage/home3' [68.00 GB] inherit
> ACTIVE            '/dev/storage/home4' [68.00 GB] inherit
> ACTIVE            '/dev/storage/home5' [68.00 GB] inherit
> ACTIVE            '/dev/storage/var' [15.00 GB] inherit
> ACTIVE            '/dev/storage/mysql' [20.00 GB] inherit
> ACTIVE            '/dev/storage/pgsql' [7.00 GB] inherit
> ACTIVE            '/dev/storage/exim' [12.00 GB] inherit
> ACTIVE            '/dev/storage/apache' [25.00 GB] inherit
> ACTIVE            '/dev/storage/tmp' [2.00 GB] inherit
> ACTIVE            '/dev/storage/backup' [450.00 GB] inherit
> ACTIVE            '/dev/storage/log' [15.00 GB] inherit
>
> Any idea of what is wrong?
> Thanks!
>
>
> _______________________________________________ Ataraid-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/ataraid-list
>
>
> _______________________________________________
> Ataraid-list mailing [email protected]://www.redhat.com/mailman/listinfo/ataraid-list
>
>
>
> _______________________________________________
> Ataraid-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/ataraid-list
>

--047d7b6243086c3ec904dcecbc3b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Heinz,<div style>=A0 Seeing as all the major distro&#39=
;s use this for detecting RAID during install from live CD, and right now t=
hey all fail, then you might suggest to them that this=A0project=A0is dead =
and you no longer=A0support. Quite why they started using this for RAID, I =
am not sure. It did work, then got broken. Maybe they still think it works?=
 It does not.=A0</div>

<div style><br></div><div style>Please ask the=A0major=A0distro&#39;s to st=
art using mdadm instead of this broken thing they are still using.</div><di=
v style><br></div></div><div class=3D"gmail_extra"><br clear=3D"all"><div>R=
egards<div>

David</div></div>
<br><br><div class=3D"gmail_quote">On Mon, May 13, 2013 at 4:59 PM, Heinz M=
auelshagen <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" targe=
t=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd=
ing-left:1ex">


 =20
   =20
 =20
  <div bgcolor=3D"#FFFFFF" text=3D"#000000">
    <br>
    Have you tried mdadm? isw should be driven via md by now.<span class=3D=
"HOEnZb"><font color=3D"#888888"><br>
    <br>
    Heinz</font></span><div><div class=3D"h5"><br>
    <br>
    <div>On 04/25/2013 06:55 AM, Dead Gardens
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">dmraid version<br>
        <br>
        # dmraid -V<br>
        dmraid version:=A0=A0=A0=A0=A0=A0=A0=A0 1.0.0.rc13-64 (2010.11.04) =
debug <br>
        dmraid library version: 1.0.0.rc13-17 (2009.06.10)<br>
        device-mapper version:=A0 4.11.5<br>
        <br>
        <div>
          <hr>From: <a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a><br>
          To: <a href=3D"mailto:[email protected]" target=3D"_blank">=
[email protected]</a><br>
          Subject: Rebuilding a Raid 1<br>
          Date: Thu, 25 Apr 2013 06:52:01 +0200<br>
          <br>
         =20
          <div dir=3D"ltr">
            <div> I&#39;m trying to rebuild a raid 1
              (dmraid+isw) unsuccessfully. I replaced the failed disk
              with a new one and the BIOS added it automatically to the
              raid.
              Running kernel 2.6.18-194.17.4.el5.<br>
              <em><br>
              </em><br>
              <em># dmraid -r</em><br>
              <em><br>
              </em><br>
              <code>/dev/sda: isw, &quot;isw_babcjifefe&quot;, GROUP, ok,
                1953525165 sectors, data@ 0<br>
                /dev/sdb: isw, &quot;isw_babcjifefe&quot;, GROUP, ok, 19535=
25165
                sectors, data@ 0
              </code>
              <em><br>
              </em><br>
              <em># dmraid -s</em><br>
              <pre><code>*** Group superset isw_babcjifefe
--&gt; Subset
name   : isw_babcjifefe_Raid0
size   : 1953519616
stride : 128
type   : mirror
status : nosync
subsets: 0
devs   : 2
spares : 0
</code></pre>
              When i try to start the raid i receive the next errors <br>
              <em># dmraid -f isw -S -M /dev/sdb</em> <br>
              <pre><code>ERROR: isw: SPARE disk must use all space on the d=
isk
</code></pre>
              <em># dmraid -tay</em><br>
              <pre><code>isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 1=
31072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0
</code></pre>
              <em># dmraid -ay</em><br>
              <pre><code>RAID set &quot;isw_babcjifefe_Raid0&quot; was not =
activated
ERROR: device &quot;isw_babcjifefe_Raid0&quot; could not be found
</code></pre>
              <em># dmraid -f isw -S -M /dev/sdb</em> <br>
              <pre><code>ERROR: isw: SPARE disk must use all space on the d=
isk
</code></pre>
              # dmraid -R isw_babcjifefe_Raid0 /dev/sdb<br>
              <pre><code>ERROR: disk /dev/sdb cannot be used to rebuilding
</code></pre>
              <em># dmesg</em><br>
              <pre><code>device-mapper: table: 253:13: mirror: Device looku=
p failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn&#39;t appear to be in the dev hash table=
.
device-mapper: table: 253:13: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn&#39;t appear to be in the dev hash table=
.
device-mapper: table: 253:13: mirror: Device lookup failure
device-mapper: ioctl: error adding target to table
device-mapper: ioctl: device doesn&#39;t appear to be in the dev hash table=
.
device-mapper: ioctl: device doesn&#39;t appear to be in the dev hash table=
.
device-mapper: ioctl: device doesn&#39;t appear to be in the dev hash table=
.
</code></pre>
              Disks:<br>
              <pre><code>Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes
</code></pre>
              LVM:<br>
              <pre><code>PV /dev/sda5   VG storage   lvm2 [914.64 GB / 28.6=
4 GB free]
Total: 1 [914.64 GB] / in use: 1 [914.64 GB] / in no VG: 0 [0   ]
Reading all physical volumes.  This may take a while...
Found volume group &quot;storage&quot; using metadata type lvm2
ACTIVE            &#39;/dev/storage/home&#39; [68.00 GB] inherit
ACTIVE            &#39;/dev/storage/home2&#39; [68.00 GB] inherit
ACTIVE            &#39;/dev/storage/home3&#39; [68.00 GB] inherit
ACTIVE            &#39;/dev/storage/home4&#39; [68.00 GB] inherit
ACTIVE            &#39;/dev/storage/home5&#39; [68.00 GB] inherit
ACTIVE            &#39;/dev/storage/var&#39; [15.00 GB] inherit
ACTIVE            &#39;/dev/storage/mysql&#39; [20.00 GB] inherit
ACTIVE            &#39;/dev/storage/pgsql&#39; [7.00 GB] inherit
ACTIVE            &#39;/dev/storage/exim&#39; [12.00 GB] inherit
ACTIVE            &#39;/dev/storage/apache&#39; [25.00 GB] inherit
ACTIVE            &#39;/dev/storage/tmp&#39; [2.00 GB] inherit
ACTIVE            &#39;/dev/storage/backup&#39; [450.00 GB] inherit
ACTIVE            &#39;/dev/storage/log&#39; [15.00 GB] inherit

Any idea of what is wrong?
Thanks!=20
</code></pre>
            </div>
          </div>
          <br>
          _______________________________________________
          Ataraid-list mailing list
          <a href=3D"mailto:[email protected]" target=3D"_blank">Atar=
[email protected]</a>
          <a href=3D"https://www.redhat.com/mailman/listinfo/ataraid-list" =
target=3D"_blank">https://www.redhat.com/mailman/listinfo/ataraid-list</a><=
/div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Ataraid-list mailing list
<a href=3D"mailto:[email protected]" target=3D"_blank">Ataraid-list@r=
edhat.com</a>
<a href=3D"https://www.redhat.com/mailman/listinfo/ataraid-list" target=3D"=
_blank">https://www.redhat.com/mailman/listinfo/ataraid-list</a></pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Ataraid-list mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"https://www.redhat.com/mailman/listinfo/ataraid-list" target=3D"=
_blank">https://www.redhat.com/mailman/listinfo/ataraid-list</a><br></block=
quote></div><br></div>

--047d7b6243086c3ec904dcecbc3b--


--===============7936050716388317057==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ataraid-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/ataraid-list
--===============7936050716388317057==--