Bug #84

Enumeration block devices by installer for grub.conf

Added by Алексей Штепа over 9 years ago. Updated over 8 years ago.

Status:New Start:01/22/2010
Priority:High Due date:
Assignee:Mikhail Hiretsky % Done:

0%

Category:Calculate Utilities Spent time: -
Target version:-
Votes: 1

Description

At moment of the install system by calculate utility, the programm algorithm
is wrong defines a block devices enumeration...
I think because it get data from fdisk command output, but it`s give a
incorrect result in some situations.

For example

My server has a RAID Controller, who can support work together are two disk array.
And I have this output fdisk:

fdisk -l | grep "/dev/sd" 
Disk /dev/sdb: 749.5 Gb, 749461307392 bytes
/dev/sdb1               1       91116   731889238+  83  Linux
Disk /dev/sda: 293.8 Gb, 293810995200 bytes
/dev/sda1               1       12289    12583920   83  Linux
/dev/sda2           12290       24578    12583936   83  Linux
/dev/sda3           24579       32771     8389632   82  Linux swap / Solaris
/dev/sda4           32772      280200   253367296   83  Linux

You can see what fdisk define a /dev/sdb as first block disk device, itsn`t corectly.
To verify this - I use udev sysfs and put next command:
ls -laF /sys/block/ | grep sd
lrwxrwxrwx  1 root root 0 Jun 23 02:11 sda -> ../devices/pci0000:00/ ... /target0:0:0/0:0:0:0/block/sda/
lrwxrwxrwx  1 root root 0 Jun 23 02:11 sdb -> ../devices/pci0000:00/ ... /target0:0:1/0:0:1:0/block/sdb/

There we can see, how enumerate are block devices on PCI bus. :)

But when I want install a system to /dev/sda2 slice, calculate utility make it correctltly, but in grub.conf, in the boot item, it write some like:

root (hd1,1)

I think, what it a simple small bug, and not difficult for fixing ;-)

Best regards, Alexey Shtepa.

History

Updated by Alexander Tratsevskiy over 8 years ago

  • Assignee set to Mikhail Hiretsky

Also available in: Atom PDF

Thank you!