Red Hat Bugzilla – Bug 1301091
[libblkid] Failed to get offset of the xfs_external_log signature
Last modified: 2016-11-03 17:26:27 EDT
Description of problem: After deleting a LV that contained a XFS filesystem and creating a new LV in the same location, libblkid fails to remove the XFS signature. Version-Release number of selected component (if applicable): libblkid 2.23.2-26.el7 How reproducible: Always Steps to Reproduce: 1. lvcreate -L 16m -n lv1 vg1 2. mkfs.xfs /dev/vg1/lv1 3. lvremove vg1/lv 4. lvcreate -L 16m -n lv1 vg1 Actual results: # lvcreate -L 16m -n lv1 vg1 WARNING: xfs signature detected on /dev/vg1/lv1 at offset 0. Wipe it? [y/n]: y Wiping xfs signature on /dev/vg1/lv1. Failed to get offset of the xfs_external_log signature on /dev/vg1/lv1. 1 existing signature left on the device. Logical volume "lv1" created. Expected results: # lvcreate -L 16m -n lv1 vg1 WARNING: xfs signature detected on /dev/vg1/lv1 at offset 0. Wipe it? [y/n]: y Wiping xfs signature on /dev/vg1/lv1. Logical volume "lv1" created. Additional info: Bug does not reproduce on previous libblkid-2.23.2-22.el7_1.1.
The following patch could be the related: "libblkid: make XFS Log visible for wipefs" commit d5b7d2912afceac3774d1aaea9e8486b54d4e9e9
After building test packages that include d5b7d2912afceac3774d1aaea9e8486b54d4e9e9 I confirm that the problem is resolved by it.
i hit the same issue, after updating util-linux to 2.23.2-26.el7_2.2.x86_64, issue not observed. thanks for the fix
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2605.html