Bug 25046 - Hersteller, Modell und Größe zu (Festplaten-)Block-Devices anzeigen
Hersteller, Modell und Größe zu (Festplaten-)Block-Devices anzeigen
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 3.0
Other Linux
: P5 enhancement (vote)
: UCS 3.2
Assigned To: Philipp Hahn
Moritz Muehlenhoff
: interim-1
: 19614 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-01 10:16 CET by Philipp Hahn
Modified: 2013-11-19 06:44 CET (History)
3 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Show vendor, model and size (8.30 KB, text/plain)
2013-04-04 16:24 CEST, Philipp Hahn
Details
Screenshot: exmaple on qemu (11.73 KB, image/png)
2013-07-12 11:20 CEST, Philipp Hahn
Details
New look (12.66 KB, image/png)
2013-07-19 14:03 CEST, Philipp Hahn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2011-12-01 10:16:38 CET
Der Installer zeigt nur die Namen der Block-Devices (/dev/hdX, /dev/sdX, /dev/xvdX, /dev/vdX, /dev/srY) an, was eine Identifizierung erschwert.
Der Debian-Installer zeigt dazu zumindest die Informationen aus /sys/block/$DEV/{device/{vendor,model},size} an, was bei der Identifizierung des richtigen Block-Devices hilft (insbesondere bei der Installation des MBR).

# grep . /sys/block/*[hsv][dr]?/{device/{vendor,model},size}
/sys/block/sda/device/vendor:ATA     
/sys/block/sr0/device/vendor:HL-DT-ST
/sys/block/sda/device/model:ST3500413AS     
/sys/block/sr0/device/model:DVDROM DH18NS40 
/sys/block/sda/size:976773168
/sys/block/sr0/size:2097151
Comment 1 Philipp Hahn univentionstaff 2013-04-04 16:24:15 CEST
Created attachment 5160 [details]
Show vendor, model and size
Comment 2 Philipp Hahn univentionstaff 2013-04-09 08:50:41 CEST
*** Bug 19614 has been marked as a duplicate of this bug. ***
Comment 3 Philipp Hahn univentionstaff 2013-07-12 11:20:34 CEST
Created attachment 5321 [details]
Screenshot: exmaple on qemu

Notice that qmeu-1.1 only sets vendor="0x1af4" and no model for virtio-Devices; for emulated IDE devices and on read hardware it provides more useful information.

Please note that the feature is important for installing UCS from USB sticks, since there the USB-Stick is detected as an additional hard disk. Figuring out the right disk for grub from just the name /dev/sd[a-z] is very complicated; and the installer by default picks the wrong device (the USB stick), so the computer is unbootable after a default installation.

The patch also removes the USB stick used for installation (AKA $cdrom_device) from the list of possible candidates of disks, where GRUB is to be installed.
Comment 4 Philipp Hahn univentionstaff 2013-07-18 13:40:06 CEST
svn42524,42525
univention-installer_9.0.15-1.1079.201307181258

svn42567: During the boot loader installation more device details are displayed. The installation device is automatically ignored.
Comment 5 Philipp Hahn univentionstaff 2013-07-19 14:03:57 CEST
Created attachment 5333 [details]
New look

<disk type='file' device='cdrom'>
  <target dev='hda' bus='ide'/><!-- not shown -->
</disk>
<disk type='file' device='disk'>
  <target dev='hdc' bus='ide'/><!-- /dev/sdb: ATA: QEMU HARDDISK -->
</disk>
<controller type='ide' index='0'>
  <!-- IDE interface: Intel Corporation 82371SB PIIX3 IDE [Natoma/Triton II] -->
  <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>

<disk type='file' device='disk'>
  <target dev='sda' bus='scsi'/><!-- /dev/sda: QEMU: QEMU HARDDISK -->
</disk>
<controller type='scsi' index='0'>
  <!-- SCSI storage controller: LSI Logic / Symbios Logic 53c895a -->
  <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
</controller>

<disk type='file' device='disk'>
  <target dev='vda' bus='virtio'/><!-- /dev/vda: 0x1af4: Unknown -->
</disk>
<!-- SCSI storage controller: Red Hat, Inc Virtio block device -->
Comment 6 Moritz Muehlenhoff univentionstaff 2013-08-13 14:41:02 CEST
I successfully tested the device display feature on Xen, KVM and on a hardware system (xen10):
- Under KVM the hard disks are presented as (0x1af4: Unknown)
- Under Xen the hard disks are presented as (Unknown: Unknown)
- On xen10 the hard disks are presented as (ATA: SAMSUNG HD 161GJ)

I then wrote the current 3.2 ISO to a USB stick and made an installation on one of the systems in the training room. The USB stick carrying the installation medium wasn't offered as a target for GRUB installation, so installations from USB sticks are now much more user-friendly.

Changelog entry is present.
Comment 7 Stefan Gohmann univentionstaff 2013-11-19 06:44:01 CET
UCS 3.2 has been released:
 http://docs.univention.de/release-notes-3.2-en.html
 http://docs.univention.de/release-notes-3.2-de.html

If this error occurs again, please use "Clone This Bug".