public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Eli Morris <ermorris@ucsc.edu>
Cc: xfs@oss.sgi.com
Subject: Re: filesystem shrinks after using xfs_repair
Date: Mon, 26 Jul 2010 20:20:36 +1000	[thread overview]
Message-ID: <20100726102036.GH7362@dastard> (raw)
In-Reply-To: <F91DF703-4BFF-415B-91B6-87A88F096C91@ucsc.edu>

On Sun, Jul 25, 2010 at 11:46:29PM -0700, Eli Morris wrote:
> On Jul 25, 2010, at 11:06 PM, Dave Chinner wrote:
> > On Sun, Jul 25, 2010 at 09:04:03PM -0700, Eli Morris wrote:
> >> On Jul 25, 2010, at 8:45 PM, Dave Chinner wrote:
> > I've just confirmed that the problem does not exist at top-of-tree.
> > The following commands gives the right output, and the repair at the
> > end does not truncate the filesystem:
> > 
> > xfs_io -f -c "truncate $((13427728384 * 4096))" fsfile
> > mkfs.xfs -f -l size=128m,lazy-count=0 -d size=13427728384b,agcount=126,file,name=fsfile
> > xfs_io -f -c "truncate $((16601554944 * 4096))" fsfile
> > mount -o loop fsfile /mnt/scratch
> > xfs_growfs /mnt/scratch
> > xfs_info /mnt/scratch
> > umount /mnt/scratch
> > xfs_db -c "sb 0" -c "p agcount" -c "p dblocks" -f fsfile
> > xfs_db -c "sb 1" -c "p agcount" -c "p dblocks" -f fsfile
> > xfs_db -c "sb 127" -c "p agcount" -c "p dblocks" -f fsfile
> > xfs_repair -f fsfile
> > 
> > So rather than try to triage this any further, can you upgrade your
> > kernel/system to something more recent?
> 
> I can update this to Centos 5 Update 4, but I can't install
> updates forward of it's release date of Dec 15, 2009. The reason
> is that this is the head node of a cluster and it uses the Rocks
> cluster distribution. The newest of Rocks is based on Centos 5
> Update 4, but Rocks systems do not support updates (via yum, for
> example). 
> 
> Updating the OS takes me a day or two for the whole cluster and
> all the user programs. If you're pretty sure that will fix the
> problem, I'll go for it tomorrow. I'd appreciate it very much if
> you could let me know if Centos 5.4 is recent enough that it will
> fix the problem..

The only way I can find out is to load CentOS 5.4 onto a
system and run the above test. You can probably do that just as
easily as I can...

> I will note that I've grown the filesystem several times, and
> while I recall having to unmount and remount the filesystem each
> time for it to report its new size, I've never seen it fall back
> to its old size when running xfs_repair. In fact, the original
> filesystem is about 12 TB, so xfs_repair only reverses the last
> grow and not the previous ones.

Hmmm - I can't recall any bug where unmount was required before
the new size would show up. I know we had problems with arithmetic
overflows in both the xfs_growfs binary and the kernel code, but
they did not manifest in this manner. Hence I can't really say why
you are seeing that behaviour or why this time it is different.

The suggestion of using a recent live CD to do the grow is a good
one - it might be your best option, rather than upgrading everything....

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  parent reply	other threads:[~2010-07-26 10:17 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-12  1:10 filesystem shrinks after using xfs_repair Eli Morris
2010-07-12  2:24 ` Stan Hoeppner
2010-07-12 11:47 ` Emmanuel Florac
2010-07-23  8:30   ` Eli Morris
2010-07-23 10:23     ` Emmanuel Florac
2010-07-23 16:36       ` Eli Morris
2010-07-24  0:54     ` Dave Chinner
2010-07-24  1:08       ` Eli Morris
2010-07-24  2:39         ` Dave Chinner
2010-07-26  3:20           ` Eli Morris
2010-07-26  3:45             ` Dave Chinner
2010-07-26  4:04               ` Eli Morris
2010-07-26  5:57                 ` Michael Monnerie
2010-07-26  6:06                 ` Dave Chinner
2010-07-26  6:46                   ` Eli Morris
2010-07-26  8:40                     ` Michael Monnerie
2010-07-26  9:49                     ` Emmanuel Florac
2010-07-26 17:22                       ` Eli Morris
2010-07-26 18:33                         ` Stuart Rowan
2010-07-26 21:06                         ` Emmanuel Florac
2010-07-27  5:02                           ` Eli Morris
2010-07-27  6:48                             ` Stan Hoeppner
2010-07-27  8:21                             ` Michael Monnerie
2010-07-26 10:20                     ` Dave Chinner [this message]
2010-07-28  5:12                       ` Eli Morris
2010-07-29 19:22                         ` Eli Morris
2010-07-29 22:09                           ` Emmanuel Florac
2010-07-29 22:48                             ` Eli Morris
2010-07-29 23:01                           ` Dave Chinner
2010-07-29 23:15                             ` Eli Morris
2010-07-30  0:39                               ` Michael Monnerie
2010-07-30  1:49                                 ` Eli Morris
2010-07-30  7:15                               ` Emmanuel Florac
2010-07-30  7:57                                 ` Christoph Hellwig
2010-07-30 10:23                                   ` Michael Monnerie
2010-07-30 10:29                                     ` Christoph Hellwig
2010-07-30 12:40                                       ` Michael Monnerie
2010-07-30 13:17                                       ` Emmanuel Florac
  -- strict thread matches above, loose matches on Subject: below --
2010-07-12  6:39 Eli Morris
2010-07-11  6:32 Eli Morris
2010-07-11 10:56 ` Stan Hoeppner
2010-07-11 16:29 ` Emmanuel Florac
2010-07-09 23:07 Eli Morris
2010-07-10  8:16 ` Stan Hoeppner
2010-07-24 21:09 ` 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=20100726102036.GH7362@dastard \
    --to=david@fromorbit.com \
    --cc=ermorris@ucsc.edu \
    --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