Re: Rebuilding a Raid 1
Heinz Mauelshagen <[email protected]> Mon, 13 May 2013 11:59:43 +0200
| Newsgroups | gmane.linux.ataraid |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============2770271509830976167== Content-Type: multipart/alternative; boundary="------------070608070507090405040903" This is a multi-part message in MIME format. --------------070608070507090405040903 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 list > [email protected] > https://www.redhat.com/mailman/listinfo/ataraid-list --------------070608070507090405040903 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <br> Have you tried mdadm? isw should be driven via md by now.<br> <br> Heinz<br> <br> <div class="moz-cite-prefix">On 04/25/2013 06:55 AM, Dead Gardens wrote:<br> </div> <blockquote cite="mid:[email protected]" type="cite"> <style><!-- .hmmessage P { margin:0px; padding:0px } body.hmmessage { font-size: 12pt; font-family:Calibri } --></style> <div dir="ltr">dmraid version<br> <br> # dmraid -V<br> dmraid version: 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: 4.11.5<br> <br> <div> <hr id="stopSpelling">From: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br> To: <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a><br> Subject: Rebuilding a Raid 1<br> Date: Thu, 25 Apr 2013 06:52:01 +0200<br> <br> <style><!-- .ExternalClass .ecxhmmessage P { padding:0px; } .ExternalClass body.ecxhmmessage { font-size:12pt; font-family:Calibri; } --></style> <div dir="ltr"> <div class="ecxpost-text"> 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.<br> <em><br> </em><br> <em># dmraid -r</em><br> <em><br> </em><br> <code>/dev/sda: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0<br> /dev/sdb: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0 </code> <em><br> </em><br> <em># dmraid -s</em><br> <pre><code>*** Group superset isw_babcjifefe --> 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 disk </code></pre> <em># dmraid -tay</em><br> <pre><code>isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0 </code></pre> <em># dmraid -ay</em><br> <pre><code>RAID set "isw_babcjifefe_Raid0" was not activated ERROR: device "isw_babcjifefe_Raid0" 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 disk </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 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. </code></pre> Disks:<br> <pre><code>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 </code></pre> LVM:<br> <pre><code>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! </code></pre> </div> </div> <br> _______________________________________________ Ataraid-list mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/ataraid-list">https://www.redhat.com/mailman/listinfo/ataraid-list</a></div> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Ataraid-list mailing list <a class="moz-txt-link-abbreviated" href="mailto:[email protected]">[email protected]</a> <a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/ataraid-list">https://www.redhat.com/mailman/listinfo/ataraid-list</a></pre> </blockquote> <br> </body> </html> --------------070608070507090405040903-- --===============2770271509830976167== 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 --===============2770271509830976167==--