Checking a file-system for errors
I'm just wondering if anyone could share any views on checking a file-system for errors. For example, we could use mmfsck in online and offline mode. Does online mode detect errors (but not fix) things that would be found in offline mode? And then were does mmrestripefs -c fit into this? "-c Scans the file system and compares replicas of metadata and data for conflicts. When conflicts are found, the -c option attempts to fix the replicas. " Which sorta sounds like fix things in the file-system, so how does that intersect (if at all) with mmfsck? Thanks Simon
Hm , mmfsck will return not very reliable results in online mode, especially it will report many issues which are just due to the transient states in a files system in operation. It should however not find less issues than in off-line mode. mmrestripefs -c does not do any logical checks, it just checks for differences of multiple replicas of the same data/metadata. File system errors can be caused by such discrepancies (if an odd/corrupt replica is used by the GPFS), but can also be caused (probably more likely) by logical errors / bugs when metadata were modified in the file system. In those cases, all the replicas are identical nevertheless corrupt (cannot be found by mmrestripefs) So, mmrestripefs -c is like scrubbing for silent data corruption (on its own, it cannot decide which is the correct replica!), while mmfsck checks the filesystem structure for logical consistency. If the contents of the replicas of a data block differ, mmfsck won't see any problem (as long as the fs metadata are consistent), but mmrestripefs -c will. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 10:47 AM Subject: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org I'm just wondering if anyone could share any views on checking a file-system for errors. For example, we could use mmfsck in online and offline mode. Does online mode detect errors (but not fix) things that would be found in offline mode? And then were does mmrestripefs -c fit into this? "-c Scans the file system and compares replicas of metadata and data for conflicts. When conflicts are found, the -c option attempts to fix the replicas. " Which sorta sounds like fix things in the file-system, so how does that intersect (if at all) with mmfsck? Thanks Simon _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
OK thanks, So if I run mmfsck in online mode and it says: "File system is clean. Exit status 0:10:0." Then I can assume there is no benefit to running in offline mode? But it would also be prudent to run "mmrestripefs -c" to be sure my filesystem is happy? Thanks Simon On 11/10/2017, 11:19, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Hm , mmfsck will return not very reliable results in online mode, especially it will report many issues which are just due to the transient states in a files system in operation. It should however not find less issues than in off-line mode.
mmrestripefs -c does not do any logical checks, it just checks for differences of multiple replicas of the same data/metadata. File system errors can be caused by such discrepancies (if an odd/corrupt replica is used by the GPFS), but can also be caused (probably more likely) by logical errors / bugs when metadata were modified in the file system. In those cases, all the replicas are identical nevertheless corrupt (cannot be found by mmrestripefs)
So, mmrestripefs -c is like scrubbing for silent data corruption (on its own, it cannot decide which is the correct replica!), while mmfsck checks the filesystem structure for logical consistency. If the contents of the replicas of a data block differ, mmfsck won't see any problem (as long as the fs metadata are consistent), but mmrestripefs -c will.
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke
IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 10:47 AM Subject: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org
I'm just wondering if anyone could share any views on checking a file-system for errors.
For example, we could use mmfsck in online and offline mode. Does online mode detect errors (but not fix) things that would be found in offline mode?
And then were does mmrestripefs -c fit into this?
"-c Scans the file system and compares replicas of metadata and data for conflicts. When conflicts are found, the -c option attempts to fix the replicas. "
Which sorta sounds like fix things in the file-system, so how does that intersect (if at all) with mmfsck?
Thanks
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
If you do both, you are on the safe side. I am not sure wether mmfsck reads both replica of the metadata (if it it does, than one could spare the mmrestripefs -c WRT metadata, but I don't think so), if not, one could still have luckily checked using valid metadata where maybe one (or more) MD block has (have) an invalid replica which might come up another time ... But the mmfsrestripefs -c is not only ensuring the sanity of the FS but also of the data stored within (which is not necessarily the same). Mostly, however, filesystem checks are only done if fs issues are indicated by errors in the logs. Do you have reason to assume your fs has probs? Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 12:32 PM Subject: Re: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org OK thanks, So if I run mmfsck in online mode and it says: "File system is clean. Exit status 0:10:0." Then I can assume there is no benefit to running in offline mode? But it would also be prudent to run "mmrestripefs -c" to be sure my filesystem is happy? Thanks Simon On 11/10/2017, 11:19, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Hm , mmfsck will return not very reliable results in online mode, especially it will report many issues which are just due to the transient states in a files system in operation. It should however not find less issues than in off-line mode.
mmrestripefs -c does not do any logical checks, it just checks for differences of multiple replicas of the same data/metadata. File system errors can be caused by such discrepancies (if an odd/corrupt replica is used by the GPFS), but can also be caused (probably more likely) by logical errors / bugs when metadata were modified in the file system. In those cases, all the replicas are identical nevertheless corrupt (cannot be found by mmrestripefs)
So, mmrestripefs -c is like scrubbing for silent data corruption (on its own, it cannot decide which is the correct replica!), while mmfsck checks the filesystem structure for logical consistency. If the contents of the replicas of a data block differ, mmfsck won't see any problem (as long as the fs metadata are consistent), but mmrestripefs -c will.
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke
IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 10:47 AM Subject: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org
I'm just wondering if anyone could share any views on checking a file-system for errors.
For example, we could use mmfsck in online and offline mode. Does online mode detect errors (but not fix) things that would be found in offline mode?
And then were does mmrestripefs -c fit into this?
"-c Scans the file system and compares replicas of metadata and data for conflicts. When conflicts are found, the -c option attempts to fix the replicas. "
Which sorta sounds like fix things in the file-system, so how does that intersect (if at all) with mmfsck?
Thanks
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Yes I get we should only be doing this if we think we have a problem. And the answer is, right now, we're not entirely clear. We have a couple of issues our users are reporting to us, and its not clear to us if they are related, an FS problem or ACLs getting in the way. We do have users who are trying to work on files getting IO error, and we have an AFM sync issue. The disks are all online, I poked the FS with tsdbfs and the files look OK - (small files, but content of the block matches). Maybe we have a problem with DMAPI and TSM/HSM (could that cause IO error reported to user when they access a file even if its not an offline file??) We have a PMR open with IBM on this already. But there's a wanting to be sure in our own minds that we don't have an underlying FS problem. I.e. I have confidence that I can tell my users, yes I know you are seeing weird stuff, but we have run checks and are not introducing data corruption. Simon On 11/10/2017, 11:58, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Mostly, however, filesystem checks are only done if fs issues are indicated by errors in the logs. Do you have reason to assume your fs has probs?
Usually, IO errors point to some basic problem reading/writing data . if there are repoducible errors, it's IMHO always a nice thing to trace GPFS for such an access. Often that reveals already the area where the cause lies and maybe even the details of it. Mit freundlichen Grüßen / Kind regards Dr. Uwe Falke IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com ------------------------------------------------------------------------------------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122 From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 01:22 PM Subject: Re: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org Yes I get we should only be doing this if we think we have a problem. And the answer is, right now, we're not entirely clear. We have a couple of issues our users are reporting to us, and its not clear to us if they are related, an FS problem or ACLs getting in the way. We do have users who are trying to work on files getting IO error, and we have an AFM sync issue. The disks are all online, I poked the FS with tsdbfs and the files look OK - (small files, but content of the block matches). Maybe we have a problem with DMAPI and TSM/HSM (could that cause IO error reported to user when they access a file even if its not an offline file??) We have a PMR open with IBM on this already. But there's a wanting to be sure in our own minds that we don't have an underlying FS problem. I.e. I have confidence that I can tell my users, yes I know you are seeing weird stuff, but we have run checks and are not introducing data corruption. Simon On 11/10/2017, 11:58, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Mostly, however, filesystem checks are only done if fs issues are indicated by errors in the logs. Do you have reason to assume your fs has probs?
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
So with the help of IBM support and Venkat (thanks guys!), we think its a problem with DMAPI. As we initially saw this as an issue with AFM replication, we had traces from there, and had entries like: gpfsWrite exit: failed err 688 Now apparently err 688 relates to "DMAPI disposition", once we had this we were able to get someone to take a look at the HSM dsmrecalld, it was running, but had failed over to a node that wasn't able to service requests properly. (multiple NSD servers with different file-systems each running dsmrecalld, but I don't think you can scope nods XYZ to filesystem ABC but not DEF). Anyway once we got that fixed, a bunch of stuff in the AFM cache popped out (and a little poke for some stuff that hadn't updated metadata cache probably). So hopefully its now also solved for our other users. What is complicated here is that a DMAPI issue was giving intermittent IO errors, people could write into new folders, but not existing files, though I could (some sort of Schrödinger's cat IO issue??). So hopefully we are fixed... Simon On 11/10/2017, 15:01, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Usually, IO errors point to some basic problem reading/writing data . if there are repoducible errors, it's IMHO always a nice thing to trace GPFS for such an access. Often that reveals already the area where the cause lies and maybe even the details of it.
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke
IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 01:22 PM Subject: Re: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org
Yes I get we should only be doing this if we think we have a problem.
And the answer is, right now, we're not entirely clear.
We have a couple of issues our users are reporting to us, and its not clear to us if they are related, an FS problem or ACLs getting in the way.
We do have users who are trying to work on files getting IO error, and we have an AFM sync issue. The disks are all online, I poked the FS with tsdbfs and the files look OK - (small files, but content of the block matches).
Maybe we have a problem with DMAPI and TSM/HSM (could that cause IO error reported to user when they access a file even if its not an offline file??)
We have a PMR open with IBM on this already.
But there's a wanting to be sure in our own minds that we don't have an underlying FS problem. I.e. I have confidence that I can tell my users, yes I know you are seeing weird stuff, but we have run checks and are not introducing data corruption.
Simon
On 11/10/2017, 11:58, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Mostly, however, filesystem checks are only done if fs issues are indicated by errors in the logs. Do you have reason to assume your fs has probs?
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Generally you should not run mmfsck unless you see MMFS_FSSTRUCT errors in your system logs. To my knowledge online mmfsck only checks for a subset of problems, notably lost blocks, but that situation does not indicate any problems with the file system. Fred __________________________________________________ Fred Stock | IBM Pittsburgh Lab | 720-430-8821 stockf@us.ibm.com From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: gpfsug main discussion list <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 06:32 AM Subject: Re: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org OK thanks, So if I run mmfsck in online mode and it says: "File system is clean. Exit status 0:10:0." Then I can assume there is no benefit to running in offline mode? But it would also be prudent to run "mmrestripefs -c" to be sure my filesystem is happy? Thanks Simon On 11/10/2017, 11:19, "gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com" <gpfsug-discuss-bounces@spectrumscale.org on behalf of UWEFALKE@de.ibm.com> wrote:
Hm , mmfsck will return not very reliable results in online mode, especially it will report many issues which are just due to the transient states in a files system in operation. It should however not find less issues than in off-line mode.
mmrestripefs -c does not do any logical checks, it just checks for differences of multiple replicas of the same data/metadata. File system errors can be caused by such discrepancies (if an odd/corrupt replica is used by the GPFS), but can also be caused (probably more likely) by logical errors / bugs when metadata were modified in the file system. In those cases, all the replicas are identical nevertheless corrupt (cannot be found by mmrestripefs)
So, mmrestripefs -c is like scrubbing for silent data corruption (on its own, it cannot decide which is the correct replica!), while mmfsck checks the filesystem structure for logical consistency. If the contents of the replicas of a data block differ, mmfsck won't see any problem (as long as the fs metadata are consistent), but mmrestripefs -c will.
Mit freundlichen Grüßen / Kind regards
Dr. Uwe Falke
IT Specialist High Performance Computing Services / Integrated Technology Services / Data Center Services -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Rathausstr. 7 09111 Chemnitz Phone: +49 371 6978 2165 Mobile: +49 175 575 2877 E-Mail: uwefalke@de.ibm.com -------------------------------------------------------------------------- ----------------------------------------------------------------- IBM Deutschland Business & Technology Services GmbH / Geschäftsführung: Thomas Wolter, Sven Schooß Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
From: "Simon Thompson (IT Research Support)" <S.J.Thompson@bham.ac.uk> To: "gpfsug-discuss@spectrumscale.org" <gpfsug-discuss@spectrumscale.org> Date: 10/11/2017 10:47 AM Subject: [gpfsug-discuss] Checking a file-system for errors Sent by: gpfsug-discuss-bounces@spectrumscale.org
I'm just wondering if anyone could share any views on checking a file-system for errors.
For example, we could use mmfsck in online and offline mode. Does online mode detect errors (but not fix) things that would be found in offline mode?
And then were does mmrestripefs -c fit into this?
"-c Scans the file system and compares replicas of metadata and data for conflicts. When conflicts are found, the -c option attempts to fix the replicas. "
Which sorta sounds like fix things in the file-system, so how does that intersect (if at all) with mmfsck?
Thanks
Simon
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org
https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi... _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at spectrumscale.org https://urldefense.proofpoint.com/v2/url?u=http-3A__gpfsug.org_mailman_listi...
participants (3)
-
Frederick Stock -
Simon Thompson (IT Research Support) -
Uwe Falke
