[ClusterLabs] Antw: PSA Ubuntu 16.04 and OCSF2 corruption

Eric Ren zren at suse.com
Wed Apr 12 02:12:11 UTC 2017


Hi,

On 04/11/2017 02:07 PM, Ulrich Windl wrote:
>>>> Kyle O'Donnell <kyleo at 0b10.mx> schrieb am 10.04.2017 um 22:33 in Nachricht
> <1870523950.17456.1491856403263.JavaMail.zimbra at 0b10.mx>:
>> Hello,
>>
>> Just opened what I think is a bug with the Ubuntu util-linux package:
>>
>> https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1681410
>>
>> TL;DR
>>
>> The 'fstrim' command is run weekly on all filesystems.  If you're using
>> ocfs2 and the same filesystem is mounted on multiple Ubuntu 16.04 servers,
>> this fstrim is run at the same time to the same device from all servers.  I'm
>> positive this is what's causing my filesystem corruption issues, which occurs
>> a minute or two after fstrim is scheduled to run.
> Without knowing the details of fstrim I think with proper locking in place, filesystem corruption should never occur. However if one node in OCFS allocated the block that another node trims (the non-locking case), you will loose that newly allocated block. I wonder whether fstrim can be used in cluster filesystems.
Looks ocfs2 supports fstrim, according to this commit:

commit e80de36d8dbff216a384e9204e54d59deeadf344
Author: Tao Ma <boyu.mt at taobao.com>
Date:   Mon May 23 10:36:43 2011 +0800

     ocfs2: Add ocfs2_trim_fs for SSD trim support.
     Add ocfs2_trim_fs to support trimming freed clusters in the
     volume. A range will be given and all the freed clusters greater
     than minlen will be discarded to the block layer.
     Signed-off-by: Tao Ma <boyu.mt at taobao.com>
     Signed-off-by: Joel Becker <jlbec at evilplan.org>

If something goes wrong with it, I'd suggest open a BZ, or ask ocfs2 maillist for help.
Eric
>
> Regards,
> Ulrich
>
>
>> -Kyle
>>
>> _______________________________________________
>> Users mailing list: Users at clusterlabs.org
>> http://lists.clusterlabs.org/mailman/listinfo/users
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>
>
>
>
> _______________________________________________
> Users mailing list: Users at clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>





More information about the Users mailing list