linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* Best use of a small SSD with LVM
@ 2025-08-06 22:35 Brian J. Murrell
  2025-08-07  2:22 ` matthew patton
  2025-08-07 15:16 ` John Stoffel
  0 siblings, 2 replies; 7+ messages in thread
From: Brian J. Murrell @ 2025-08-06 22:35 UTC (permalink / raw)
  To: linux-lvm

I'm wondering what are the best practices for taking advantage of the
speed of SSDs in combination with spinning rust drives in a volume
group.

I have 111GB of free SSD space in the same volume group as all of my
system's filesystems (/, /usr, /var, /home, various other /var/cache/*
filesystems, other data, etc.).

Currently the 111GB PV on the SSD is completely unused.  But I wonder
what the best use of it is.

Should I just move entire VGs (i.e. something like /usr or /var or
something else) on to it, or should I use it with LVM caching?  IOW is
LVM caching effective?

LVM caching seems like a lot of guesswork regarding how to split the
SSD up most effectively so that you have the right size cache for the
various volumes that you want to cache.  I.e. for every filesystem I
have in my VG, I need to decide what percentage of the SSD I want to
use for it and then how big I want the cache LV vs the cache metadata
LV, etc.  Is there any way to monitor performance of the cache VGs to
decide if they are being used effectively or if space should be moved
from one cache LV to another?

Can cache LVs be resized to optimize the size of them?  Perhaps I
created a cache LV too big and it's not being used efficiently and then
want to reduce it's size and use the freed up space to make a different
cache LV bigger.

Assuming one wants a writethrough cache because one does not have
battery/UPS backed systems (such that they are vulnerable to power
outages) (writethrough is the correct choice for that situation,
correct?) is there any point to caching write-mostly filesystems such
as /var/[log/] with a writethrough cache?

Any other insights anyone wants to add?

Cheers,
b.

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

end of thread, other threads:[~2025-08-07 17:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 22:35 Best use of a small SSD with LVM Brian J. Murrell
2025-08-07  2:22 ` matthew patton
2025-08-07  5:59   ` Brian J. Murrell
     [not found]   ` <d754fa089d273.c3f10ab0005ac8@gmail.com>
2025-08-07  6:58     ` Brian J. Murrell
2025-08-07 15:21   ` John Stoffel
2025-08-07 17:45     ` Brian J. Murrell
2025-08-07 15:16 ` John Stoffel

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