[ClusterLabs] Antw: PSA Ubuntu 16.04 and OCSF2 corruption
zren at suse.com
Tue Apr 11 22:12:11 EDT 2017
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>:
>> Just opened what I think is a bug with the Ubuntu util-linux package:
>> 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:
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.
>> Users mailing list: Users at clusterlabs.org
>> 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
> 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