XFS Question
Andrew Mathews
andrew_mathews
Mon May 17 11:46:32 PDT 2004
Brett I. Holcomb wrote:
> Question about XFS. It's a journeling system and does it's check at mount.
> Suppose it finds a problem with the filesystem during the mount so it
> would - I assume refuse to mount it. How do you fix it? fsck.xfs is a do
> nothing routine since it assumes it's checked at mount?
>
>
If there's a problem with the filesystem and/or the journal can't be
replayed (rare) it will drop you to a shell to run xfs_repair with the
appropriate flags. You should run xfs_check first though to determine
exactly what the problem is. In a very rare case you'll use it to
determine if the filesystem needs dumped and restored. This could happen
if your journal is stored externally and isn't accessible, or the log
has grown beyond the internal default of 32k for a type 1 log and needs
to be converted to a type 2 log using the suint suboption in mkfs.xfs.
Essentially, as you say, fsck.xfs does nothing to the filesystem as it's
called at a different layer than the normal xfs tools and isn't capable
of manipulating the filesystem externally. It makes some people feel
good though. <g>
--
Andrew Mathews
---------------------------------------------------------------------
6:37pm up 9 days, 4:42, 13 users, load average: 1.14, 1.60, 1.84
---------------------------------------------------------------------
The road to Hades is easy to travel.
-- Bion
More information about the Linux-users
mailing list