Rebuilding a Raid 1

Dead Gardens <[email protected]> Thu, 25 Apr 2013 06:52:01 +0200
Newsgroups gmane.linux.ataraid
Message-ID <[email protected]>
--===============3987154099063592752==
Content-Type: multipart/alternative;
	boundary="_29b89890-7d44-4d90-80d0-5492e308a8bc_"

--_29b89890-7d44-4d90-80d0-5492e308a8bc_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

=0A=
        I'm trying to rebuild a raid 1 (dmraid+isw) unsuccessfully. I=0A=
 replaced the failed disk with a new one and the BIOS added it =0A=
automatically to the raid.=0A=
Running kernel 2.6.18-194.17.4.el5.=0A=
=0A=

# dmraid -r
/dev/sda: isw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C 1953525165 sectors=2C d=
ata@ 0
/dev/sdb: isw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C 1953525165 sectors=2C d=
ata@ 0=0A=
=0A=
=0A=

# dmraid -s=0A=
=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=
=0A=
When i try to start the raid i receive the next errors =0A=
=0A=
# dmraid -f isw -S -M /dev/sdb =0A=
=0A=
ERROR: isw: SPARE disk must use all space on the disk=0A=
=0A=
=0A=
# dmraid -tay=0A=
=0A=
isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync block_on_error=
 2 /dev/sda 0 /dev/sdb 0=0A=
=0A=
=0A=
# dmraid -ay=0A=
=0A=
RAID set "isw_babcjifefe_Raid0" was not activated=0A=
ERROR: device "isw_babcjifefe_Raid0" could not be found=0A=
=0A=
=0A=
# dmraid -f isw -S -M /dev/sdb =0A=
=0A=
ERROR: isw: SPARE disk must use all space on the disk=0A=
=0A=
=0A=
# dmraid -R isw_babcjifefe_Raid0 /dev/sdb=0A=
=0A=
ERROR: disk /dev/sdb cannot be used to rebuilding=0A=
=0A=
=0A=
# dmesg=0A=
=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=
=0A=
Disks:=0A=
=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=
=0A=
LVM:=0A=
=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

Any idea of what is wrong?
Thanks!=20
=0A=
=0A=
     		 	   		  =

--_29b89890-7d44-4d90-80d0-5492e308a8bc_
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'><div class=3D"post-text" itempro=
p=3D"description">=0A=
        I'm trying to rebuild a raid 1 (dmraid+isw) unsuccessfully. I=0A=
 replaced the failed disk with a new one and the BIOS added it =0A=
automatically to the raid.=0A=
Running kernel 2.6.18-194.17.4.el5.<BR>=0A=
=0A=
<em><br></em><BR><em># dmraid -r</em><BR><em><br></em><BR><code>/dev/sda: i=
sw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C 1953525165 sectors=2C data@ 0<br>/=
dev/sdb: isw=2C "isw_babcjifefe"=2C GROUP=2C ok=2C 1953525165 sectors=2C da=
ta@ 0=0A=
</code>=0A=
=0A=
<em><br></em><BR><em># dmraid -s</em><BR>=0A=
=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=
=0A=
When i try to start the raid i receive the next errors <BR>=0A=
=0A=
<em># dmraid -f isw -S -M /dev/sdb</em> <BR>=0A=
=0A=
<pre><code>ERROR: isw: SPARE disk must use all space on the disk=0A=
</code></pre>=0A=
=0A=
<em># dmraid -tay</em><BR>=0A=
=0A=
<pre><code>isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync blo=
ck_on_error 2 /dev/sda 0 /dev/sdb 0=0A=
</code></pre>=0A=
=0A=
<em># dmraid -ay</em><BR>=0A=
=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=
=0A=
<em># dmraid -f isw -S -M /dev/sdb</em> <BR>=0A=
=0A=
<pre><code>ERROR: isw: SPARE disk must use all space on the disk=0A=
</code></pre>=0A=
=0A=
# dmraid -R isw_babcjifefe_Raid0 /dev/sdb<BR>=0A=
=0A=
<pre><code>ERROR: disk /dev/sdb cannot be used to rebuilding=0A=
</code></pre>=0A=
=0A=
<em># dmesg</em><BR>=0A=
=0A=
<pre><code>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=
</code></pre>=0A=
=0A=
Disks:<BR>=0A=
=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=
=0A=
LVM:<BR>=0A=
=0A=
<pre><code>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<br><br>Any idea of =
what is wrong?<br>Thanks! <br></code></pre>=0A=
=0A=
    </div> 		 	   		  </div></body>
</html>=

--_29b89890-7d44-4d90-80d0-5492e308a8bc_--


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