linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <zkabelac@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Lvm think provisioning query
Date: Fri, 29 Apr 2016 10:13:40 +0200	[thread overview]
Message-ID: <572317B4.9030309@redhat.com> (raw)
In-Reply-To: <CAPLCSGAE9T_wWU5+9T0k5X+V6t7ztAguW84pUoh=Nfbir4J4iQ@mail.gmail.com>

On 28.4.2016 16:36, Bhasker C V wrote:
> Zdenek,
>   Thanks. Here I am just filling it up with random data and so I am not
> concerned about data integrity
>   You are right, I did get page lost during write errors in the kernel
>
> The question however is even after reboot and doing several fsck of the ext4fs
> the file size "occupied" is more than the pool size. How is this ?
> I agree that data may be corrupted, but there *is* some data and this must be
> saved somewhere. Why is this "somewhere" exceeding the pool size ?

Hi

Few key principles -


1. You should always mount extX fs with  errors=remount-ro  (tune2fs,mount)

2. There are few data={} modes ensuring various degree of data integrity,
    An case you really care about data integrity here - switch to 'journal'
    mode at price of lower speed. Default ordered mode might show this.
    (i.e. it's the very same behavior as you would have seen with failing hdd)

3. Do not continue using thin-pool when it's full :)

4. We do miss more configurable policies with thin-pools.
    i.e. do plan to instantiate 'error' target for writes in the case
    pool gets full - so ALL writes will be errored - as of now - writes
    to provisioned blocks may cause further filesystem confusion - that's
    why  'remount-ro' is rather mandatory - xfs is recently being enhanced
    to provide similar logic.


Regards


Zdenek

  reply	other threads:[~2016-04-29  8:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-27 12:33 [linux-lvm] Lvm think provisioning query Bhasker C V
2016-04-27 14:33 ` Zdenek Kabelac
2016-04-28 14:36   ` Bhasker C V
2016-04-29  8:13     ` Zdenek Kabelac [this message]
2016-05-03  6:59       ` Bhasker C V
2016-05-03  9:54         ` Zdenek Kabelac
2016-05-03 12:21           ` Bhasker C V
2016-05-03 14:49             ` Zdenek Kabelac
2016-05-03 15:51               ` Xen
2016-05-03 16:27                 ` Zdenek Kabelac
2016-05-03 17:07               ` Gionatan Danti

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=572317B4.9030309@redhat.com \
    --to=zkabelac@redhat.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).