Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 557133

Summary: RFE: No 'drive_del' command available for removing VirtIO disks, or SCSI controllers
Product: Red Hat Enterprise Linux 6 Reporter: Daniel Berrangé <berrange>
Component: qemu-kvmAssignee: Markus Armbruster <armbru>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: armbru, jyang, lcapitulino, lihuang, syeghiay, tburke, virt-maint, xtian
Target Milestone: betaKeywords: FutureFeature
Target Release: 6.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-01-27 15:44:24 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 559201, 580951    

Description Daniel Berrangé 2010-01-20 14:29:28 UTC
Description of problem:
For VirtIO disks, or SCSI controllers, libvirt can use  device_del or pci_del to remove the device / controller respectively. There is no way, however, to remove a single SCSI disk from a SCSI controller. Previously libvirt's SCSI remove was broken, actually removing the entire controller and we'd like to now fix that to properly remove the single drive.

I'd like to see a monitor command that supports 

  drive_del  if=scsi,$bus.$unit

And/or

  drive_del  $id


Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.9.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Daniel Berrangé 2010-01-20 14:30:20 UTC
There was a previous thread about this here, but it didn't resolve itself:

http://patchwork.ozlabs.org/patch/33933/

Comment 2 RHEL Program Management 2010-01-20 14:35:43 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Daniel Berrangé 2010-03-01 14:49:23 UTC
Based on this new discovery that 'device_del' of the guest device, also removes the drive state, we don't have an urgent need for 'drive_del'.

http://www.redhat.com/archives/libvir-list/2010-March/msg00036.html

So suggest this BZ can be pushed off to rhel-6.1

Comment 4 Gerd Hoffmann 2010-06-08 15:04:00 UTC
Markus, I think your -blockdev work supersedes this, right?
Wanna take this for your work?  Or should I CLOSE/WOUNTFIX or CLOSE/DUPLICATE?

Comment 5 Markus Armbruster 2010-06-08 16:49:17 UTC
Yes, it'll provide the feature.  Taking the bug.

Related: bug 581963.

Comment 11 Markus Armbruster 2011-01-27 15:44:24 UTC
Bug 654682 asks for the same feature, just for different reasons.  Since the actual work is being tracked there, close this one as duplicate.

*** This bug has been marked as a duplicate of bug 654682 ***