Public bug reported:

The hot-adding  virtio-scsi devices doesn't get recognized the sles
guest even after running the rescan-scsi-bus.sh or echo ' - - - ' >
/sys/class/scsi_host/host#/scan commands. It requires a reboot to get
recognized.

This issue is not observed in case of rhel64-64 guests, soon after
adding if we run the  echo ' - - - ' > /sys/class/scsi_host/host#/scan,
the devices gets recognizes.

Sles Guest kernel : 3.0.13-0.27-default

qemu-version : 1.5.50

Host kernel : 3.10.0-rc5+

Steps to reproduce:

1. Install the sles guest 
2. Run the script to add the devices 

#!/usr/bin/bash
if [ x$1 != x ]; then
cmd=$1
c=1
while [ $c -le 2 ]
do
qemu-img create -f qcow2 /home/virtio-scsi$c.qcow2 1G
#sleep 1
i="`cat file | head -$c | tail -1`"
virsh attach-disk $cmd /home/images/virtio-scsi$c.qcow2 $i --persistent  
--cache writethrough --sourcetype file --driver qemu --subdriver qcow2
#virsh detach-disk $cmd $i
 ((c++))
done
else
echo "enter the vm name"
fi

3. Run the  rescan-scsi-bus.sh or echo ' - - - ' >
/sys/class/scsi_host/host#/scan commands, inside the guest.

######################################################
rescan-scsi-bus.sh 
Host adapter 0 (ata_piix) found.
Host adapter 1 (ata_piix) found.
Host adapter 2 (sym53c8xx) found.
Host adapter 3 (sym53c8xx) found.
Host adapter 4 (sym53c8xx) found.
Host adapter 5 (sym53c8xx) found.
Host adapter 6 (sym53c8xx) found.
Host adapter 7 (sym53c8xx) found.
Host adapter 8 (sym53c8xx) found.
Host adapter 9 (sym53c8xx) found.
Host adapter 10 (sym53c8xx) found.
Host adapter 11 (sym53c8xx) found.
Host adapter 12 (sym53c8xx) found.
Host adapter 13 (sym53c8xx) found.
Host adapter 14 (sym53c8xx) found.
Host adapter 15 (sym53c8xx) found.
Host adapter 16 (sym53c8xx) found.
Host adapter 17 (sym53c8xx) found.
Host adapter 18 (sym53c8xx) found.
Host adapter 19 (sym53c8xx) found.
Host adapter 20 (sym53c8xx) found.
Host adapter 21 (sym53c8xx) found.
Host adapter 22 (sym53c8xx) found.
Host adapter 23 (sym53c8xx) found.
Host adapter 24 (sym53c8xx) found.
Host adapter 25 (sym53c8xx) found.
Host adapter 26 (sym53c8xx) found.
Scanning SCSI subsystem for new devices
Scanning host 0 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 0 0 0 0 ... 
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: ATA      Model: QEMU HARDDISK    Rev: 1.5.
      Type:   Direct-Access                    ANSI SCSI revision: 05
Scanning host 1 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
 Scanning for device 1 0 0 0 ... 
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor: QEMU     Model: QEMU DVD-ROM     Rev: 1.5.
      Type:   CD-ROM                           ANSI SCSI revision: 05
Scanning host 2 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 3 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 4 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 5 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 6 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 7 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 8 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 9 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 10 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 11 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 12 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 13 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 14 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 15 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 16 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 17 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 18 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 19 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 20 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 21 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 22 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 23 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 24 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 25 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
Scanning host 26 for  SCSI target IDs  0 1 2 3 4 5 6 7, all LUNs
0 new device(s) found.                     
0 device(s) removed.
################################################

4. At this point the devices should recognize, but it won't

Note: " fdisk -l /dev/sd* | grep -v /dev/sda " only after rebooting the
guest.

** Affects: ubuntu
     Importance: Undecided
         Status: New

** Affects: opensuse
     Importance: Undecided
         Status: New

** Package changed: linux-lts-raring (Ubuntu) => ubuntu

** Also affects: opensuse
   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/1199416

Title:
  Hot-add qcow2 [virtio-scsi] devices doesn't work in SlLES-11-SP2guest

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to