From: "Jorge Fábregas" <jorge.fabregas@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM & fstrim behaviour (Fedora 19)
Date: Tue, 17 Sep 2013 14:38:08 -0400 [thread overview]
Message-ID: <5238A190.2050000@gmail.com> (raw)
Hi,
I'm testing fstrim on an LVM volume but it only seems to work the first
time I run it (just after mounting the volume). When I run "fstrim -v
/mnt" for the first time it prints all the free blocks that is trimming
(almost all of the filesystem as it is empty) but subsequent runs just
output "0 bytes trimmed" no matter how many files I create/sync & delete
afterwards. The "issue_discards" is set in lvm.conf.
If I do this over the raw device (/dev/sda3, same ext4 filesystem) I get
the output corresponding to the last deleted files every time I run fstrim.
## THIN ##
I also created a thin pool and a logical volume on that pool. If I
mount this volume with "discard", I can see that TRIM is working by
doing an "lvs vgthin" (the Data Usage% grows as I create files & shrinks
as I delete files). However, If I mount it without the "discard" option
(in order to use fstrim) I only see the data-usage reduction when I run
fstrim *just* for the first time.
Any help will be appreciated.
Thanks,
Jorge
next reply other threads:[~2013-09-17 18:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-17 18:38 Jorge Fábregas [this message]
2013-09-24 13:20 ` [linux-lvm] LVM & fstrim behaviour (Fedora 19) Lukáš Czerner
2013-09-24 15:01 ` Lukáš Czerner
2013-09-24 15:52 ` Jorge Fábregas
2013-09-24 16:05 ` Jorge Fábregas
2013-09-24 16:14 ` Jorge Fábregas
2013-09-24 18:03 ` Jorge Fábregas
2013-09-25 8:39 ` Lukáš Czerner
2013-09-25 10:15 ` Jorge Fábregas
2013-09-24 15:14 ` Jorge Fábregas
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=5238A190.2050000@gmail.com \
--to=jorge.fabregas@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).