From: Sunil Mushran <Sunil.Mushran@oracle.com>
To: ocfs2-devel@oss.oracle.com
Subject: [Ocfs2-devel] [PATCH 1/2] Initalize bitmap_cpg of ocfs2_super to be the maximum,take 1
Date: Tue Nov 20 15:14:46 2007 [thread overview]
Message-ID: <47436A4A.1030409@oracle.com> (raw)
In-Reply-To: <20071120225859.GG28607@ca-server1.us.oracle.com>
We encountered this during offline resize.
While fsck.ocfs2 was updated to fix this issue, we never
did address the same in mkfs.
As the chances that a user will encounter this is fairly low,
we could always bail online resize if it encountered this issue.
(A dirty read of the global bitmap from tune should suffice.)
If so, ask user to run fsck.
Comments?
Mark Fasheh wrote:
> On Fri, Nov 16, 2007 at 04:41:10PM +0800, tao.ma wrote:
>
>> This value is initialized from global_bitmap->id2.i_chain.cl_cpg. If there
>> is only 1 group, it will be equal to the total clusters in the volume. So
>> as for online resize, it should change for all the nodes in the cluster.
>> It isn't easy and there is no corresponding lock for it.
>>
>
> Yeah, there's little point in having it that way. We probably want to update
> mkfs.ocfs2 to write out the correct value.
>
>
>
>> bitmap_cpg is only used in 2 areas:
>> 1. Check whether the suballoc is too large for us to allocate from the global
>> bitmap, so it is little used. And now the suballoc size is 2048, it rarely
>> meet this situation and the check is almost useless.
>> 2. Calculate which group a cluster belongs to. We use it during truncate to
>> figure out which cluster group an extent belongs too. But we should be OK
>> if we increase it though as the cluster group calculated shouldn't change
>> and we only ever have a small bitmap_cpg on file systems with a single
>> cluster group.
>>
>
> Did you test a very large extend on a very small (less than 1 cluster group)
> file system?
> --Mark
>
> --
> Mark Fasheh
> Senior Software Developer, Oracle
> mark.fasheh@oracle.com
>
> _______________________________________________
> Ocfs2-devel mailing list
> Ocfs2-devel@oss.oracle.com
> http://oss.oracle.com/mailman/listinfo/ocfs2-devel
>
next prev parent reply other threads:[~2007-11-20 15:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-16 0:32 [Ocfs2-devel] [PATCH 0/2] Add online resize in ocfs2, take 1 Tao Ma
2007-11-16 0:44 ` [Ocfs2-devel] [PATCH 1/2] Initalize bitmap_cpg of ocfs2_super to be the maximum,take 1 Tao Ma
2007-11-20 15:00 ` Mark Fasheh
2007-11-20 15:14 ` Sunil Mushran [this message]
2007-11-20 15:23 ` Mark Fasheh
2007-11-20 15:40 ` Mark Fasheh
2007-11-20 17:14 ` tao.ma
2007-11-21 1:16 ` tao.ma
2007-11-21 7:39 ` Mark Fasheh
2007-11-16 0:46 ` [Ocfs2-devel] [PATCH 2/2] Add online resize support for ocfs2, take 1 Tao Ma
2007-11-20 17:08 ` Mark Fasheh
2007-11-20 17:32 ` tao.ma
2007-11-20 17:54 ` Mark Fasheh
2007-11-20 18:39 ` tao.ma
2007-11-20 20:01 ` Mark Fasheh
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=47436A4A.1030409@oracle.com \
--to=sunil.mushran@oracle.com \
--cc=ocfs2-devel@oss.oracle.com \
/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.