#943729 lvcreate -Z y does not imply -W y contrary to manual ?

Package:
lvm2
Source:
lvm2
Description:
Linux Logical Volume Manager
Submitter:
Ian Jackson
Date:
2023-02-11 18:27:05 UTC
Severity:
normal
#943729#5
Date:
2019-10-28 16:51:54 UTC
From:
To:
I have encountered a situation where:

2019-10-28 16:45:09 Z executing ssh ... root@172.16.144.40 lvcreate -Z y -L 10000M -n debianhvm.guest.osstest-disk italia0-vg
WARNING: dos signature detected on /dev/italia0-vg/debianhvm.guest.osstest-disk at offset 510. Wipe it? [y/n]: ^C

But:

2019-10-28 16:47:33 Z executing ssh ... root@172.16.144.40 lvcreate -W y -L 10000M -n debianhvm.guest.osstest-disk italia0-vg
  Logical volume "debianhvm.guest.osstest-disk" created.

The documentation says

  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).

grep wip /etc/lvm/lvm.conf yields some comments and also
        use_blkid_wiping = 1
        wipe_signatures_when_zeroing_new_lvs = 1
(from the default config supplied with the package).

I don't know if it's the documentation or the implementation that is
wrong.  The workaround appears to be to specify -W y explicitly.

Thanks,
Ian.

#943729#10
Date:
2023-02-11 18:22:59 UTC
From:
To:
Purpose of -Z y|n -W y|n  is to control whether the action will be made - but
you still get confimation promp for proceeding with wipe.

If you want to automatically answer 'yes' to prompts -  there is '--yes' option.

Regards

Zdenke