Linux-LVM Archive mirror
 help / color / mirror / Atom feed
From: Mikhail Morfikov <mmorfikov@gmail.com>
To: linux-lvm@lists.linux.dev
Subject: Should issue_discards be enabled when e2scrub is used on an SSD?
Date: Fri, 29 Dec 2023 01:48:00 +0100	[thread overview]
Message-ID: <5ccac2f3-f554-47fe-bec9-d74b08e85e5e@gmail.com> (raw)

I've got the following setup: LUKSv2+LVM on an SSD drive, and I have trim/discad enabled
for encrypted container. I also use e2scrub for Online ext4 Metadata Check which uses a 4
GiB LVM snapshot. I currently have 10 logical volumes, which are periodically (once a week)
scanned for errors. I've got a question concerning the *issue_discards* option that can be
specified in the /etc/lvm/lvm.conf file. What actually happens when this option is enabled
and the LVM snapshot is removed after fsck finishes its job? Will the whole 4 GiB be erased
on the flash? Is it safe to enable this option in such case, or is it better to leave it
disabled?

             reply	other threads:[~2023-12-29  0:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-29  0:48 Mikhail Morfikov [this message]
2024-01-02 10:41 ` Should issue_discards be enabled when e2scrub is used on an SSD? Zdenek Kabelac
2024-01-02 11:13   ` Mikhail Morfikov
2024-01-02 11:45     ` Zdenek Kabelac
2024-01-02 12:01       ` Mikhail Morfikov

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=5ccac2f3-f554-47fe-bec9-d74b08e85e5e@gmail.com \
    --to=mmorfikov@gmail.com \
    --cc=linux-lvm@lists.linux.dev \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).