Bug 1301091

Summary: [libblkid] Failed to get offset of the xfs_external_log signature
Product: Red Hat Enterprise Linux 7 Reporter: Julio Entrena Perez <jentrena>
Component: util-linuxAssignee: Karel Zak <kzak>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: urgent    
Version: 7.2CC: awshaikh, bsrirama, fkrska, jentrena, jradhakr, jscotka, mkolaja, pdwyer, riehecky
Target Milestone: rcKeywords: EasyFix, Patch, Regression, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1302332 (view as bug list) Environment:
Last Closed: 2016-11-03 21:26:27 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:
Bug Depends On:    
Bug Blocks: 1203710, 1289485, 1302332    

Description Julio Entrena Perez 2016-01-22 14:57:42 UTC
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.

Comment 2 Julio Entrena Perez 2016-01-25 13:54:45 UTC
The following patch could be the related:

"libblkid: make XFS Log visible for wipefs"
commit d5b7d2912afceac3774d1aaea9e8486b54d4e9e9

Comment 3 Julio Entrena Perez 2016-01-25 17:45:56 UTC
After building test packages that include d5b7d2912afceac3774d1aaea9e8486b54d4e9e9 I confirm that the problem is resolved by it.

Comment 10 Byreddy 2016-04-14 09:15:06 UTC
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

Comment 16 errata-xmlrpc 2016-11-03 21:26:27 UTC
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