From: Michael Tokarev <mjt@tls.msk.ru>
To: Christian Pernegger <pernegger@gmail.com>
Cc: linux-raid@vger.kernel.org, linux-ide@vger.kernel.org
Subject: Re: Setting up md-raid5: observations, errors, questions
Date: Sun, 02 Mar 2008 18:20:31 +0300 [thread overview]
Message-ID: <47CAC5BF.6060600@msgid.tls.msk.ru> (raw)
In-Reply-To: <bb145bd20803020423m14efea1by6e3e38bb8d0decb8@mail.gmail.com>
Christian Pernegger wrote:
> Hi all!
Hello.
> Hardware:
> Tyan Thunder K8W (S2885)
> Dual Opteron 254, 2GB (2x2x512MB) RAM, 2x Promise SATA II TX4, Adaptec 29160
> 4x WD RE2-GP 1TB on the Promise (for raid5)
[]
> [exact command unavailable, see below. RAID5, 4 disks, 1024K chunk
> size, internal bitmap, V1 superblock]
ok.
> Tried creating a filesystem:
>
> mke2fs -E stride=256 -j -L tb-storage -m1 -T largfile4 /dev/md0
>
> That was glacially slow, "writing inode tables" went up about 3-4/sec
> (22357 total). Since I had forgotten the crypto layer anyway I
> CTRL-Ced that attempt and added it:
>
> [exact command unavailable, see below. Used 2048 (512byte sectors) for
> LUKS payload alignment, which should land on it chunk boundaries]
>
> OK. Back to the fs again, same command, different device. Still
> glacially slow (and still running), only now the whole box is at a
> standstill, too. cat /proc/cpuinfo takes about 3 minutes (!) to
> complete, I'm still waiting for top to launch (15min and counting).
> I'll leave mke2fs running for now ...
What's the state of your array at this point - is it resyncing?
> So, is all this normal? What did I do wrong, what can I do better?
In order to debug, try the following:
o how about making filesystem(s) on individual disks first, to see
how that will work out? Maybe on each of them in parallel? :)
o try --assume-clean when creating the array - this will omit resync
and the array will be "clean" from the beginning (which is not bad
when you will run mkfs on it anyway). And try creating the filesystem
on a clean (non-resyncing) array.
o don't use crypto layer yet, - it seems does not hurt, just additional
complexity
o look at your interrupts (/proc/interrupts, or just run vmstat with
some interval while the system working hard) - I bet your promises
are taking all system time in irq context....
/mjt
next prev parent reply other threads:[~2008-03-02 15:20 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-02 12:23 Setting up md-raid5: observations, errors, questions Christian Pernegger
2008-03-02 12:41 ` Justin Piszcz
2008-03-02 12:56 ` Christian Pernegger
2008-03-02 13:03 ` Justin Piszcz
2008-03-02 13:24 ` Christian Pernegger
2008-03-03 17:59 ` Bill Davidsen
2008-03-03 20:19 ` Christian Pernegger
2008-03-02 15:20 ` Michael Tokarev [this message]
2008-03-02 16:32 ` Christian Pernegger
2008-03-02 18:33 ` Michael Tokarev
2008-03-02 21:19 ` Christian Pernegger
2008-03-02 21:56 ` Michael Tokarev
2008-03-03 0:17 ` Christian Pernegger
2008-03-03 2:58 ` Michael Tokarev
2008-03-03 8:38 ` Christian Pernegger
2008-03-04 16:54 ` Christian Pernegger
2008-03-05 6:38 ` Christian Pernegger
2008-03-10 14:03 ` Christian Pernegger
2008-03-02 18:53 ` Christian Pernegger
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=47CAC5BF.6060600@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=linux-ide@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=pernegger@gmail.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 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).