linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: james harvey <jamespharvey20@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Is "man lvcreate" for "-Z|--zero" incorrectly worded?
Date: Wed, 9 Jan 2019 22:05:58 -0500	[thread overview]
Message-ID: <CA+X5Wn6TiCUp7aEn5Tkc8vpZfET9-7Ke2Wh1GHTOwy3CrMvN+w@mail.gmail.com> (raw)

On lvm2 2.02.183, man lvcreate includes:

-Z|--zero y|n
   Controls zeroing of the first 4KiB of data in the new LV.  Default
is y.  Snapshot COW volumes are always zeroed.  LV is not zeroed if
the read only flag is set.  Warning: trying to mount an unzeroed LV
can cause the system to hang.

This says only the "first 4KiB" is zeroed.

Yet, when running "lvcreate --chunksize <something large>", it says:

   WARNING: Pool zeroing and ###.00 MiB large chunk size slows down
thin provisioning.
   WARNING: Consider disabling zeroing (-Zn) or using smaller chunk
size (<512.00 KiB).

Which seems to indicate it's going to zero the entire newly allocated
chunk size, rather than only the first 4KiB.

The lvcreate warning goes more along with the purpose of zeroing, to
prevent reading data one shouldn't have access to.

             reply	other threads:[~2019-01-10  3:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-10  3:05 james harvey [this message]
2019-01-10  9:31 ` [linux-lvm] Is "man lvcreate" for "-Z|--zero" incorrectly worded? Zdenek Kabelac

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+X5Wn6TiCUp7aEn5Tkc8vpZfET9-7Ke2Wh1GHTOwy3CrMvN+w@mail.gmail.com \
    --to=jamespharvey20@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).