Reproduce it with libvirt-1.0.3-1.el7.x86_64 +++ This bug was initially created as a clone of Bug #927172 +++ Description of problem: pool-build --overwrite can not format type xfs filesystem Version-Release number of selected component (if applicable): libvirt-0.10.2-18.el6_4.2.x86_64 How reproducible: 100 Steps to Reproduce: 1. prepare a fs ext3 partition <pool type='fs'> <name>sda2</name> <source> <device path='/dev/sda2'/> <format type='xfs'/> </source> <target> <path>/var/lib/libvirt/images/sda2</path> <permissions> <mode>0755</mode> <owner>0</owner> <group>0</group> </permissions> </target> </pool> 2. format sda2 #mkfs.ext3 -F /dev/sda2 3. define and build pool --overwrite # virsh pool-define sda2-new.xml Pool sda2 defined from sda2-new.xml ## virsh pool-build --overwrite sda2 error: Failed to build pool sda2 error: Failed to make filesystem of type 'xfs' on device '/dev/sda2': File exists Actual results: as steps Expected results: pool-build should succeed Additional info: GFS2 format also can not be formated via pool-build --overwrite
*** This bug has been marked as a duplicate of bug 927172 ***