bugGNU GRUB - Bugs: bug #40991, nVidia dmraid (fake raid)...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #40991: nVidia dmraid (fake raid) regression

Submitter:  Tomasz Wasiak <tjwasiak>
Submitted:  Mon 23 Dec 2013 09:44:32 AM UTC
   
 
Category:  Disk & Partition Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  Git master
Release:  Reproducibility:  Every Time
Planned Release:  None

Jump to the original submission

Tue 24 Dec 2013 11:04:13 AM UTC, comment #6: 

#30080 works as it should - both with and without device.map

Tomasz Wasiak <tjwasiak>
Mon 23 Dec 2013 07:54:01 PM UTC, comment #5: 

Can you try this updated version?

(file #30080)

Vladimir Serbinenko <phcoder>
Group administrator
Mon 23 Dec 2013 07:27:59 PM UTC, comment #4: 

I thought it will be working as it passed grub-probe -t fs / test (please find attached output). Unfortunately it is not as I was unable to grub-install /dev/mapper/nvidia_heabdefa (grub2-install: error: cannot find a GRUB drive for /dev/mapper/nvidia_heabdefa.  Check your device.map.)

I do not have device.map now, but tried placing it without success.

Detailed output from grub-install also attached.

(file #30078, file #30079)

Tomasz Wasiak <tjwasiak>
Mon 23 Dec 2013 07:04:19 PM UTC, comment #3: 

Could you test attached patch?

(file #30077)

Vladimir Serbinenko <phcoder>
Group administrator
Mon 23 Dec 2013 06:32:06 PM UTC, comment #2: 

Here you are:

grubasek ~ # ls -1 /dev/mapper/* ; for x in /dev/mapper/* ; do echo -e "\n${x}\n" ; dmsetup info "${x}" ; dmsetup table "${x}" ; done
/dev/mapper/control           
/dev/mapper/nvidia_heabdefa   
/dev/mapper/nvidia_heabdefap1 
/dev/mapper/nvidia_heabdefap2
/dev/mapper/nvidia_heabdefap3
/dev/mapper/nvidia_heabdefap5
/dev/mapper/nvidia_heabdefap6

/dev/mapper/control

Device does not exist.
Command failed
device-mapper: table ioctl on control failed: Nie ma takiego urzÄ…dzenia ani adresu
Command failed

/dev/mapper/nvidia_heabdefa

Name:              nvidia_heabdefa
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        5
Event number:      0
Major, minor:      254, 0
Number of targets: 1
UUID: DMRAID-nvidia_heabdefa

  1. 312598528 striped 2 128 8:0 0 8:16 0


/dev/mapper/nvidia_heabdefap1

Name:              nvidia_heabdefap1
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      254, 1
Number of targets: 1
UUID: DMRAID-nvidia_heabdefap1

  1. 125829120 linear 254:0 2048


/dev/mapper/nvidia_heabdefap2

Name:              nvidia_heabdefap2
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        0
Event number:      0
Major, minor:      254, 2
Number of targets: 1
UUID: DMRAID-nvidia_heabdefap2

  1. 125829120 linear 254:0 125831168


/dev/mapper/nvidia_heabdefap3

Name:              nvidia_heabdefap3
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 3
Number of targets: 1
UUID: DMRAID-nvidia_heabdefap3

  1. 45207808 linear 254:0 251660288


/dev/mapper/nvidia_heabdefap5

Name:              nvidia_heabdefap5
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        1
Event number:      0
Major, minor:      254, 4
Number of targets: 1
UUID: DMRAID-nvidia_heabdefap5

  1. 9437184 linear 254:0 296870144


/dev/mapper/nvidia_heabdefap6

Name:              nvidia_heabdefap6
State:             ACTIVE
Read Ahead:        256
Tables present:    LIVE
Open count:        2
Event number:      0
Major, minor:      254, 5
Number of targets: 1
UUID: DMRAID-nvidia_heabdefap6

  1. 6289152 linear 254:0 306309376

grubasek ~ #

Tomasz Wasiak <tjwasiak>
Mon 23 Dec 2013 01:02:05 PM UTC, comment #1: 

Can you paste result of:
for x in /dev/mapper/*; do
echo "$x"
dmsetup info "$x"
dmsetup table "$x"
done

Vladimir Serbinenko <phcoder>
Group administrator
Mon 23 Dec 2013 09:44:32 AM UTC, original submission:  

Part of commit 386701a8fea5a55fbbf62d6e1739eb9c8f41ca26 makes grub unusable on nVidia dmraid as grub-probe is not able to "find a GRUB drive for /dev/mapper/nvidia_heabdefap3" (root partition including /boot).
Please find attached output from grub-probe -vvvvv -t fs / from:
 - commit 5307078763e6ceae894ef72e34599e02da265b28 (dated 18th of September, 2013) - last working (first working for me was 25fc51a87929262c1cc132bc29cc083ce98f0e0e dated 15th of April, 2013)
 - next commit (386701a8fea5a55fbbf62de1739eb9c8f41ca26, dated 19th of September, 2013) - not working
 - same commit (386701a8fea5a55fbbf62de1739eb9c8f41ca26) partially commited - again working
 - commit 62956fe7b97c8a12e1f88828610ce977dd457637 (dated 23rd of December, 2013) with attached patch applied - working

I narrowed the issue to call to dm_task_destroy() inside of grub_util_get_dm_mode_linear_info() - please find attached patch against commit 62956fe7b97c8a12e1f88828610ce977dd457637.

Hardware details:
 - nForce 570 SLI based mainboard (Gigabyte GA-M57SLI-S4) - quite dated, newest beta BIOS applied (version FHm)
 - AMD Athlon X2 6000 CPU running amd64 no-multilib Gentoo testing with kernel 3.4.75
 - BIOS fake-raid 0 (2 80GB Western Digital SATA1 drives) + 1TB Western Digital SATA2 drive running in AHCI mode

Please do not hesitate to ask if you need any further details.

Tomasz Wasiak <tjwasiak>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #30080:  dmraid2.diff added by phcoder (7KiB - text/x-diff)
file #30078:  probe-23122013-2020.out added by tjwasiak (44KiB - application/octet-stream - grub-probe and grub-install output after patching with file #30077)
file #30079:  install-20131223-2025.out added by tjwasiak (95KiB - application/octet-stream - grub-probe and grub-install output after patching with file #30077)
file #30077:  dmraid.diff added by phcoder (7KiB - text/x-diff)
file #30069:  probe-5307078763e6ceae894ef72e34599e02da265b28.out added by tjwasiak (36KiB - application/octet-stream - Output from different version of grub-probe)
file #30070:  probe-386701a8fea5a55fbbf62d6e1739eb9c8f41ca26-patched.out added by tjwasiak (37KiB - application/octet-stream - Output from different version of grub-probe)
file #30071:  probe-386701a8fea5a55fbbf62d6e1739eb9c8f41ca26.out added by tjwasiak (16KiB - application/octet-stream - Output from different version of grub-probe)
file #30072:  probe-62956fe7b97c8a12e1f88828610ce977dd457637-patched.out added by tjwasiak (36KiB - application/octet-stream - Output from different version of grub-probe)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by tjwasiak (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-12-24 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2013-12-23 phcoder Attached File- Added dmraid2.diff, #30080
    2013-12-23 tjwasiak Attached File- Added probe-23122013-2020.out, #30078
        Attached File- Added install-20131223-2025.out, #30079
    2013-12-23 phcoder Attached File- Added dmraid.diff, #30077
    2013-12-23 tjwasiak Attached File- Added 62956fe7b97c8a12e1f88828610ce977dd457637-nv_dmraid_fix.patch, #30073
    2013-12-23 tjwasiak Attached File- Added probe-5307078763e6ceae894ef72e34599e02da265b28.out, #30069
        Attached File- Added probe-386701a8fea5a55fbbf62d6e1739eb9c8f41ca26-patched.out, #30070
        Attached File- Added probe-386701a8fea5a55fbbf62d6e1739eb9c8f41ca26.out, #30071
        Attached File- Added probe-62956fe7b97c8a12e1f88828610ce977dd457637-patched.out, #30072

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code