RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1305894 - confusing docs about lvcreate -W
Summary: confusing docs about lvcreate -W
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: lvm2
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-09 14:16 UTC by Karel Volný
Modified: 2021-09-03 12:38 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.02.161-1.el7
Doc Type: Bug Fix
Doc Text:
Documentation about lvcreate's -W|--wipesignatures option has been edited to provide clearer explanation about its functionality.
Clone Of:
Environment:
Last Closed: 2016-11-04 04:14:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1445 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2016-11-03 13:46:41 UTC

Description Karel Volný 2016-02-09 14:16:52 UTC
Description of problem:
Trying to use "lvcreate" non-interactively (while writing a test for bug 1301091), I have found that it still asks about wiping the signatures.

This can be worked around by using "--yes" option, however, the manpage part about the "-W" option is a bit confusing. It states that if "-Z" is set (which it says yes by default) then the wiping happens by default. But in reality, the user is asked whether to wipe, which isn't exactly what other programs usually mean when talking about "default action" - more correct would be to say that the default is "to ask" instead of "wiping is done", as it might be skipped if the user interactively answers "n".

IMHO the best would be to change the option logic from boolean to tristate - yes/ask/no. Supplying the common "--yes" isn't the best as it may match anything else (but I don't know what else is relevant to "lvcreate") ... but that's a material for new RFE for the code, not just docs change. Is that worth filing?

The manpage also does not explain what exactly happens when "-W" is set to "n". It says that the option controls wiping, but in reality, after using "-W n", it not just does not wipe the signatures (without asking ...) but it even does not report them, i.e. it looks like it doesn't do the detection neither.

Comment 2 Peter Rajnoha 2016-07-12 13:24:28 UTC
I've edited the man page a bit, so hopefully it's clearer now, pasting full text from lvcreate man page:

 -W|--wipesignatures {y|n}

Controls detection and subsequent wiping of signatures on newly created Logical Volume. There's a prompt for each signature detected to confirm its wiping (unless --yes is used where LVM assumes 'yes' answer for each prompt automatically). If this option is not specified, then by default -W|--wipesignatures y is assumed each time the zeroing is done (-Z|--zero y). This default behaviour can be controlled by allocation/wipe_signatures_when_zeroing_new_lvs setting found in lvm.conf(5).

If blkid wiping is used (allocation/use_blkid_wiping setting in lvm.conf(5)) and LVM2 is compiled with blkid wiping support, then blkid(8) library is used to detect the signatures (use blkid -k command to list the signatures that are recognized). Otherwise, native LVM2 code is used to detect signatures (MD RAID, swap and LUKS signatures are detected only in this case).
Logical volume is not wiped if the read only flag is set.

Upstream commit:
https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=d5be748341ec88e35c826b70152bf1e757653a3a

Comment 4 Corey Marthaler 2016-09-14 22:29:25 UTC
Marking verified that was was added in comment #2 does now exist in lvcreate(8).

That said, where did the "Wiping each detected signature must be confirmed" that existed for a fix in bug 1193925 go?



lvcreate(8):

       -W|--wipesignatures {y|n}
              Controls detection and subsequent wiping of signatures on newly created Logical Volume. There's a prompt for each signature detected  to  conâ€
              firm  its wiping (unless --yes is used where LVM assumes 'yes' answer for each prompt automatically). If this option is not specified, then by
              default -W | --wipesignatures y is assumed each time the zeroing is done (-Z |  --zero  y).  This  default  behaviour  can  be  controlled  by
              allocation/wipe_signatures_when_zeroing_new_lvs setting found in lvm.conf(5).
              If  blkid  wiping  is  used (allocation/use_blkid_wiping setting in lvm.conf(5)) and LVM2 is compiled with blkid wiping support, then blkid(8)
              library is used to detect the signatures (use blkid -k command to list the signatures that are recognized).  Otherwise, native  LVM2  code  is
              used to detect signatures (MD RAID, swap and LUKS signatures are detected only in this case).
              Logical volume is not wiped if the read only flag is set.

Comment 5 Corey Marthaler 2016-09-14 22:35:05 UTC
FYI - verified in lvm2-2.02.165-2.el7. 

"Wiping each detected signature must be confirmed" is still in lvm.conf. Never mind the mention of it missing in comment #4.

Comment 7 errata-xmlrpc 2016-11-04 04:14:38 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/RHBA-2016-1445.html


Note You need to log in before you can comment on or make changes to this bug.