From mboxrd@z Thu Jan 1 00:00:00 1970 References: <1438f48b-0a6d-4fb7-92dc-3688251e0a00@assyoma.it> <2f9c4346d4e9646ca058efdf535d435e@xenhideout.nl> <5df13342-8c31-4a0b-785e-1d12f0d2d9e8@redhat.com> <6dd12ab9-0390-5c07-f4b7-de0d8fbbeacf@redhat.com> <3831e817d7d788e93a69f20e5dda1159@xenhideout.nl> <0ab1c4e1-b15e-b22e-9455-5569eeaa0563@redhat.com> <51faeb921acf634609b61bff5fd269d4@xenhideout.nl> <4b4d56ef-3127-212b-0e68-00b595faa241@redhat.com> <0535f3d744145eceea9121b1e68b622d@assyoma.it> <4fb6f017d9734892eff6b0ef544d99fc@assyoma.it> From: Zdenek Kabelac Message-ID: <20ddda25-dacf-f4e2-8df4-f9bed1c62fe7@redhat.com> Date: Wed, 26 Apr 2017 13:23:44 +0200 MIME-Version: 1.0 In-Reply-To: <4fb6f017d9734892eff6b0ef544d99fc@assyoma.it> Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [linux-lvm] Snapshot behavior on classic LVM vs ThinLVM Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Gionatan Danti Cc: LVM general discussion and development Dne 26.4.2017 v 10:10 Gionatan Danti napsal(a): > > I'm not sure this is sufficient. In my testing, ext4 will *not* remount-ro on > any error, rather only on erroneous metadata updates. For example, on a > thinpool with "--errorwhenfull y", trying to overcommit data with a simple "dd > if=/dev/zero of=/mnt/thinvol bs=1M count=1024 oflag=sync" will cause I/O > errors (as shown by dmesg), but the filesystem is *not* immediately remounted > read-only. Rather, after some time, a failed journal update will remount it > read-only. You need to use 'direct' write more - otherwise you are just witnessing issues related with 'page-cache' flushing. Every update of file means update of journal - so you surely can lose some data in-flight - but every good software needs to the flush before doing next transaction - so with correctly working transaction software no data could be lost. > > XFS should behave similarly, with the exception that it will shutdown the > entire filesystem (ie: not even reads are allowed) when metadata errors are > detected (see note n.1). Yep - XFS is slightly different - but it gets improved, however some new features are not enabled by default and user needs to enabled them. Regards Zdenek