From: Raman Gupta <rocketraman@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] Two questions about lvm-cache
Date: Thu, 29 Dec 2016 08:52:24 -0500 [thread overview]
Message-ID: <fa65ab01-440c-99a2-a13b-807d302c14e6@gmail.com> (raw)
I am trying out the lvmcache functionality. So far, everything looks
great. I have two questions:
1) The man page of lvmcache states "With the --cachemode option, the
cache mode can be set when creating a cache LV, or changed on an
existing cache LV." However, I can't figure out the right command to
change the cache mode on an existing LV.
# lvs -a -o +devices
(see https://paste.fedoraproject.org/514698/83019352/raw/)
# lvs -o cache_mode vg_raid10/lv_var
CacheMode
writethrough
# lvconvert --verbose --cachemode writeback vg_raid10/lv_var
(no output)
# lvs -o cache_mode vg_raid10/lv_var
CacheMode
writethrough
# lvconvert --verbose --type cache \
--cachepool vg_raid10/lv_cache_pool_var \
--cachemode writeback vg_raid10/lv_var
Executing: /usr/sbin/modprobe dm-cache-mq
Executing: /usr/sbin/modprobe dm-cache-smq
Cache is not supported with cache segment type of the original
logical volume vg_raid10/lv_var.
2) Does lvm manage TRIM on the cache device? Normally I set up SSD
volumes with a weekly fstrim, but that only works for mounted filesystems.
Thanks!
Raman
next reply other threads:[~2016-12-29 13:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-29 13:52 Raman Gupta [this message]
2017-01-02 15:15 ` [linux-lvm] Two questions about lvm-cache Zdenek Kabelac
2017-01-02 15:29 ` Raman Gupta
2017-01-02 16:20 ` Zdenek Kabelac
2017-01-02 16:57 ` Raman Gupta
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=fa65ab01-440c-99a2-a13b-807d302c14e6@gmail.com \
--to=rocketraman@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).