Bug 872831
Summary: | wipefs error: /dev/sda: probing initialization failed: Device or resource busy | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Richard W.M. Jones <rjones> |
Component: | util-linux | Assignee: | Karel Zak <kzak> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | jonathan, kzak, mluscon, satellitgo |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-03 14:24:56 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Richard W.M. Jones
2012-11-03 17:14:18 UTC
This worked with util-linux 2.22.1-1.fc19 & coreutils 8.17. It was when I upgraded to util-linux 2.22.1-3 & coreutils 8.20 that it breaks. Patch posted to add --force option: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/6801 Here is the libguestfs patch that this was tested alongside: https://www.redhat.com/archives/libguestfs/2012-November/msg00028.html (In reply to comment #0) > However a second error looks like it is a bug: > > wipefs -a /dev/sda > /dev/sda: probing initialization failed: Device or resource busy > > In this second case, /dev/sda contains partitions, but nothing is > mounted. I have doubts that nothing is mounted... partitioned device, nothing mounted: # strace -e open ./wipefs --no-act -a /dev/sdb 2>&1 | grep sdb open("/dev/sdb", O_RDWR|O_EXCL) = 3 success! partitioned device, sdb1 mounted: # mount /dev/sdb1 /mnt/test # strace -e open ./wipefs --no-act -a /dev/sdb 2>&1 | grep sdb open("/dev/sdb", O_RDWR|O_EXCL) = -1 EBUSY (Device or resource busy) it means that partition table has no impact to O_EXCL, the problem is if any partition is mounted. It all seems like correct and expected ... I think we don't want to allow to delete partition table if any partition is actively used. Continued on list at: http://article.gmane.org/gmane.linux.utilities.util-linux-ng/6806 Since the --force patch has been added to wipefs and it appears to work, I'm closing the bug as fixed, but would appreciate it if the patch could be added to F18 also to make the virt-format tool work. Fixed by upstream commit 2968c3fc7388f88b8debe64d61d9785601c16436. |