From: Gionatan Danti <g.danti@assyoma.it>
To: linux-xfs@vger.kernel.org
Cc: g.danti@assyoma.it
Subject: Re: Shutdown filesystem when a thin pool become full
Date: Tue, 20 Jun 2017 12:19:36 +0200 [thread overview]
Message-ID: <6aeebc948f9dade462d8e70c8d351dd5@assyoma.it> (raw)
In-Reply-To: <f2edd27c-615b-d20f-0b03-51cc399221bb@assyoma.it>
Il 15-06-2017 17:04 Gionatan Danti ha scritto:
> On 15/06/2017 16:10, Carlos Maiolino wrote:
>>
>> Disregard this comment, I messed up with some tests, so, basically,
>> the
>> application is responsible for the user data, and need to use
>> fsync/fdatasync to
>> ensure the data is properly written, this is not FS responsibility.
>>
>> cheers
>
> Hi Carlos,
> I fully agree that it is application responsibility to issue
> appropriate fsync(). However, knowing that this not always happens in
> real-world, I am trying to be as much "fail-safe" as possible.
>
> From my understanding of your previous message, a full thin pool with
> --errorwhenfull=y should return ENOSPC to the filesystem. Does this
> work on normal cached/buffered/async writes, or with O_DIRECT writes
> only?
>
> If it is not the case, how can I prevent further writes to a data-full
> thin pool? With ext4, I can use "data=journal,errors=remount-ro" to
> catch any write errors and stop the filesystem (or remount it
> read-only), losing only some seconds worth of data. This *will* works
> even for applications that do not issue fsync(), as the read-only
> filesystem will not let the write() syscall to complete successfully.
>
> On XFS (which I would *really* use, because it is quite more
> advanced), all writes directed to a full thin-pool will basically end
> on /dev/null and, as write() succeeded, the application/user will
> *not* be alerted on any way. If the thin-pool can communicate its "end
> of free space" to the filesystem, the problem can be avoided.
>
> If this can not be done, the only remaining possibility is to instruct
> the filesystem to stop itself on data writeout errors. So, we got
> full-circle about my original question: how can I stop XFS when writes
> return I/O errors? Please note that I tried to set any
> /sys/fs/xfs/dm-8/error/metadata/*/max_retries tunable to 0, but I can
> not get the filesystem to suspend itself, even when dmesg reported
> metadata write errors.
>
> Thank you very much.
Hi all,
any thought on the matter?
Thanks.
--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.danti@assyoma.it - info@assyoma.it
GPG public key ID: FF5F32A8
next prev parent reply other threads:[~2017-06-20 10:19 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-22 14:25 Shutdown filesystem when a thin pool become full Gionatan Danti
2017-05-22 23:09 ` Carlos Maiolino
2017-05-23 10:56 ` Gionatan Danti
2017-05-23 11:01 ` Gionatan Danti
2017-05-23 12:27 ` Carlos Maiolino
2017-05-23 20:05 ` Gionatan Danti
2017-05-23 21:33 ` Eric Sandeen
2017-05-24 17:52 ` Gionatan Danti
2017-06-13 9:09 ` Gionatan Danti
2017-06-15 11:51 ` Gionatan Danti
2017-06-15 13:14 ` Carlos Maiolino
2017-06-15 14:10 ` Carlos Maiolino
2017-06-15 15:04 ` Gionatan Danti
2017-06-20 10:19 ` Gionatan Danti [this message]
2017-06-20 11:05 ` Carlos Maiolino
2017-06-20 15:03 ` Gionatan Danti
2017-06-20 15:28 ` Brian Foster
2017-06-20 15:34 ` Luis R. Rodriguez
2017-06-20 17:01 ` Brian Foster
2017-06-20 15:55 ` Gionatan Danti
2017-06-20 17:02 ` Brian Foster
2017-06-20 18:43 ` Gionatan Danti
2017-06-21 9:44 ` Carlos Maiolino
2017-06-21 10:39 ` Gionatan Danti
2017-06-21 9:53 ` Brian Foster
2017-05-23 12:11 ` Carlos Maiolino
2017-05-23 13:24 ` Eric Sandeen
2017-05-23 20:23 ` Gionatan Danti
2017-05-24 7:38 ` Carlos Maiolino
2017-05-24 17:50 ` 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=6aeebc948f9dade462d8e70c8d351dd5@assyoma.it \
--to=g.danti@assyoma.it \
--cc=linux-xfs@vger.kernel.org \
/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.