Skip to contentSkip to conversation

fdisk still shows the "/dev/sdb" partitions even after the removal of scsi disk

Qemu-devel chandrashekar shastri 3 participants 4 messages Jun 13, 2013 – Jun 13, 2018

lore
Share & tools
lore
#0 lore raw

Public bug reported:

RHEL guest shows the partittions even after the removal of scsi disk:
fdisk still shows the "/dev/sdb" partitions even after the removal of scsi disk.

Guest details:
-------------------
Kernel : 2.6.32-358

Host Details :

Upstream Kernel, Qemu, Libvirt and virt-manager
---------------------------------------------------------------------

kernel version : 3.9.0+
qemu version : QEMU emulator version 1.5.0
libvirt version : 1.0.5
virt-install : 0.600.3

Steps to reproduce the issue:

I. Add the SCSI disk through the virt-manager.
2. Create the partition using fdisk (eg: /dev/sbb)
3. Create a filesystem and format using mkfs.ext3 or mkfs.ext4
4. Remove the scsi disk through the virt-manager.
5. Again run the fdisk /dev/sdb, the guests still shows the partition even after the removal of the disk.

This issue is not seen with virt-io disk.

This issue is also reproducible without even creating the partitions.

Expected Result:

The output of fdisk /dev/sd* should not show the enties after the removal of scsi disks

** Affects: qemu
Importance: Undecided
Status: New

** Attachment added: "var log messages"
https://bugs.launchpad.net/bugs/1190525/+attachment/3702180/+files/messages

Signature · 50 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1190525

Title:
  fdisk still shows the "/dev/sdb" partitions even after the removal of
  scsi disk

Status in QEMU:
  New

Bug description:
  RHEL guest shows the partittions even after the removal of scsi disk:
  fdisk still shows the "/dev/sdb" partitions even after the removal of scsi disk.

  Guest details:
  -------------------
  Kernel : 2.6.32-358

  
  Host Details :

  Upstream Kernel, Qemu, Libvirt and virt-manager
  ---------------------------------------------------------------------

  kernel version : 3.9.0+
  qemu version : QEMU emulator version 1.5.0
  libvirt version : 1.0.5
  virt-install : 0.600.3

  
  Steps to reproduce the issue:

  I. Add the SCSI disk through the virt-manager.
  2. Create the partition using fdisk  (eg: /dev/sbb) 
  3. Create a filesystem and format using mkfs.ext3 or mkfs.ext4 
  4. Remove the scsi disk  through the virt-manager. 
  5. Again run the fdisk /dev/sdb, the guests still shows the partition even after the removal of the disk.

  This issue is not seen with virt-io disk.

  This issue is also reproducible without even creating the partitions.

  Expected Result:

  The output of fdisk /dev/sd*  should not show the enties after the
  removal of scsi disks

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1190525/+subscriptions
#1 lore raw
Quoted 7 lines · chandrashekar shastri

Steps to reproduce the issue:

I. Add the SCSI disk through the virt-manager.
2. Create the partition using fdisk (eg: /dev/sbb)
3. Create a filesystem and format using mkfs.ext3 or mkfs.ext4
4. Remove the scsi disk through the virt-manager.
5. Again run the fdisk /dev/sdb, the guests still shows the partition even after the removal of the disk.

Which emulated SCSI controller are you using? Recent virtio-scsi gets notified when LUNs are removed but you may have old guest drivers.

If you want to report this as a QEMU bug, please give QEMU commands, not virt-manager commands. If you cannot use QEMU directly, please work with the virt-manager or libvirt community before filing a QEMU bug so the necessary QEMU-level details can be provided by them.

Stefan

#2 lore raw
In reply to chandrashekar shastri

** Changed in: qemu
Status: New => Incomplete

Signature · 50 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1190525

Title:
  fdisk still shows the "/dev/sdb" partitions even after the removal of
  scsi disk

Status in QEMU:
  Incomplete

Bug description:
  RHEL guest shows the partittions even after the removal of scsi disk:
  fdisk still shows the "/dev/sdb" partitions even after the removal of scsi disk.

  Guest details:
  -------------------
  Kernel : 2.6.32-358

  
  Host Details :

  Upstream Kernel, Qemu, Libvirt and virt-manager
  ---------------------------------------------------------------------

  kernel version : 3.9.0+
  qemu version : QEMU emulator version 1.5.0
  libvirt version : 1.0.5
  virt-install : 0.600.3

  
  Steps to reproduce the issue:

  I. Add the SCSI disk through the virt-manager.
  2. Create the partition using fdisk  (eg: /dev/sbb) 
  3. Create a filesystem and format using mkfs.ext3 or mkfs.ext4 
  4. Remove the scsi disk  through the virt-manager. 
  5. Again run the fdisk /dev/sdb, the guests still shows the partition even after the removal of the disk.

  This issue is not seen with virt-io disk.

  This issue is also reproducible without even creating the partitions.

  Expected Result:

  The output of fdisk /dev/sd*  should not show the enties after the
  removal of scsi disks

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1190525/+subscriptions
#3 lore raw
In reply to chandrashekar shastri

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 50 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1190525

Title:
  fdisk still shows the "/dev/sdb" partitions even after the removal of
  scsi disk

Status in QEMU:
  Expired

Bug description:
  RHEL guest shows the partittions even after the removal of scsi disk:
  fdisk still shows the "/dev/sdb" partitions even after the removal of scsi disk.

  Guest details:
  -------------------
  Kernel : 2.6.32-358

  
  Host Details :

  Upstream Kernel, Qemu, Libvirt and virt-manager
  ---------------------------------------------------------------------

  kernel version : 3.9.0+
  qemu version : QEMU emulator version 1.5.0
  libvirt version : 1.0.5
  virt-install : 0.600.3

  
  Steps to reproduce the issue:

  I. Add the SCSI disk through the virt-manager.
  2. Create the partition using fdisk  (eg: /dev/sbb) 
  3. Create a filesystem and format using mkfs.ext3 or mkfs.ext4 
  4. Remove the scsi disk  through the virt-manager. 
  5. Again run the fdisk /dev/sdb, the guests still shows the partition even after the removal of the disk.

  This issue is not seen with virt-io disk.

  This issue is also reproducible without even creating the partitions.

  Expected Result:

  The output of fdisk /dev/sd*  should not show the enties after the
  removal of scsi disks

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