Public bug reported:

Classification the type of defect:
==================================

  DEFECT :distro
  TYPE OF DEFECT:Ubuntu 14.04

Description of the defect: [[ Guest VM does not list all  scsi disks in
"fdisk -l" .

1. Installed the Ubuntu Guest with 20 scsi disks ( qcow2 formatted , 5G
each , These disks are present on the nfs mount )

# uname -a
Linux ubuntu 3.13.0-23-generic #45-Ubuntu SMP Fri Apr 4 06:58:01 UTC 2014 
ppc64le ppc64le ppc64le GNU/Linux
# ppc64_cpu --smt
SMT is on

2.  fdisk -l doesnt list all the disks .. It lists from sda till sdh ( 8
disks) . whereas sdi till sdu arent listed. All the disks are created on
the nfs mount point.

root@ubuntu:/dev# fdisk -l
The number of cylinders for this disk is set to 20480.
This is larger than 1024, and may cause problems with:
1) software that runs at boot time (e.g., LILO)
2) booting and partitioning software form other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Disk /dev/sda: 64 heads, 32 sectors, 20480 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
/dev/sda1            1        1    20480 20971519+  ee  Unknown
Partition 1 does not end on cylinder boundary:
     phys=(1023, 254, 63) should be (1023, 63, 32)
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdb: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdc: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdd: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sde: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdf: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdg: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System
Warning: invalid flag 0000 of partition table 4 will be corrected by w(rite)

Disk /dev/sdh: 166 heads, 62 sectors, 1018 cylinders
Units = cylinders of 10292 * 512 bytes

   Device Boot   Begin    Start      End   Blocks   Id  System


root@ubuntu:/dev# ls -al sd
sda   sda2  sdb   sdd   sdf   sdh   sdj   sdl   sdn   sdp   sdr   sdt
sda1  sda3  sdc   sde   sdg   sdi   sdk   sdm   sdo   sdq   sds   sdu

SLOF detects all the disks successfully
Populating /vdevice/v-scsi@2000
       SCSI: Looking for devices
          8006000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8005000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8004000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8003000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8002000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8001000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8000000000000000 DISK     : "IBM      2145             0000"
Populating /vdevice/v-scsi@3000
       SCSI: Looking for devices
          8006000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8005000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8004000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8003000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8002000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8001000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8000000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
Populating /vdevice/v-scsi@4000
       SCSI: Looking for devices
          8006000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8005000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8004000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8003000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8002000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8001000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
          8000000000000000 DISK     : "QEMU     QEMU HARDDISK    1.6."
Populating /vdevice/v-scsi@5000
       SCSI: Looking for devices
          8000000000000000 CD-ROM   : "QEMU     QEMU CD-ROM      1.6."
Populating /vdevice/vty@30000000

3. On the host machine , the qcow2 disk images are present on the nfs
mount point

df -h 
coolp2:/kvm_lpm                              276G  129G  133G  50% /mnt/lpm1

On /mnt/lpm1 : I have created 20 disks of qcow2 format ( 5G each )
[root@hudkvm lpm1]# ls -al | grep div
-rw-r--r--. 1 nobody nobody   526188544 Apr 11 06:50 div_extra10.qcow2
-rw-r--r--. 1 nobody nobody   536674304 Apr 11 06:50 div_extra11.qcow2
-rw-r--r--. 1 nobody nobody   523042816 Apr 11 06:50 div_extra12.qcow2
-rw-r--r--. 1 nobody nobody   515702784 Apr 11 06:50 div_extra13.qcow2
-rw-r--r--. 1 nobody nobody   521207808 Apr 11 06:50 div_extra14.qcow2
-rw-r--r--. 1 nobody nobody   530120704 Apr 11 06:50 div_extra15.qcow2
-rw-r--r--. 1 nobody nobody   532742144 Apr 11 06:50 div_extra16.qcow2
-rw-r--r--. 1 nobody nobody   524353536 Apr 11 06:50 div_extra17.qcow2
-rw-r--r--. 1 nobody nobody   523042816 Apr 11 06:50 div_extra18.qcow2
-rw-r--r--. 1 nobody nobody   529334272 Apr 11 06:50 div_extra19.qcow2
-rw-r--r--. 1 nobody nobody   527237120 Apr 11 06:50 div_extra1.qcow2
-rw-r--r--. 1 nobody nobody   522387456 Apr 11 06:50 div_extra20.qcow2
-rw-r--r--. 1 nobody nobody   519897088 Apr 11 06:50 div_extra2.qcow2
-rw-r--r--. 1 nobody nobody   533004288 Apr 11 06:50 div_extra3.qcow2
-rw-r--r--. 1 nobody nobody   521469952 Apr 11 06:50 div_extra4.qcow2
-rw-r--r--. 1 nobody nobody   528809984 Apr 11 06:50 div_extra5.qcow2
-rw-r--r--. 1 nobody nobody   524091392 Apr 11 06:50 div_extra6.qcow2
-rw-r--r--. 1 nobody nobody   539623424 Apr 11 06:50 div_extra7.qcow2
-rw-r--r--. 1 nobody nobody   525926400 Apr 11 06:50 div_extra8.qcow2
-rw-r--r--. 1 nobody nobody   527630336 Apr 11 06:50 div_extra9.qcow2

