All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@sandeen.net>
To: Massimiliano Adamo <maxadamo@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: xfs_repair on root filesystem
Date: Fri, 14 Mar 2008 09:24:32 -0500	[thread overview]
Message-ID: <47DA8AA0.3020902@sandeen.net> (raw)
In-Reply-To: <1205496795.16829.6.camel@AXALTO-9A9B4636.homelinux.doma>

Massimiliano Adamo wrote:
> Hi all,
> 
> I have seen that it's possible to run xfs_check on filesystems mounted
> read-only, but in order to use xfs_repair the filesystem must be
> unmounted.
> I can't even imagine how to run xfs_repair on root filesystem, without
> booting from a live cd.
> 
> Do you think it would be possible to implement xfs_repair on 'ro'
> filesystem, or on filesytems frozen with xfs_freeze?

Like this, from the xfs_repair manpage? :)

       -d     Repair dangerously.  Allow  xfs_repair
              to  repair  an  XFS filesystem mounted
              read only. This is typically done on a
              root  fileystem from single user mode,
              immediately followed by a reboot.

For an added bonus, you could create a "rescue initrd" which contains
repair.  I always thought this would be a neat trick.

> The other question would be about the possibility to shrink a XFS
> filesystem... but as I can see this is a work already in progress.

It is (slowly) in progress I think, and something of a FAQ by now :)

-Eric

> cheers
> Massimiliano Adamo
> 
> 

      reply	other threads:[~2008-03-14 14:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-14 12:13 xfs_repair on root filesystem Massimiliano Adamo
2008-03-14 14:24 ` Eric Sandeen [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=47DA8AA0.3020902@sandeen.net \
    --to=sandeen@sandeen.net \
    --cc=maxadamo@gmail.com \
    --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 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.