lvcreate does not wipe the filesystem signature even after adding --wipesignatures and --Zero and ask for "yes" prompt

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 8.2
  • Red Hat Enterprise Linux 8.3
  • lvm2

Issue

  • lvcreate does not wipe the filesystem signature even after running with --wipesignatures and --zero flag and ask for --yes prompt.
[root@rhel8 ~]# lvcreate --type raid1 -l 100%free -n testlv --wipesignatures y --yes --zero y testvg
WARNING: ext4 signature detected on /dev/testvg/testlv_rmeta_0 at offset 1080. Wipe it? [y/n]: y

Resolution

  • The patch has been released via errata RHBA-2020:66319-02. Update lvm package to lvm2-2.03.11-0.3 or higher.

Root Cause

  • BZ 1877759 was raised for this issue and a fix has been released in RHEL 8.4 or lvm version lvm2-2.03.11-0.3 or higher.

Diagnostic Steps

  • Try to create the LV with the following flags will ask for a yes prompt which should not be asked:
[root@rhel8 ~]# lvcreate --type raid1 -l 100%free -n testlv --wipesignatures y --yes --zero y testvg
WARNING: ext4 signature detected on /dev/testvg/testlv_rmeta_0 at offset 1080. Wipe it? [y/n]: y
  • Verify using wipefs command if there is any existing label/signature on the disk before using it to create an LV:
[root@rhel8 ~]# wipefs /dev/sdb

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments