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

Submitted by:  Tomasz Wasiak <tjwasiak>
Submitted on:  Mon 23 Dec 2013 09:44:32 AM UTC  
 
Category: Disk & PartitionSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: None

(Jump to the original submission 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>
Project 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>
Project 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>
Project 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>

 

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
  • -unavailable- added by phcoder (Posted a comment)
  • -unavailable- added by tjwasiak (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 Dec 2013 04:36:40 PM UTCphcoderStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Mon 23 Dec 2013 07:54:01 PM UTCphcoderAttached File-=>Added dmraid2.diff, #30080
    Mon 23 Dec 2013 07:27:59 PM UTCtjwasiakAttached File-=>Added probe-23122013-2020.out, #30078
      Attached File-=>Added install-20131223-2025.out, #30079
    Mon 23 Dec 2013 07:04:19 PM UTCphcoderAttached File-=>Added dmraid.diff, #30077
    Mon 23 Dec 2013 09:45:15 AM UTCtjwasiakAttached File-=>Added 62956fe7b97c8a12e1f88828610ce977dd457637-nv_dmraid_fix.patch, #30073
    Mon 23 Dec 2013 09:44:32 AM UTCtjwasiakAttached 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.1-cleanup1