Package: lvm2
Version: 2.02.168-2

This happened to me:

root@elbling0:~# lvcreate -L 10000M -n debian.buster.guest.osstest-disk 
elbling0-vg
WARNING: dos signature detected on 
/dev/elbling0-vg/debian.buster.guest.osstest-disk at offset 510. Wipe it? 
[y/n]: ^C  Interrupted...
  Aborted wiping of dos.
  1 existing signature left on the device.
  Logical volume "debian.buster.guest.osstest-disk" created.
root@elbling0:~# lvremove -f /dev/elbling0-vg/debian.buster.guest.osstest-disk
  Logical volume "debian.buster.guest.osstest-disk" successfully removed
root@elbling0:~# lvcreate -L 10000M -n debian.buster.guest.osstest-disk 
elbling0-vg
  Logical volume "debian.buster.guest.osstest-disk" created.
root@elbling0:~#

The documentation says:

       -Z|--zero {y|n}

                     Controls zeroing of the first 4KiB of data in the
                     new logical volume.  Default is yes.

and

       -W|--wipesignatures {y|n}

                     Controls detection and subsequent wiping of
                     signatures [...].  There's a prompt for each
                     signature detected [...].  If this option is not
                     specified, then by default -W | --wipesignatures
                     y is assumed each time the zeroing is done (-Z |
                     --zero y).

The combination of these things implies that -W y should be the
default and I should not have seen the prompt as I did.

I think this is probably a documentation bug.  I am going to try to
work around the issue by passing -Z y -W y explicitly.  I have a vague
recollection of having encountered this problem before and of
 -Z y -W y fixing it, but I don't have a reliable repro so I can't
say for sure.

Thanks for your atttenion,
Ian.

Reply via email to