linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Ian Pilcher <arequipeno@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] LVM cache (or dm-cache) shutdown
Date: Fri, 16 Oct 2015 12:54:59 -0500	[thread overview]
Message-ID: <mvrdlj$6r9$1@ger.gmane.org> (raw)
In-Reply-To: <20150911125104.GA8027@rh-vpn>

On 09/11/2015 07:51 AM, Joe Thornber wrote:
> No, this is not expected.  The most likely cause is your system was
> not shutdown cleanly so dm-cache has no choice but to assume all
> blocks are dirty and need writing back.  Make sure your volumes are
> being deactivated as part of shutdown.

What exactly is required to cleanly shutdown an LVM cache or dm-cache
device?

AFAICT, systemd does a DM_DEV_REMOVE ioctl on all device mapper devices
during shutdown/reboot.  Is this sufficient?

Thanks!

-- 
========================================================================
Ian Pilcher                                         arequipeno@gmail.com
-------- "I grew up before Mark Zuckerberg invented friendship" --------
========================================================================

  parent reply	other threads:[~2015-10-16 18:55 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-10  9:30 [linux-lvm] Strange dm-cache activity at startup Stefan Ring
2015-09-10 12:59 ` Zdenek Kabelac
2015-09-10 13:11   ` Stefan Ring
2015-09-10 13:48     ` Zdenek Kabelac
2015-09-11 12:51 ` Joe Thornber
2015-09-11 13:28   ` John Stoffel
2015-09-11 14:50     ` Simon O'Riordan
2015-09-11 15:32       ` John Stoffel
2015-09-16  7:48   ` Stefan Ring
2015-09-17 15:08     ` Stefan Ring
2015-10-16 17:54   ` Ian Pilcher [this message]
2015-10-17 17:49     ` [linux-lvm] LVM cache (or dm-cache) shutdown Zdenek Kabelac

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='mvrdlj$6r9$1@ger.gmane.org' \
    --to=arequipeno@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).