RE: Rebuilding a Raid 1

Dead Gardens <[email protected]> Fri, 17 May 2013 18:20:46 +0200
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
--===============4506769065740802454==
Content-Type: multipart/alternative;
	boundary="_9e3ad24a-6e3b-4cfd-9a25-5af71466b191_"

--_9e3ad24a-6e3b-4cfd-9a25-5af71466b191_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Heinz=2C thanks for your response!

I tried with mdadm --detail --scan but don't show anything.  Maybe I forget=
ting something.

It's running with this version of mdadm
mdadm - v2.6.9 - 10th March 2009

there is a way to fix this with mdadm?=20

Thanks!



Date: Mon=2C 13 May 2013 11:59:43 +0200
From: [email protected]
To: [email protected]
Subject: Re: Rebuilding a Raid 1

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

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

--_9e3ad24a-6e3b-4cfd-9a25-5af71466b191_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 12pt=3B
font-family:Calibri
}
--></style></head>
<body class=3D'hmmessage'><div dir=3D'ltr'>Hi Heinz=2C thanks for your resp=
onse!<br><br>I tried with mdadm --detail --scan but don't show anything.&nb=
sp=3B Maybe I forgetting something.<br><br>It's running with this version o=
f mdadm<br>mdadm - v2.6.9 - 10th March 2009<br><span id=3D"result_box" clas=
s=3D"short_text" lang=3D"en"><span class=3D"hps"><br>there is a</span> <spa=
n class=3D"hps">way to fix</span> <span class=3D"hps">this with</span> <spa=
n class=3D"hps">mdadm</span><span>?</span></span> <br><br>Thanks!<br><br><b=
r><br><div><hr id=3D"stopSpelling">Date: Mon=2C 13 May 2013 11:59:43 +0200<=
br>From: [email protected]<br>To: [email protected]<br>Subject: Re: R=
ebuilding a Raid 1<br><br>=0A=
  =0A=
    =0A=
  =0A=
  =0A=
    <br>=0A=
    Have you tried mdadm? isw should be driven via md by now.<br>=0A=
    <br>=0A=
    Heinz<br>=0A=
    <br>=0A=
    <div class=3D"ecxmoz-cite-prefix">On 04/25/2013 06:55 AM=2C Dead Garden=
s=0A=
      wrote:<br>=0A=
    </div>=0A=
    <blockquote cite=3D"mid:[email protected]">=0A=
      <style><!--=0A=
.ExternalClass .ecxhmmessage P {=0A=
padding:0px=3B=0A=
}=0A=
=0A=
.ExternalClass body.ecxhmmessage {=0A=
font-size:12pt=3B=0A=
font-family:Calibri=3B=0A=
}=0A=
=0A=
--></style>=0A=
      <div dir=3D"ltr">dmraid version<br>=0A=
        <br>=0A=
        # dmraid -V<br>=0A=
        dmraid version:&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbsp=3B&nbs=
p=3B&nbsp=3B 1.0.0.rc13-64 (2010.11.04) debug <br>=0A=
        dmraid library version: 1.0.0.rc13-17 (2009.06.10)<br>=0A=
        device-mapper version:&nbsp=3B 4.11.5<br>=0A=
        <br>=0A=
        <div>=0A=
          <hr id=3D"ecxstopSpelling">From: <a class=3D"ecxmoz-txt-link-abbr=
eviated" href=3D"mailto:[email protected]">[email protected]=
m</a><br>=0A=
          To: <a class=3D"ecxmoz-txt-link-abbreviated" href=3D"mailto:atara=
[email protected]">[email protected]</a><br>=0A=
          Subject: Rebuilding a Raid 1<br>=0A=
          Date: Thu=2C 25 Apr 2013 06:52:01 +0200<br>=0A=
          <br>=0A=
          <style><!--=0A=
.ExternalClass .ecxhmmessage P {=0A=
padding:0px=3B=0A=
}=0A=
=0A=
.ExternalClass body.ecxhmmessage {=0A=
font-size:12pt=3B=0A=
font-family:Calibri=3B=0A=
}=0A=
=0A=
=0A=
--></style>=0A=
          <div dir=3D"ltr">=0A=
            <div class=3D"ecxpost-text"> I'm trying to rebuild a raid 1=0A=
              (dmraid+isw) unsuccessfully. I replaced the failed disk=0A=
              with a new one and the BIOS added it automatically to the=0A=
              raid.=0A=
              Running kernel 2.6.18-194.17.4.el5.<br>=0A=
              <em><br>=0A=
              </em><br>=0A=
              <em># dmraid -r</em><br>=0A=
              <em><br>=0A=
              </em><br>=0A=
              <code>/dev/sda: isw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C=0A=
                1953525165 sectors=2C data@ 0<br>=0A=
                /dev/sdb: isw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C 1953525=
165=0A=
                sectors=2C data@ 0=0A=
              </code>=0A=
              <em><br>=0A=
              </em><br>=0A=
              <em># dmraid -s</em><br>=0A=
              <pre><code>*** Group superset isw_babcjifefe=0A=
--&gt=3B Subset=0A=
name   : isw_babcjifefe_Raid0=0A=
size   : 1953519616=0A=
stride : 128=0A=
type   : mirror=0A=
status : nosync=0A=
subsets: 0=0A=
devs   : 2=0A=
spares : 0=0A=
</code></pre>=0A=
              When i try to start the raid i receive the next errors <br>=
=0A=
              <em># dmraid -f isw -S -M /dev/sdb</em> <br>=0A=
              <pre><code>ERROR: isw: SPARE disk must use all space on the d=
