dmraid activates nvidia Fakeraid with missing disk

Bug #294938 reported by root_tux_linux
6
Affects Status Importance Assigned to Milestone
dmraid (Ubuntu)
Expired
Undecided
Unassigned
Nominated for Jaunty by John B. Anderson

Bug Description

Hi, again me, ;)

I've 3 S-ATA HDD in my PC and i use this HDD's with nvidia fakeRAID (Raid0)

ubuntu@ubuntu:~$ sudo dmraid -b
/dev/sda: 625142448 total, "S0MQJ1DQ203428"
/dev/sdb: 625142448 total, "S0MQJ9CQ205588"
/dev/sdc: 625142448 total, "S0MQJ1FP800479"

Each HDD has 320GB. 3x 320GB = 960GB

And here is the problem.

dmraid + Ubuntu can find only 2 HDD's!

ubuntu@ubuntu:~$ sudo dmraid -r
/dev/sdb: nvidia, "nvidia_ecbcchff", stripe, ok, 625142446 sectors, data@ 0
/dev/sda: nvidia, "nvidia_ecbcchff", stripe, ok, 625142446 sectors, data@ 0
ubuntu@ubuntu:~$

Disk /dev/mapper/nvidia_ecbcchff: 640.1 GB, 640145817600 bytes
255 heads, 63 sectors/track, 77826 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0ec25e23

                      Device Boot Start End Blocks Id System
/dev/mapper/nvidia_ecbcchff1 * 1 58005 465920000 7 HPFS/NTFS

Command (m for help):

ubuntu@ubuntu:~$ sudo dmraid -ay -vvv -d
WARN: locking /var/lock/dmraid/.lock
NOTICE: /dev/sdd: asr discovering
NOTICE: /dev/sdd: ddf1 discovering
NOTICE: /dev/sdd: hpt37x discovering
NOTICE: /dev/sdd: hpt45x discovering
NOTICE: /dev/sdd: isw discovering
NOTICE: /dev/sdd: jmicron discovering
NOTICE: /dev/sdd: lsi discovering
NOTICE: /dev/sdd: nvidia discovering
NOTICE: /dev/sdd: pdc discovering
NOTICE: /dev/sdd: sil discovering
NOTICE: /dev/sdd: via discovering
NOTICE: /dev/sdc: asr discovering
NOTICE: /dev/sdc: ddf1 discovering
NOTICE: /dev/sdc: hpt37x discovering
NOTICE: /dev/sdc: hpt45x discovering
NOTICE: /dev/sdc: isw discovering
NOTICE: /dev/sdc: jmicron discovering
NOTICE: /dev/sdc: lsi discovering
NOTICE: /dev/sdc: nvidia discovering
NOTICE: /dev/sdc: pdc discovering
NOTICE: /dev/sdc: sil discovering
NOTICE: /dev/sdc: via discovering
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: /dev/sdb: jmicron discovering
NOTICE: /dev/sdb: lsi discovering
NOTICE: /dev/sdb: nvidia discovering
NOTICE: /dev/sdb: nvidia metadata discovered
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: /dev/sda: jmicron discovering
NOTICE: /dev/sda: lsi discovering
NOTICE: /dev/sda: nvidia discovering
NOTICE: /dev/sda: nvidia metadata discovered
NOTICE: /dev/sda: pdc discovering
NOTICE: /dev/sda: sil discovering
NOTICE: /dev/sda: via discovering
DEBUG: _find_set: searching nvidia_ecbcchff
DEBUG: _find_set: not found nvidia_ecbcchff
DEBUG: _find_set: searching nvidia_ecbcchff
DEBUG: _find_set: not found nvidia_ecbcchff
NOTICE: added /dev/sdb to RAID set "nvidia_ecbcchff"
DEBUG: _find_set: searching nvidia_ecbcchff
DEBUG: _find_set: found nvidia_ecbcchff
DEBUG: _find_set: searching nvidia_ecbcchff
DEBUG: _find_set: found nvidia_ecbcchff
NOTICE: added /dev/sda to RAID set "nvidia_ecbcchff"
DEBUG: checking nvidia device "/dev/sda"
DEBUG: checking nvidia device "/dev/sdb"
DEBUG: set status of set "nvidia_ecbcchff" to 16
RAID set "nvidia_ecbcchff" already active
INFO: Activating stripe RAID set "nvidia_ecbcchff"
NOTICE: discovering partitions on "nvidia_ecbcchff"
NOTICE: /dev/mapper/nvidia_ecbcchff: dos discovering
NOTICE: /dev/mapper/nvidia_ecbcchff: dos metadata discovered
DEBUG: _find_set: searching nvidia_ecbcchff1
DEBUG: _find_set: not found nvidia_ecbcchff1
NOTICE: created partitioned RAID set(s) for /dev/mapper/nvidia_ecbcchff
RAID set "nvidia_ecbcchff1" already active
INFO: Activating partition RAID set "nvidia_ecbcchff1"
WARN: unlocking /var/lock/dmraid/.lock
DEBUG: freeing devices of RAID set "nvidia_ecbcchff"
DEBUG: freeing device "nvidia_ecbcchff", path "/dev/sda"
DEBUG: freeing device "nvidia_ecbcchff", path "/dev/sdb"
DEBUG: freeing devices of RAID set "nvidia_ecbcchff1"
DEBUG: freeing device "nvidia_ecbcchff1", path "/dev/mapper/nvidia_ecbcchff"

