dmraid-activate is broken for isw arrays (dmraid rc15)

Bug #310928 reported by Dan Eicher
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
dmraid (Debian)
Confirmed
Undecided
Unassigned
dmraid (Fedora)
New
Undecided
Unassigned
dmraid (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Jaunty by Kyle Jones

Bug Description

Dist: Ubuntu 8.10 Server
Hardware: System Sunfire 2250

root@lolly:~# dmraid -ay
RAID set "isw_hgbhachhf_Mirror" already active
RAID set "isw_hgbhachhf_Mirror1" already active
RAID set "isw_hgbhachhf_Mirror5" already active

root@lolly:~# dpkg -l | grep dmraid
ii dmraid 1.0.0.rc14-2ubuntu12 Device-Mapper Software RAID support tool
ii libdmraid1.0.0.rc14 1.0.0.rc14-2ubuntu12 Device-Mapper Software RAID support tool - s

root@lolly:~# dmraid -r
/dev/sdb: isw, "isw_hgbhachhf", GROUP, ok, 1953525165 sectors, data@ 0
/dev/sda: isw, "isw_hgbhachhf", GROUP, ok, 1953525165 sectors, data@ 0

root@lolly:~# dmraid -b
/dev/sdb: 1953525168 total, "GTF000PAKD6J8F"
/dev/sda: 1953525168 total, "GTF000PAKG99LF"

root@lolly:~# dmraid -V
dmraid version: 1.0.0.rc14 (2006.11.08) shared
dmraid library version: 1.0.0.rc14 (2006.11.08)
device-mapper version: 4.14.0

root@lolly:~# dmraid -s
*** Group superset isw_hgbhachhf
--> Active Subset
name : isw_hgbhachhf_Mirror
size : 1953519616
stride : 128
type : mirror
status : ok
subsets: 0
devs : 2
spares : 0

root@lolly:~# dmraid -rD -d -d -d -v -v -v
WARN: locking /var/lock/dmraid/.lock
NOTICE: /dev/sdb: asr discovering
NOTICE: /dev/sdb: ddf1 discovering
NOTICE: /dev/sdb: hpt37x discovering
NOTICE: /dev/sdb: hpt45x discovering
NOTICE: /dev/sdb: isw discovering
NOTICE: writing metadata file "sdb_isw.dat"
NOTICE: writing offset to file "sdb_isw.offset"
NOTICE: writing size to file "sdb_isw.size"
NOTICE: /dev/sdb: isw metadata discovered
NOTICE: /dev/sdb: jmicron discovering
NOTICE: /dev/sdb: lsi discovering
NOTICE: /dev/sdb: nvidia discovering
NOTICE: /dev/sdb: pdc discovering
NOTICE: /dev/sdb: sil discovering
NOTICE: /dev/sdb: via discovering
NOTICE: /dev/sda: asr discovering
NOTICE: /dev/sda: ddf1 discovering
NOTICE: /dev/sda: hpt37x discovering
NOTICE: /dev/sda: hpt45x discovering
NOTICE: /dev/sda: isw discovering
NOTICE: writing metadata file "sda_isw.dat"
NOTICE: writing offset to file "sda_isw.offset"
NOTICE: writing size to file "sda_isw.size"
NOTICE: /dev/sda: isw metadata discovered
NOTICE: /dev/sda: jmicron discovering
NOTICE: /dev/sda: lsi discovering
NOTICE: /dev/sda: nvidia discovering
NOTICE: /dev/sda: pdc discovering
NOTICE: /dev/sda: sil discovering
NOTICE: /dev/sda: via discovering
INFO: RAID devices discovered:

/dev/sdb: isw, "isw_hgbhachhf", GROUP, ok, 1953525165 sectors, data@ 0
/dev/sda: isw, "isw_hgbhachhf", GROUP, ok, 1953525165 sectors, data@ 0
WARN: unlocking /var/lock/dmraid/.lock

Everything looks as it should.

Pull One Drive from the mirror and you get:
Giving up waiting for root device. Common Problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)

ALERT! /dev/mapper/isw.hgbhachhf_Mirror1 does not exist.

