linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM & fstrim behaviour (Fedora 19)
@ 2013-09-17 18:38 Jorge Fábregas
  2013-09-24 13:20 ` Lukáš Czerner
  0 siblings, 1 reply; 10+ messages in thread
From: Jorge Fábregas @ 2013-09-17 18:38 UTC (permalink / raw)
  To: linux-lvm

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-25 10:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-17 18:38 [linux-lvm] LVM & fstrim behaviour (Fedora 19) Jorge Fábregas
2013-09-24 13:20 ` 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

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