From: Andrew Price Date: Tue, 13 Feb 2018 20:27:36 +0000 Subject: [Cluster-devel] [PATCH] mkfs.gfs2: Scale down journal size for smaller devices In-Reply-To: <415775115.3098372.1518553101291.JavaMail.zimbra@redhat.com> References: <20180212200242.5682-1-anprice@redhat.com> <415775115.3098372.1518553101291.JavaMail.zimbra@redhat.com> Message-ID: <3c88276d-428a-d136-e98f-73558562c9b0@redhat.com> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On 13/02/18 20:18, Bob Peterson wrote: > ----- Original Message ----- > | Currently the default behaviour when the journal size is not specified > | is to use a default size of 128M, which means that mkfs.gfs2 can run out > | of space while writing to a small device. The hard default also means > | that some xfstests fail with gfs2 as they expect it to fit on smaller > | devices using the default options. > | > | This patch addresses these problems by picking a maximum proportion of > | the fs that journals should occupy (1/4) and scaling the journal size > | down (as far as the minimum size) to enforce that rule. As the minimum > | journal size is 8MB that means we effectively get a hard minimum file > | system size of 32MB (per journal). > | > | Signed-off-by: Andrew Price > | --- > > Hi, > > Looks good to me. ACK. Andreas found the 1/4 scaling to be lacking (and still failing small-fs xfstests) so I'm about to send a new version. Andy