Dropping to shell!

BusyBox v1.10.2 ..
(initramfs) dmraid -ay

ctrl-d

ERROR: isw: unsupported map state 0x2 on /dev/sda for Mirror
ERROR: adding /dev/sda to RAID set "isw_hgbhachhf"
ERROR: removing RAID set "isw_hgbhachhf"

Related branches

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Hi,

Unfortunately dmraid 1.0.0.rc14 doesn't support intel degraded raid disk, you should try rc15 version on jaunty.

Cheers,

Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote : Re: [Bug 310928] Re: boot fails after a one drive failure in a mirror

Will rc15 work on 8.10?

The reason I ask, is I want to run an oracle DB server on this box.
Oracle is very pick as to all the bits and pieces it needs to install.
I've found docs for installing Oracle 11g on Ubuntu 8.10 - but
jaunty is a little close to the bleeding edge.

Thanks,
Dan

Giuseppe Iuculano wrote:
> Hi,
>
> Unfortunately dmraid 1.0.0.rc14 doesn't support intel degraded raid
> disk, you should try rc15 version on jaunty.
>
> Cheers,
>
> Giuseppe.
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Hi,

Dan Eicher ha scritto:
> Will rc15 work on 8.10?
>
> The reason I ask, is I want to run an oracle DB server on this box.
> Oracle is very pick as to all the bits and pieces it needs to install.
> I've found docs for installing Oracle 11g on Ubuntu 8.10 - but
> jaunty is a little close to the bleeding edge.

I uploaded rc15 on my PPA, you can get it adding in your sources.list the
following lines:

deb http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main
deb-src http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main

Cheers,
Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote :

I think there might be some issue with the upgrade to rc15 on intrepid.

I added the addition sources as indicated.
Then:
apt-get update
apt-get upgrade dmraid -
   One package being held back.
apt-get install dmraid -
   dmraidrc15 seem to install fine.
Reboot.
  No block device found (printed 4 times).
  Messages about searching usb and sda
Then:
  Gave up waiting for root device. Common problems:
    [insert standard text here]

ALERT! /dev/mapper/isw_hgbhachhf_Mirror1 does not exist. Dropping to a
shell!

Giuseppe Iuculano wrote:
> Hi,
>
> Dan Eicher ha scritto:
>> Will rc15 work on 8.10?
>>
>> The reason I ask, is I want to run an oracle DB server on this box.
>> Oracle is very pick as to all the bits and pieces it needs to install.
>> I've found docs for installing Oracle 11g on Ubuntu 8.10 - but
>> jaunty is a little close to the bleeding edge.
>
> I uploaded rc15 on my PPA, you can get it adding in your sources.list the
> following lines:
>
> deb http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main
> deb-src http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main
>
> Cheers,
> Giuseppe.
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
Dan Eicher (dhe) wrote :

(initramfs) ls -la /dev/mapper
crw-rw---- 1 0 0 10, 60 control
drwxr-xr-x 8 0 0 13380 ..
drwxr-xr-x 2 0 0 60 .

Dan H. Eicher wrote:
> I think there might be some issue with the upgrade to rc15 on intrepid.
>
> I added the addition sources as indicated.
> Then:
> apt-get update
> apt-get upgrade dmraid -
> One package being held back.
> apt-get install dmraid -
> dmraidrc15 seem to install fine.
> Reboot.
> No block device found (printed 4 times).
> Messages about searching usb and sda
> Then:
> Gave up waiting for root device. Common problems:
> [insert standard text here]
>
> ALERT! /dev/mapper/isw_hgbhachhf_Mirror1 does not exist. Dropping to a
> shell!
>
>
>
>
> Giuseppe Iuculano wrote:
>> Hi,
>>
>> Dan Eicher ha scritto:
>>> Will rc15 work on 8.10?
>>>
>>> The reason I ask, is I want to run an oracle DB server on this box.
>>> Oracle is very pick as to all the bits and pieces it needs to install.
>>> I've found docs for installing Oracle 11g on Ubuntu 8.10 - but
>>> jaunty is a little close to the bleeding edge.
>>
>> I uploaded rc15 on my PPA, you can get it adding in your sources.list the
>> following lines:
>>
>> deb http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main
>> deb-src http://ppa.launchpad.net/giuseppe-iuculano/ubuntu intrepid main
>>
>> Cheers,
>> Giuseppe.
>>
>
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
Dan Eicher (dhe) wrote :

