From: Derek Vadala <derek@cynicism.com>
To: "Jakob Østergaard" <jakob@unthought.net>
Cc: Danilo Godec <danci@agenda.si>,
James Fillman <jfillman@cucbc.com>,
linux-raid@vger.kernel.org
Subject: Re: just how dangerous is this??
Date: Tue, 28 May 2002 17:55:07 -0700 (PDT) [thread overview]
Message-ID: <Pine.GSO.4.21.0205281741370.18572-100000@gecko.roadtoad.net> (raw)
In-Reply-To: <20020528215101.E20621@unthought.net>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: TEXT/PLAIN; charset=X-UNKNOWN, Size: 1863 bytes --]
On Tue, 28 May 2002, [iso-8859-1] Jakob Østergaard wrote:
> Either it reconstructs it "right" or it does it "wrong". It seems in
> his case it did it right. Lucky him.
>
> Hoever, the persistent superblocks will overwrite the last few KB of his
> *filesystem* on each partition. So things *may* seem to work, but the
> system will fail horribly later. After an fsck the RAID suprblocks will
> be damaged. After another mkraid the filesystem will be damaged again.
You should be able to pre-plan by creating initial ext2 file systems that
are smaller than the partition size. You can do this by specifying the
number of blocks in the file system when you run mke2fs.
mke2fs [options] device blocks
You should be able to calculate the eventual location of the md superblock
and select an appropriate block size for each partition to insure that the
superlbock and the filesystem do not overlap.
Even if you've had sucess thus far, it's likely that problems will arise
as the filesystem fills up-- when the last blocks are allocated, and they
overlap the md superblock.
This probably isn't worth the effort unless you are doing multiple
installs with the same partition layout and hardware, but it seems that it
might be the case here.
I think the formula should be something like:
blocks - (blocks % 64) - 64 = md offset
That's for 1k blocks... ( like from fdisk -l)
I'm a bit lazy to double check, but I think that formula works.
Then when creating a filesystem divide by block size and create a file
system that's the right size...
---
Derek Vadala, derek@cynicism.com, http://www.cynicism.com/~derek
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2002-05-29 0:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-28 17:55 just how dangerous is this?? James Fillman
2002-05-28 19:20 ` Danilo Godec
2002-05-28 19:51 ` Jakob Østergaard
2002-05-29 0:55 ` Derek Vadala [this message]
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=Pine.GSO.4.21.0205281741370.18572-100000@gecko.roadtoad.net \
--to=derek@cynicism.com \
--cc=danci@agenda.si \
--cc=jakob@unthought.net \
--cc=jfillman@cucbc.com \
--cc=linux-raid@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).