isk=0A=
</code></pre>=0A=
              <em># dmraid -tay</em><br>=0A=
              <pre><code>isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 1=
31072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0=0A=
</code></pre>=0A=
              <em># dmraid -ay</em><br>=0A=
              <pre><code>RAID set "isw_babcjifefe_Raid0" was not activated=
=0A=
ERROR: device "isw_babcjifefe_Raid0" could not be found=0A=
</code></pre>=0A=
              <em># dmraid -f isw -S -M /dev/sdb</em> <br>=0A=
              <pre><code>ERROR: isw: SPARE disk must use all space on the d=
isk=0A=
</code></pre>=0A=
              # dmraid -R isw_babcjifefe_Raid0 /dev/sdb<br>=0A=
              <pre><code>ERROR: disk /dev/sdb cannot be used to rebuilding=
=0A=
</code></pre>=0A=
              <em># dmesg</em><br>=0A=
              <pre><code>device-mapper: table: 253:13: mirror: Device looku=
p failure=0A=
device-mapper: ioctl: error adding target to table=0A=
device-mapper: ioctl: device doesn't appear to be in the dev hash table.=0A=
device-mapper: table: 253:13: mirror: Device lookup failure=0A=
device-mapper: ioctl: error adding target to table=0A=
device-mapper: ioctl: device doesn't appear to be in the dev hash table.=0A=
device-mapper: table: 253:13: mirror: Device lookup failure=0A=
device-mapper: ioctl: error adding target to table=0A=
device-mapper: ioctl: device doesn't appear to be in the dev hash table.=0A=
device-mapper: ioctl: device doesn't appear to be in the dev hash table.=0A=
device-mapper: ioctl: device doesn't appear to be in the dev hash table.=0A=
</code></pre>=0A=
              Disks:<br>=0A=
              <pre><code>Disk /dev/sda: 1000.2 GB=2C 1000204886016 bytes=0A=
255 heads=2C 63 sectors/track=2C 121601 cylinders=0A=
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes=0A=
Disk /dev/sdb: 1000.2 GB=2C 1000204886016 bytes=0A=
255 heads=2C 63 sectors/track=2C 121601 cylinders=0A=
Units =3D cylinders of 16065 * 512 =3D 8225280 bytes=0A=
</code></pre>=0A=
              LVM:<br>=0A=
              <pre><code>PV /dev/sda5   VG storage   lvm2 [914.64 GB / 28.6=
4 GB free]=0A=
Total: 1 [914.64 GB] / in use: 1 [914.64 GB] / in no VG: 0 [0   ]=0A=
Reading all physical volumes.  This may take a while...=0A=
Found volume group "storage" using metadata type lvm2=0A=
ACTIVE            '/dev/storage/home' [68.00 GB] inherit=0A=
ACTIVE            '/dev/storage/home2' [68.00 GB] inherit=0A=
ACTIVE            '/dev/storage/home3' [68.00 GB] inherit=0A=
ACTIVE            '/dev/storage/home4' [68.00 GB] inherit=0A=
ACTIVE            '/dev/storage/home5' [68.00 GB] inherit=0A=
ACTIVE            '/dev/storage/var' [15.00 GB] inherit=0A=
ACTIVE            '/dev/storage/mysql' [20.00 GB] inherit=0A=
ACTIVE            '/dev/storage/pgsql' [7.00 GB] inherit=0A=
ACTIVE            '/dev/storage/exim' [12.00 GB] inherit=0A=
ACTIVE            '/dev/storage/apache' [25.00 GB] inherit=0A=
ACTIVE            '/dev/storage/tmp' [2.00 GB] inherit=0A=
ACTIVE            '/dev/storage/backup' [450.00 GB] inherit=0A=
ACTIVE            '/dev/storage/log' [15.00 GB] inherit=0A=
=0A=
Any idea of what is wrong?=0A=
Thanks! =0A=
</code></pre>=0A=
            </div>=0A=
          </div>=0A=
          <br>=0A=
          _______________________________________________=0A=
          Ataraid-list mailing list=0A=
          <a class=3D"ecxmoz-txt-link-abbreviated" href=3D"mailto:Ataraid-l=
[email protected]">[email protected]</a>=0A=
          <a class=3D"ecxmoz-txt-link-freetext" href=3D"https://www.redhat.=
com/mailman/listinfo/ataraid-list" target=3D"_blank">https://www.redhat.com=
/mailman/listinfo/ataraid-list</a></div>=0A=
      </div>=0A=
      <br>=0A=
      <fieldset class=3D"ecxmimeAttachmentHeader"></fieldset>=0A=
      <br>=0A=
      <pre>_______________________________________________=0A=
Ataraid-list mailing list=0A=
<a class=3D"ecxmoz-txt-link-abbreviated" href=3D"mailto:Ataraid-list@redhat=
.com">[email protected]</a>=0A=
<a class=3D"ecxmoz-txt-link-freetext" href=3D"https://www.redhat.com/mailma=
n/listinfo/ataraid-list" target=3D"_blank">https://www.redhat.com/mailman/l=
istinfo/ataraid-list</a></pre>=0A=
    </blockquote>=0A=
    <br>=0A=
  =0A=
=0A=
<br>_______________________________________________=0A=
Ataraid-list mailing list=0A=
[email protected]=0A=
https://www.redhat.com/mailman/listinfo/ataraid-list</div> 		 	   		  </div=
></body>
</html>=

--_9e3ad24a-6e3b-4cfd-9a25-5af71466b191_--


--===============4506769065740802454==
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
--===============4506769065740802454==--