(initramfs) dmraid -ay
RAID set "isw_hgbhachhf_Mirror" was activated
RAID set "isw_hgbhachhf_Mirror1" was activated
RAID set "isw_hgbhachhf_Mirror5" was activated

(initramfs) ls -la /dev/mapper
crw-rw---- 1 0 0 10, 60 control
brw-rw---- 1 0 6 254, 0 isw_hgbhachhf_Mirror
brw-rw---- 1 0 6 254, 1 isw_hgbhachhf_Mirror1
brw-rw---- 1 0 6 254, 2 isw_hgbhachhf_Mirror5
drwxr-xr-x 8 0 0 13380 ..
drwxr-xr-x 2 0 0 120 .

Giuseppe Iuculano wrote:
> Dan H. Eicher ha scritto:
>> (initramfs) ls -la /dev/mapper
>> crw-rw---- 1 0 0 10, 60 control
>> drwxr-xr-x 8 0 0 13380 ..
>> drwxr-xr-x 2 0 0 60 .
>
>
> Ok, do also dmraid -ay and after again ls -la /dev/mapper
>
>
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Dan Eicher ha scritto:
> (initramfs) dmraid -ay
> RAID set "isw_hgbhachhf_Mirror" was activated
> RAID set "isw_hgbhachhf_Mirror1" was activated
> RAID set "isw_hgbhachhf_Mirror5" was activated
>
> (initramfs) ls -la /dev/mapper
> crw-rw---- 1 0 0 10, 60 control
> brw-rw---- 1 0 6 254, 0 isw_hgbhachhf_Mirror
> brw-rw---- 1 0 6 254, 1 isw_hgbhachhf_Mirror1
> brw-rw---- 1 0 6 254, 2 isw_hgbhachhf_Mirror5
> drwxr-xr-x 8 0 0 13380 ..
> drwxr-xr-x 2 0 0 120 .
>

Ok, so I suspect something goes wrong with the udev rule...

Please, can you paste me the output of:
udevadm info --query=all --name=sda
udevadm info --query=all --name=sdb
dpkg -l | grep dmraid

Cheers,
Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote : Re: [Fwd: Re: [Bug 310928] Re: boot fails after a one drive failure in a mirror]
Download full text (3.9 KiB)

Sorry for the delay - both NIC's on this motherboard died at the same
time and I had to get a motherboard swap.

:~# udevadm info --query=all --name=sda
P: /devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda
N: sda
S: disk/by-id/scsi-1ATA_HITACHI_HUA7210SASUN1.0T_0827GG99LF_GTF000PAKG99LF
S: disk/by-id/ata-HITACHI_HUA7210SASUN1.0T_0827GG99LF_GTF000PAKG99LF
S: disk/by-path/pci-0000:00:1f.2-scsi-0:0:0:0
S: block/8:0
E: ID_VENDOR=ATA
E: ID_MODEL=HITACHI_HUA7210S
E: ID_REVISION=GKAO
E: ID_SERIAL=1ATA_HITACHI_HUA7210SASUN1.0T_0827GG99LF_GTF000PAKG99LF
E: ID_SERIAL_SHORT=ATA_HITACHI_HUA7210SASUN1.0T_0827GG99LF_GTF000PAKG99LF
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_ATA_COMPAT=HITACHI_HUA7210SASUN1.0T_0827GG99LF_GTF000PAKG99LF
E: ID_PATH=pci-0000:00:1f.2-scsi-0:0:0:0
E: ID_FS_USAGE=raid
E: ID_FS_TYPE=isw_raid_member
E: ID_FS_VERSION=1.1.00
E: ID_FS_UUID=
E: ID_FS_UUID_ENC=
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=