My Raid works with Windows XP, Gentoo and Arch Linux! (I can show you a Pic).

I had the same Problem with 8.04 (https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/254923).

Revision history for this message
root_tux_linux (i-root-tux-linux-hotmail-com) wrote :
Revision history for this message
Phillip Susi (psusi) wrote :

I marked your original bug as a duplicate since it is caused by your bios making use of the Host Protected Area. Take a look at the dup bug report for suggested workarounds. You appear to have a second issue though, which is that dmraid is going ahead and activating the array anyway even though it is missing a disk. This should not be happening. Please post the files generated by dmraid -rD.

Changed in dmraid:
status: New → Incomplete
Revision history for this message
John B. Anderson (johnbanderson) wrote :
Download full text (3.2 KiB)

I believe I have a similar issue, except dmraid does not activate the array. I've read a number of similar bugs, so I'll attach the outputs that I think might be useful:

ubuntu@ubuntu:~$ sudo dmraid -ay -vvvv -dddd
WARN: locking /var/lock/dmraid/.lock
NOTICE: skipping removable device /dev/sdc
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: /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: /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
DEBUG: _find_set: searching isw_daeeifacja
DEBUG: _find_set: not found isw_daeeifacja
DEBUG: _find_set: searching isw_daeeifacja_RAID0
DEBUG: _find_set: searching isw_daeeifacja_RAID0
DEBUG: _find_set: not found isw_daeeifacja_RAID0
DEBUG: _find_set: not found isw_daeeifacja_RAID0
NOTICE: added /dev/sda to RAID set "isw_daeeifacja"
DEBUG: checking isw device "/dev/sda"
ERROR: isw device for volume "RAID0" broken on /dev/sda in RAID set "isw_daeeifacja_RAID0"
ERROR: isw: wrong # of devices in RAID set "isw_daeeifacja_RAID0" [1/2] on /dev/sda
DEBUG: set status of set "isw_daeeifacja_RAID0" to 2
RAID set "isw_daeeifacja_RAID0" was not activated
INFO: Activating GROUP raid set "isw_daeeifacja"
WARN: unlocking /var/lock/dmraid/.lock
DEBUG: freeing devices of RAID set "isw_daeeifacja_RAID0"
DEBUG: freeing device "isw_daeeifacja_RAID0", path "/dev/sda"
DEBUG: freeing devices of RAID set "isw_daeeifacja"
DEBUG: freeing device "isw_daeeifacja", path "/dev/sda"

ubuntu@ubuntu:~$ sudo dmraid -r
/dev/sda: isw, "isw_daeeifacja", GROUP, ok, 488397166 sectors, data@ 0

ubuntu@ubuntu:~$ sudo dmraid -s
ERROR: isw device for volume "RAID0" broken on /dev/sda in RAID set "isw_daeeifacja_RAID0"
ERROR: isw: wrong # of devices in RAID set "isw_daeeifacja_RAID0" [1/2] on /dev/sda
*** Group superset isw_daeeifacja
--> Subset
name : isw_daeeifacja_RAID0
size : 488391936
stride : 256
type : stripe
status : broken
subsets: 0
devs : 1
spares : 0

ubuntu@ubuntu:~$ sudo fdisk -l /dev/sda; sudo fdisk -l /dev/sdb

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xb8feb8fe

   Device Boot Start End Blocks Id System
/dev/sdb1 1 3134 25165824 7 HP...

Read more...

Revision history for this message
John B. Anderson (johnbanderson) wrote :

Oh, I'm trying to install Jaunty using the FakeRaidHowTo. Blocked on step 4d: sudo dmraid -ay

Revision history for this message
Danny Wood (danwood76) wrote :

John this is not a forum.

It looks as though you have not built the array properly with the BIOS utility.
Also you could have formatted the /dev/sdb to something else and erased the metadata.

Try rebuilding the array and repartitioning.

Revision history for this message
John B. Anderson (johnbanderson) wrote :

Indeed, I've seen this same bug many times on a number of forums (ubuntuforums in particular), and none of them have any idea what to do with it. I believe that this is a bug for the reasons mentioned below. If you think this is a different bug than the one I've commented on, please advise me to file a new one.

I have rebuilt the array multiple times (with 2 disks, there's only one way to do it on an ICH10R, as far as I can tell), and tried to install Jaunty on both a virgin array and after a Windows 7 installation. Windows hasn't had any difficulty recognizing the array, leading me to believe that this is a bug in the production version of dmraid (though I've tried a few older versions without success).

I'm not aware of any method of partitioning an unrecognized array.

Revision history for this message
Danny Wood (danwood76) wrote :

Ah right may I point you to this bug:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/372170

and also:
https://bugs.launchpad.net/bugs/219393

It could be to do with the HPA, there is a workaround in those bug reports:
https://bugs.launchpad.net/ubuntu/+source/dmraid/+bug/219393/comments/30

Revision history for this message
xteejx (xteejx-deactivatedaccount) wrote :

This bug hasn't been updated for quite some time. Can you tell us if this is an issue for you in Maverick 10.10 please? Thank you.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for dmraid (Ubuntu) because there has been no activity for 60 days.]

Changed in dmraid (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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