All of lore.kernel.org
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zdenek.kabelac@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM cache (or dm-cache) shutdown
Date: Sat, 17 Oct 2015 19:49:30 +0200	[thread overview]
Message-ID: <56228A2A.6050908@gmail.com> (raw)
In-Reply-To: <mvrdlj$6r9$1@ger.gmane.org>

Dne 16.10.2015 v 19:54 Ian Pilcher napsal(a):
> 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?


ONLY if the give device are UNUSED.

If the volume is e.g. mounted - then 'remove' is irrelevant.

You can't remove device with open count != 0.
(check with:  dmsetup info -c)

Zdenek

      reply	other threads:[~2015-10-17 17:49 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   ` [linux-lvm] LVM cache (or dm-cache) shutdown Ian Pilcher
2015-10-17 17:49     ` Zdenek Kabelac [this message]

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=56228A2A.6050908@gmail.com \
    --to=zdenek.kabelac@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.