~# udevadm info --query=all --name=sdb
P: /devices/pci0000:00/0000:00:1f.2/host3/target3:0:0/3:0:0:0/block/sdb
N: sdb
S: disk/by-id/scsi-1ATA_HITACHI_HUA7210SASUN1.0T_0827GD6J8F_GTF000PAKD6J8F
S: disk/by-id/ata-HITACHI_HUA7210SASUN1.0T_0827GD6J8F_GTF000PAKD6J8F
S: disk/by-path/pci-0000:00:1f.2-scsi-1:0:0:0
S: block/8:16
E: ID_VENDOR=ATA
E: ID_MODEL=HITACHI_HUA7210S
E: ID_REVISION=GKAO
E: ID_SERIAL=1ATA_HITACHI_HUA7210SASUN1.0T_0827GD6J8F_GTF000PAKD6J8F
E: ID_SERIAL_SHORT=ATA_HITACHI_HUA7210SASUN1.0T_0827GD6J8F_GTF000PAKD6J8F
E: ID_TYPE=disk
E: ID_BUS=scsi
E: ID_ATA_COMPAT=HITACHI_HUA7210SASUN1.0T_0827GD6J8F_GTF000PAKD6J8F
E: ID_PATH=pci-0000:00:1f.2-scsi-1:0:0:0
E: ID_FS_USAGE=raid
E: ID_FS_TYPE=isw_raid_member
E: ID_FS_VERSION=1.1.00
E: ID_FS_UUID=
E: ID_FS_UUID_ENC=
E: ID_FS_LABEL=
E: ID_FS_LABEL_ENC=
E: ID_FS_LABEL_SAFE=

~# dpkg -l | grep dmraid
ii dmraid 1.0.0.rc15-1~exp4~ubuntu1
          Device-Mapper Software RAID support tool
ii libdmraid1.0.0.rc14 1.0.0.rc14-2ubuntu12.2
          Device-Mapper Software RAID support tool - s
ii libdmraid1.0.0.rc15 1.0.0.rc15-1~exp4~ubuntu1
          Device-Mapper Software RAID support tool - s

