[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Checking mounted fs
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@sgi.com SGI, Inc.