From: Roman Mamedov <rm@romanrm.ru>
To: linux-ext4@vger.kernel.org, linux-raid@vger.kernel.org
Subject: tune2fs can't be used on a mounted ext4, or...?
Date: Sun, 10 Apr 2011 00:39:54 +0600 [thread overview]
Message-ID: <20110410003954.4108b9c9@natsu> (raw)
[-- Attachment #1: Type: text/plain, Size: 1677 bytes --]
Hello,
Here's what happened. I reshaped my RAID5 to a RAID6 and a larger disk count.
Then I ran "resize2fs /dev/md0". It successfully enlarged the filesystem
online (that took a couple of hours, I think).
Since my count of disks changed, I thought I should change the array stripe
width. Then, while still not unmounting the filesystem, I did:
tune2fs -E stripe_width=48 /dev/md0
Then I started copying files from another array to the one on which the above
operations were conducted. I did:
cp -Rp /mnt/array1/data/* /mnt/array2/new-data/
This completed successfully. No errors on the console, silence in dmesg.
Then I thought I'd verify the destination, just to be sure. Luckily, I have
checksums stored in almost every directory as .SFV files (created with "cfv").
And some checksums did not match. On a closer investigation, it appears like
some files deep down in the directory tree (and with a rare occurence,
something like one file in a thousand) were truncated during copying. E.g.
they'd have size of 188 MB instead of 349 MB, or 128 MB instead of 170 MB.
Some files (originally less than 1 MB in size) just had zero-length on the
destination.
Other than these truncations, there is NO corruption of data inside any of the
files. Which kinda rules out CRC-style errors in controller/disk/cable.
So.. this is completely puzzling to me, and I suspect either a kernel bug, or
my mistake, and tune2fs cannot modify a mounted FS (however it did NOT show any
warning that the FS was mounted, and if this is the case, it should've
absolutely refused to operate on a mounted FS).
Any ideas? :)
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2011-04-09 18:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-09 18:39 Roman Mamedov [this message]
2011-04-09 21:30 ` tune2fs can't be used on a mounted ext4, or...? Andreas Dilger
2011-04-09 21:50 ` Roman Mamedov
2011-04-11 13:10 ` Ted Ts'o
2011-04-11 18:55 ` Roman Mamedov
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=20110410003954.4108b9c9@natsu \
--to=rm@romanrm.ru \
--cc=linux-ext4@vger.kernel.org \
--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 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.