Dan H. Eicher wrote:
>
>
> -------- Original Message --------
> Subject: Re: [Bug 310928] Re: boot fails after a one drive failure in a
> mirror
> Date: Thu, 15 Jan 2009 15:52:15 -0000
> From: Dan Eicher <email address hidden>
> Reply-To: Bug 310928 <email address hidden>
> To: <email address hidden>
> References: <email address hidden>
>
>
> (initramfs) dmraid -ay
> RAID set "isw_hgbhachhf_Mirror" was activated
> RAID set "isw_hgbhachhf_Mirror1" was activated
> RAID set "isw_hgbhachhf_Mirror5" was activated
>
> (initramfs) ls -la /dev/mapper
> crw-rw---- 1 0 0 10, 60 control
> brw-rw---- 1 0 6 254, 0 isw_hgbhachhf_Mirror
> brw-rw---- 1 0 6 254, 1 isw_hgbhachhf_Mirror1
> brw-rw---- 1 0 6 254, 2 isw_hgbhachhf_Mirror5
> drwxr-xr-x 8 0 0 13380 ..
> drwxr-xr-x 2 0 0 120 .
>
>
>
> Giuseppe Iuculano wrote:
>> Dan H. Eicher ha scritto:
>>> (in...

Read more...

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Dan Eicher ha scritto:
> Sorry for the delay - both NIC's on this motherboard died at the same
> time and I had to get a motherboard swap.

I need some debug logs.
Extract the attached .tar.gz, and you have a dmraid-debug directory

cd dmraid-debug
cp -a sbin/* /sbin/
cp -a 85-dmraid.rules /etc/udev/rules.d/
cat dmraid.initramfs-hook/dmraid > /usr/share/initramfs-tools/hooks/dmraid
update-initramfs -u

Reboot, and you will get /dev/dmraid.log and /dev/dmraid-activate.log

Cheers,
Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote :

Giuseppe Iuculano wrote:
> Dan Eicher ha scritto:
>> Sorry for the delay - both NIC's on this motherboard died at the same
>> time and I had to get a motherboard swap.
>
> I need some debug logs.
> Extract the attached .tar.gz, and you have a dmraid-debug directory
>
> cd dmraid-debug
> cp -a sbin/* /sbin/
> cp -a 85-dmraid.rules /etc/udev/rules.d/
> cat dmraid.initramfs-hook/dmraid > /usr/share/initramfs-tools/hooks/dmraid
> update-initramfs -u
>
> Reboot, and you will get /dev/dmraid.log and /dev/dmraid-activate.log
>
> Cheers,
> Giuseppe.
>
>
> ** Attachment added: "dmraid-debug.tar.gz"
> http://launchpadlibrarian.net/21275425/dmraid-debug.tar.gz
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Dan Eicher ha scritto:

>> ** Attachment added: "dmraid-debug.tar.gz"
>> http://launchpadlibrarian.net/21275425/dmraid-debug.tar.gz

Please attach also /dev/dmraid-activate.log.

Cheers,
Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote :

Giuseppe Iuculano wrote:
> Dan Eicher ha scritto:
>
>>> ** Attachment added: "dmraid-debug.tar.gz"
>>> http://launchpadlibrarian.net/21275425/dmraid-debug.tar.gz
>
> Please attach also /dev/dmraid-activate.log.
>
> Cheers,
> Giuseppe.
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

description: updated
Changed in dmraid:
status: New → Confirmed
Revision history for this message
Dan Eicher (dhe) wrote :

FYI - Despite upgrading to this newer version - when I reboot, the machine still shows in the BIOS as RAID group is in a status of rebuild.

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

From ataraid mailing list:

The handling of group RAID sets has changed in rc15 in order to allow
for eg. isw RAID volumes to be selected, hence this is intended.
Wildcard support needs adding in order to allow for easier name
selection.
Patches welcome ;-)

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Hi,

I've uploaded a snapshot dmraid version on my PPA. Could you try that version please?

For intrepid:
deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu intrepid main

For jaunty:
deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu jaunty main

@Dan: Make sure you have the original /etc/udev/rules.d/85-dmraid.rules before upgrade

Cheers,
Giuseppe.

Revision history for this message
Dan Eicher (dhe) wrote : Re: [Bug 310928] Re: dmraid-activate is broken for isw arrays (dmraid rc15)

Hi,
  I'm very sorry, I had to move this machine into production, so I went
with Software Raid 1.
Dan

Giuseppe Iuculano wrote:
> Hi,
>
> I've uploaded a snapshot dmraid version on my PPA. Could you try that
> version please?
>
> For intrepid:
> deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu intrepid main
> deb-src http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu intrepid main
>
> For jaunty:
> deb http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu jaunty main
> deb-src http://ppa.launchpad.net/giuseppe-iuculano/ppa/ubuntu jaunty main
>
> @Dan: Make sure you have the original /etc/udev/rules.d/85-dmraid.rules
> before upgrade
>
> Cheers,
> Giuseppe.
>

--
--------------------------| Dan Eicher |---------------------------
mailto:<email address hidden> | Senior System Programmer
http://www.cise.ufl.edu/~dhe | University of Florida
Work Phone : (352) 392-1499 | CISE Department
Work Fax : (352) 392-1220 | CSE 314D
                                    | Gainesville, FL 32611-6120
------------------------------------------------------------------------

Revision history for this message
John Ryan (johnryannz) wrote :

Hi Giuseppe,

I can confirm that your new versions seems to work ok. I had an Intel raid array which the BIOS reported as degraded. In Intrepid 8.10 with rc14 installed, the array made no attempt to repair itself. Installing your version resulted in a clean boot and the array rebuilt itself overnight. The BIOS now report the array as clean.

Thanks!
John

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

Great, committed in the git repository and uploaded to Debian experimental.

Changed in dmraid:
status: Confirmed → Fix Committed
Revision history for this message
John Ryan (johnryannz) wrote :

Hi Giuseppe,

I might have spoken too soon! I just got home from work, turned on my PC and my array no longer exists. The BIOS reports no RAID volumes defined and both my physical disks are listed as offline members. I have no idea whether this problem was caused by dmraid or not. I will try to restore the array from a live CD and let you know how I get on.

John

Revision history for this message
John Ryan (johnryannz) wrote :

Well after a fair bit of mucking around, it looks like I have completely lost my array. The BIOS now reports the array status as "Failed", while /dev/sda is listed as a "Non-RAID Disk" and /dev/sdb is a "Member Disk(0)". However, I cannot seem to be able to add /dev/sda back into the array either in the BIOS or with "dmraid -R isw_bbiechciij_Array /dev/sda". Nor does adding /dev/sda as a hot spare work as it gets added to a new array instead of "isw_bbiechciij_Array" (it will not accept "isw_bbiechciij_Array" as a legal array name to add it to because it is greater than 15 chars long).

The problem all seemed to stem from the fact that when I first re-added a disk to the array last night (prior to the successful rebuild), the name of the array was changed by the BIOS. After a reboot (or in my case, powering off for a day), I then had two different array names and neither could be started. I had to use "dmraid -x isw_daifjieafd_Array" (from either a live CD or the busybox prompt) to delete the new array, then go into the BIOS and re-add the disk again. Unfortunately, this resulted in a new name for the array being generated and so on and so forth. This went on until I deleted the array on /dev/sda instead of the one on /dev/sdb and as a result ended up stuck with the "Failed" array.

Revision history for this message
Giuseppe Iuculano (giuseppe-iuculano) wrote :

John Ryan ha scritto:
> The problem all seemed to stem from the fact that when I first re-added
> a disk to the array last night (prior to the successful rebuild), the
> name of the array was changed by the BIOS. After a reboot (or in my
> case, powering off for a day), I then had two different array names and
> neither could be started. I had to use "dmraid -x isw_daifjieafd_Array"
> (from either a live CD or the busybox prompt) to delete the new array,

whit dmraid rc15 you can try dmraid -R to add a new drive into the array, from
man page:

{-R| --rebuild} RAID-set [device-path]
              Rebuild raid array after a drive has failed and a new drive is
added. For Intel chipset based systems, there are two methods in which a
              new drive is added to the system.

              1. Using OROM to identify a new drive
                  During system reboot, enter OROM and mark the new drive as the
rebuild drive.
                  After booting to the OS, use the dmraid command to rebuild.

                  Example: dmraid -R raid_set

              2. Using dmraid to identify a new drive
                  Boot to the OS and use the dmraid command with the new drive
as the second parameter.

                  Example: dmraid -R raid_set /dev/sdc

              3. Using hot spare drive
                  Mark a drive as hot spare using the "dmraid -f isw -S"
command. Then use the dmraid command to start the rebuild.

                  Example: dmraid -R raid_set

> then go into the BIOS and re-add the disk again. Unfortunately, this
> resulted in a new name for the array being generated and so on and so
> forth. This went on until I deleted the array on /dev/sda instead of
> the one on /dev/sdb and as a result ended up stuck with the "Failed"
> array.
>

Anyway I think this is a different issue, intel rebuild is a new features
introduced in rc15 and it is quite experimental.

Cheers,
Giuseppe.

Revision history for this message
John Ryan (johnryannz) wrote :

Hi Giuseppe,

I concur that this is most likely unrelated. Unfortunately, after much fiddling around I was forced to abandon my array. None of the above commands worked to add a spare or to rebuild. Fortunately, this is only on a test box anyway. When I rebuild it for production use, I will have to carefully weigh my options between dmraid and mdadm.

Thanks for all your work.
John

Revision history for this message
PsYcHoK9 (psychok9) wrote :

Regression bug of dmraid :/

I don't know if i must open a new bug:
I've installed today Jaunty alpha4 and work fine with Ext4 partition but have dmraid_rc15.xxx package that don't work with my Intel ICH10 Raid.
I've typed this and others commands without success:
$ sudo dmraid -ay
Intel etcetc was not activated.
ls /dev/mapper list only "control".

After apt-get purge dmraid, apt-get clean and apt-get autoclean I've installed dmraid_1.0.0.rc14-7_amd64.deb (downloaded from http://www.debian.org/distrib/packages) and it works correctly.
Plase fix it soon.
My mainboard is P5Q Deluxe.

Revision history for this message
PsYcHoK9 (psychok9) wrote :

Last version, dmraid_1.0.0.rc15-1~exp6_amd64.deb, fix the problem? I don't want break my current installation, and my updates is blocked from the old dmraid_1.0.0.rc14.

Revision history for this message
Kyle Jones (mutiny32) wrote :

Fake upstream fix since Launchpad doesn't support Git yet

Changed in dmraid:
status: New → Fix Committed
Revision history for this message
Kyle Jones (mutiny32) wrote :

I would hold off, it looks as if a lot of isw issues are being hammered out still.

Revision history for this message
PsYcHoK9 (psychok9) wrote :

The problem still with latest dmraid_1.0.0.rc15-1~exp6_amd64.deb!
I hold my dmraid_1.0.0.rc14! Fortunately was not installed on my main Ubuntu on the raid array (i've tried it on another Ubuntu on single/normal sata disk).

Revision history for this message
Kyle Jones (mutiny32) wrote :

Committed fix doesn't fix anything.

Changed in dmraid:
status: Fix Committed → Confirmed
status: Fix Committed → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package dmraid - 1.0.0.rc15-1~exp6ubuntu1

---------------
dmraid (1.0.0.rc15-1~exp6ubuntu1) jaunty; urgency=low

  * Sync with Debian, introducing a few changes, which will be in Debian's
    next revision:
  * debian/initramfs/dmraid.initramfs-hook/dmraid: create udev rules dir
    before copying each udev rule
  * debian/dmraid-activate: Refactor code to allow for special casing of
    raid groups and subsets
  * debian/patches/05_kernel-event-handling.patch: Drop, as this was breaking
    RAID0 activation for all metadata types, and the kernel event handling
    setup is present in rc15 anyway (LP: #310928)
  * debian/libdmraid-dev.links: Symlink libdmraid.so since pointing to a broken
    symbolic link in the install file causes the build to FTBFS

dmraid (1.0.0.rc15-1~exp6) experimental; urgency=low

  * [51d68d1] debian/patches/07_isw_metadata_normal_state.patch: Fix
    Metadata is not put in the NORMAL state after dmraid rebuild is
    started manually
  * [8165a84] debian/patches/08_isw_rebuild.patch: Fix ISW Metadata is
    corrupted after rebuilding is started
  * [0f588f5] debian/control: Fix Vcs-Browser field to play nice with
    cl2vcs
  * [d832984] Added libdmraid1.0.0.rc15 symbols file
  * [f0e50b8] Added description in 07_isw_metadata_normal_state.patch
    and 08_isw_rebuild.patch
  * [492e108] debian/dmraid-activate: Activate unconditionally isw array
    (LP: #310928)

dmraid (1.0.0.rc15-1~exp5) experimental; urgency=low

  * [f23f890] debian/patches: Deleted old patch 08_promise-metadata-
    fixes.dpatch
  * [db69b2c] Switch to quilt
  * [e40b076] debian/initramfs/dmraid.initramfs-hook/dmraid: New udev in
    Ubuntu has the default rules installed into /lib/udev/rules.d, so
    refer also to udev rules file in /lib/udev/rules.d
  * [fed9520] debian/dmraid-activate: Ignore case distinctions when grep
    for "No RAID disks"
  * [c85b78f] debian/dmraid.postinst: call udevadm with --action=change
    (Closes: #512771), (LP: #320482)
  * [8d88132] debian/control: Remove priority and section fields in the
    binary package, and fix duplicate-short-description lintian warning
  * [1fd2986] Fixed command-with-path-in-maintainer-script lintian
    warning
  * [36cd8e5] debian/control: Removed initramfs-tools depends
  * [b3eb93f] debian/control: Fixed duplicate-long-description lintian
    warning

 -- Luke Yelavich <email address hidden> Fri, 13 Feb 2009 12:33:43 +1100

Changed in dmraid:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.