From: Eric Sandeen <sandeen@sandeen.net>
To: Keith Keller <kkeller@sonic.net>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_growfs doesn't resize
Date: Sun, 03 Jul 2011 17:14:05 -0500 [thread overview]
Message-ID: <4E10E9AD.1020709@sandeen.net> (raw)
In-Reply-To: <20110703193822.GA28632@wombat.san-francisco.ca.us>
On 7/3/11 2:38 PM, Keith Keller wrote:
> On Sun, Jul 03, 2011 at 10:59:03AM -0500, Eric Sandeen wrote:
>> On 6/30/11 4:42 PM, kkeller@sonic.net wrote:
>>> # uname -a
>>> Linux sahara.xxx 2.6.18-128.1.6.el5 #1 SMP Wed Apr 1 09:10:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
>>>
>>> Yes, it's not a completely current kernel. This box is running CentOS 5
>>> with some yum updates.
>>
>> try
>>
>> # rpm -qa | grep xfs
>>
>> If you see anything with "kmod" you're running an exceptionally old xfs codebase.
>
> Yes, I do have a kmod-xfs package, so clearly a kernel update is in
> order. So my goals are twofold: 1) verify the current filesystem's
> state--is it healthy, or does it need xfs_db voodoo? 2) once it's
> determined healthy, again attempt to grow the filesystem. Here is
> my current plan for reaching these goals:
> 0) get a nearer-term backup, just in case :) The filesystem still seems
> perfectly normal, but without knowing what my first xfs_growfs did I
> don't know if or how long this state will last.
good idea.
> 1) umount the fs to run xfs_db
>
> 2) attempt a remount--is this safe, or is there risk of damaging the
> filesystem?
I'm not sure.
You probably hit this bug:
http://oss.sgi.com/archives/xfs/2007-01/msg00053.html
See also:
http://oss.sgi.com/archives/xfs/2009-07/msg00087.html
I can't remember how much damage the original bug did ...
> 3) If a remount succeeds, then update the kernel and xfsprogs. If
> a remount doesn't work, then revert to the near-term backup I took
> in 0) and attempt to fix the issue (with the help of the list, I hope).
One thing you might be able to do, though I don't remember for sure
if this works, is to freeze the fs and create an xfs_metadump
image of it. You can then point xfs_repair at that image, and see
what it finds. But I'm not sure if metadump will work on a frozen
fs... hm no. Only if it's mounted ro.
Otherwise -maybe- xfs_repair -n -d might work after a mount -o remount,ro.
(-n -d means operate in no-modify mode on an ro-mounted fs)
So you'd need to mount readonly before you could either do xfs_repair -nd
or xfs_metadump followed by repair of that image. Either one would give
you an idea of the health of the fs.
> 4) In either case, post my xfs_db output to the list and get your
> opinions on the health of the fs.
repair probably will tell you more as an initial step.
> 5) If the fs seems correct, attempt xfs_growfs again.
>
> Do all these steps seem reasonable? I am most concerned about step 2--
> I really do want to be able to remount as quickly as possible, but I
> do not know how to tell whether it's okay from xfs_db's output. So if a
> remount attempt is reasonably nondestructive (i.e., it won't make worse
> an already unhealthy XFS fs) then I can try it and hope for the best.
> (From the other threads I've seen it seems like it's not a good idea to
> run xfs_repair.)
you can run it with -n to do no-modify. If it's clean, you're good;
if it's a mess, you won't hurt anything, other than making you sad. :)
> Would it make more sense to update the kernel and xfsprogs before
> attempting a remount? If a remount fails under the original kernel,
is it still mounted I guess?
A newer up to date kernel certainly won't make anything -worse-
You should uninstall that kmod rpm though so it doesn't get priority
over the xfs.ko in the new kernel. If you need to revert to the old
kernel, you could always reinstall it.
> what do people think the odds are that a new kernel would be able to
> mount the original fs, or is that really unwise?
I don't think a newer kernel would do any further harm.
> Again, many thanks for all your help.
You're welcome but here's the obligatory plug in return - running RHEL5
proper would have gotten you up to date, fully supported xfs, and you wouldn't
have run into this mess. Just sayin' ... ;)
-Eric
> --keith
>
>
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2011-07-03 22:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-30 21:42 xfs_growfs doesn't resize kkeller
2011-07-03 15:59 ` Eric Sandeen
2011-07-03 16:01 ` Eric Sandeen
[not found] ` <20110703193822.GA28632@wombat.san-francisco.ca.us>
2011-07-03 22:14 ` Eric Sandeen [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-06-30 23:30 kkeller
2011-07-01 10:46 ` Dave Chinner
2011-07-01 16:44 kkeller
2011-07-03 19:42 kkeller
2011-07-04 4:34 kkeller
2011-07-04 4:41 ` Eric Sandeen
2011-07-06 22:51 kkeller
2011-07-07 18:25 ` Keith Keller
2011-07-07 19:34 ` Eric Sandeen
2011-07-07 22:23 ` Keith Keller
2011-07-07 22:30 ` Eric Sandeen
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=4E10E9AD.1020709@sandeen.net \
--to=sandeen@sandeen.net \
--cc=kkeller@sonic.net \
--cc=xfs@oss.sgi.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