From: Steve Lord <lord@xfs.org>
To: Ricky Beam <jfbeam@bluetronic.net>
Cc: Linux Kernel Mail List <linux-kernel@vger.kernel.org>,
XFS List <linux-xfs@oss.sgi.com>
Subject: Re: xfs partition refuses to mount
Date: Sat, 29 May 2004 15:01:06 -0500 [thread overview]
Message-ID: <40B8EC02.3050506@xfs.org> (raw)
In-Reply-To: <Pine.GSO.4.33.0405291528450.14297-100000@sweetums.bluetronic.net>
Ricky Beam wrote:
> On Sat, 29 May 2004, Steve Lord wrote:
>
>>You have turned on XFS debug, which is really a developer option. It
>>looks like you have a corrupt journal though. A non debug kernel may
>>still refuse to mount it and you would need to run xfs_repair from
>>a rescue disk in that case.
>
>
> Unless xfs_repair has been changed recently, all it will be able to do it
> delete (zero) the journal. If it detects metadata in the journal, it'll
> stop and tell you mount the filesystem to replay the journal. Personally,
> I think that's sorta stupid... if I could mount the fs, I wouldn't be
> running xfs_repair. (I've had the journal become spooge on a sparc64
> box a few times.)
Yes, xfs_repair will not replay a log, and if it finds dirty metadata in
the log it wants you to replay it via mount. Having xfs_repair able to
replay the log would be handy, but if mount cannot replay it, then
repair will not either. xfs_repair -L bypasses this check and resets
the log. Following that it does a complete consistancy check and
fixup of metadata - it does a good job in most cases. Note that it
deletes lost+found, and if you had files in there, they would be
disconnected and get put back in lost+found again.
The whole reason for -L was customers who automatically ran xfs_repair
after a crash, and hence threw away anything which was in the log. So
it is more of a stop and think what you are doing option.
>
> There should be a way to instruct the kernel's rootfs mount to not look
> at the log. I don't know if one can pass any generic mount options at
> boot. ("ro"/"rw" and rootfs type, but I don't know of any others.) This
> would be handy for more than just xfs, btw.
>
You can mount norecovery,ro - but no guarantees that it will stay up
long. See Documentation/filesystems/xfs.txt for a list of xfs mount
options.
Steve
next prev parent reply other threads:[~2004-05-29 20:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-29 14:36 Vincent van de Camp
2004-05-29 18:11 ` Steve Lord
2004-05-29 19:35 ` Ricky Beam
2004-05-29 20:01 ` Steve Lord [this message]
2004-05-29 20:42 ` Ricky Beam
2004-05-31 1:31 ` Tim Shimmin
2004-05-31 2:02 ` Måns Rullgård
2004-05-31 7:43 ` Christoph Hellwig
2004-05-29 19:44 ` Vincent van de Camp
2004-05-29 20:48 ` Ricky Beam
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=40B8EC02.3050506@xfs.org \
--to=lord@xfs.org \
--cc=jfbeam@bluetronic.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-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
all inboxes | Powered by JetHome®