xfs
[Top] [All Lists]

Re: Checking mounted fs

To: "Jan Strohbehn" <j.strohbehn@xxxxxxxxxx>
Subject: Re: Checking mounted fs
From: "Eric Sandeen" <sandeen@xxxxxxx>
Date: Fri, 24 Aug 2001 08:52:23 -0500
Cc: "linux-xfs" <linux-xfs@xxxxxxxxxxx>
References: <20010723095815.B402@chimesnet.com> <200107231404.f6NE4B010447@jen.americas.sgi.com> <3B862623.9060707@artstor.de>
Sender: owner-linux-xfs@xxxxxxxxxxx
Jan Strohbehn wrote:

> My question is, can I run a  "xfs_check /dev/.. || xfs_repair /dev/.."
> before mounting the disk (during a takeover), or will I run into
> additional problems, if the xfs is (accidently) still mounted etc. ??
> (It just happened, that the takeover failed because of a corrupted xfs.)

Both commands will simply fail if the filesystem is mounted.

You could check /proc/mounts first, I suppose, to see what's mounted
before you try to do this?

-Eric

-- 
Eric Sandeen      XFS for Linux     http://oss.sgi.com/projects/xfs
sandeen@xxxxxxx   SGI, Inc.


<Prev in Thread] Current Thread [Next in Thread>