lvcreate does not wipe the filesystem signature even after adding --wipesignatures and --Zero and ask for "yes" prompt
Environment
- Red Hat Enterprise Linux 8.2
- Red Hat Enterprise Linux 8.3
- lvm2
Issue
lvcreatedoes not wipe the filesystem signature even after running with--wipesignaturesand--zeroflag and ask for--yesprompt.
[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 packagetolvm2-2.03.11-0.3or higher.
Root Cause
- BZ 1877759 was raised for this issue and a fix has been released in
RHEL 8.4or lvm versionlvm2-2.03.11-0.3or higher.
Diagnostic Steps
- Try to create the LV with the following flags will ask for a
yes promptwhich 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
wipefscommand if there is any existinglabel/signatureon 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