4. virsh dump divya-tmp-multi

<domain type='kvm'>
  <name>divya-tmp-multi</name>
  <uuid>9a449514-9a4f-4bbc-801c-04d878e9ece4</uuid>
  <memory unit='KiB'>5242880</memory>
  <currentMemory unit='KiB'>5242880</currentMemory>
  <vcpu placement='static'>32</vcpu>
  <os>
    <type arch='ppc64' machine='pseries'>hvm</type>
    <boot dev='hd'/>
    <boot dev='cdrom'/>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='custom' match='exact'>
    <model fallback='allow'>power7</model>
    <topology sockets='1' cores='8' threads='4'/>
    <numa>
      <cell cpus='0-15' memory='2621440'/>
      <cell cpus='16-31' memory='2621440'/>
    </numa>
  </cpu>
 <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>preserve</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-ppc64</emulator>
    <disk type='block' device='lun'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/dev/disk/by-id/scsi-36005076802810c1fa000000000000046'/>
      <target dev='sda' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra1.qcow2'/>
      <target dev='sdb' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra2.qcow2'/>
      <target dev='sdc' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra3.qcow2'/>
      <target dev='sdd' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra4.qcow2'/>
      <target dev='sde' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='4'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra5.qcow2'/>
      <target dev='sdf' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='5'/>
    </disk>
...............................................
  <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/mnt/lpm1/div_extra20.qcow2'/>
      <target dev='sdu' bus='scsi'/>
      <address type='drive' controller='2' bus='0' target='0' unit='6'/>
    </disk>
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source file='/mnt/lpm1/trusty-server-ppc64el.iso'/>
      <target dev='sdv' bus='scsi'/>
      <readonly/>
      <address type='drive' controller='3' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='scsi' index='0' model='ibmvscsi'>
      <address type='spapr-vio' reg='0x2000'/>
    </controller>
    <controller type='scsi' index='1'>
      <address type='spapr-vio' reg='0x3000'/>
    </controller>
    <controller type='scsi' index='2'>
      <address type='spapr-vio' reg='0x4000'/>
  </controller>
    <controller type='scsi' index='3'>
      <address type='spapr-vio' reg='0x5000'/>
    </controller>
    <controller type='usb' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' 
function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='52:54:00:f8:f7:c9'/>
      <source bridge='brenP3p9s0f3'/>
  <model type='spapr-vlan'/>
      <address type='spapr-vio' reg='0x1000'/>
    </interface>
    <serial type='pty'>
      <target port='0'/>
      <address type='spapr-vio' reg='0x30000000'/>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
      <address type='spapr-vio' reg='0x30000000'/>
    </console>
    <memballoon model='none'/>
  </devices>
  <seclabel type='none' model='selinux'/>
</domain>


NOTE:-
-----

System is on a private network. Access the private network via SSH to 
"banner.isst.aus.stglabs.ibm.com" using your GSA ID and password.
(Banner itself is behind a BSO, so must authenticate through that first.)

or
ssh banner.isst.aus.stglabs.ibm.com [debug/don2rry ]

Host : -

lizkvm.isst.aus.stglabs.ibm.com [10.33.11.3]
[root/don2rry ]

Guests : -

lizg18.isst.aus.stglabs.ibm.com [root/don2rry ]
lizg18 IP: 10.33.14.21

To open a Guest console

virsh console lizg18 --force

-----------------------------------------------------------------------------
                             TESTING INFORMATION
-----------------------------------------------------------------------------

SYSTEM INFORMATION
------------------
  HOST NAME or NETWORK ADDRESS: geokvm.isst.aus.stglabs.ibm.com (10.33.10.249)

   FSP NAME and FSP ip fsp-geo.isst.aus.stglabs.ibm.com. (10.33.10.248)

  KVM BUILD LEVEL: - Frobisher 13
  Sapphire FIRMWARE LEVEL: - fips810/b0324b_1413.810

Classification the type of defect

  DEFECT :distro
  TYPE OF DEFECT:Ubuntu 14.04

-----------------------------------------------------------------------------
                            DEBUGGING INFORMATION
-----------------------------------------------------------------------------

DEBUG / LOGIN INFORMATION
-------------------------
  ERROR LOG: on local machine
  FSP LOGIN: see name above dev/FipSdev

RECENT SYSTEM CHANGES
-----------------------------------------
  none

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1306545

Title:
  ISST:Severity-3:20 scsi disks in a VM, fisk -l doesnot list all the
  disks available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1306545/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to