Operating System - HP-UX
1833883 Members
1795 Online
110063 Solutions
New Discussion

Re: health check on mounted file system

 
Stuart Powell
Super Advisor

health check on mounted file system

I want to be able to create a script that will check the health of a mounted Serviceguard file system. From the man pages on fsck the -m option will not perform a sanity check on a mounted file system.
Anybody else been down this road?

Stuart
Sometimes the best answer is another question
2 REPLIES 2
James Odak
Valued Contributor

Re: health check on mounted file system

you probably know this already but
lvdisplay -v /dev/vgxx/lvolxx|pg
gives you some info
fsadm /dev/vgxx/rlvolxx
gives you some config info, largefiles and such

Jim
Dietmar Konermann
Honored Contributor

Re: health check on mounted file system

You could run fsck with the -n option, but the results would not be reliable, since fsck would not be able to get a consistent view of the file system. If no errors are detected (unlikely on a busy fs) then all should be fine. However, there could be lots of errors reported (likely) although the fs is completely OK.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)