public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs_repair on root filesystem
@ 2008-03-14 12:13 Massimiliano Adamo
  2008-03-14 14:24 ` Eric Sandeen
  0 siblings, 1 reply; 2+ messages in thread
From: Massimiliano Adamo @ 2008-03-14 12:13 UTC (permalink / raw)
  To: xfs

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?

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.

cheers
Massimiliano Adamo

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: xfs_repair on root filesystem
  2008-03-14 12:13 xfs_repair on root filesystem Massimiliano Adamo
@ 2008-03-14 14:24 ` Eric Sandeen
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Sandeen @ 2008-03-14 14:24 UTC (permalink / raw)
  To: Massimiliano Adamo; +Cc: xfs

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
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-03-14 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-14 12:13 xfs_repair on root filesystem Massimiliano Adamo
2008-03-14 14:24 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox