what's on a 'dataOnly' disk?
What's on a 'dataOnly' GPFS 3.5.x NSD besides data and the NSD disk header, if anything? I'm trying to understand some file corruption, and one potential explanation would be if a (non-GPFS) server wrote to a LUN used as a GPFS dataOnly NSD. We are not seeing any 'I/O' or filesystem errors, mmfsck (online) doesn't detect any errors, and all NSDs are usable. However, some files seem to have changes in content, with no changes in metadata (modify timestamp, ownership), including files with the GPFS "immutable" ACL set. If an NSD was changed outside of GPFS control, would mmfsck detect filesystem errors, or would the GPFS filesystem be consistent, even though the content of some of the data blocks was altered? Is there any metadata or checksum information maintained by GPFS, or any means of doing a consistency check of the contents of files that would correlate with blocks stored on a particular NSD? Thanks, Mark
Hi Mark, AFAIK, there will not be any file system corruption if just data blocks are altered by activities outside GPFS. Mind: the metadata just tell were to find the data, not what will be there. If you have the data replicated, you could compare the two replica. But mind: with some GPFS version, a replica compare tool was introduced which would fix differences by always assuming the first version it has read is the correct one -- which is wrong in half of the cases, I'd say. Only now (I think with SpSc 4.2), a version of that tool is available which allows the user to check the differences and possibly select the good version. If you have your data replicated and you may assume that the problem is affecting only disks in one failure group (FG), you could also set these disks down, add new disks to the FG and restripe the FS. Then, GNR works with end-to-end checksumming. This would not help you retrieving the original content but would allow you to identify altered file contents. 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: Frank Hammer, Thorsten Moehring Sitz der Gesellschaft: Ehningen / Registergericht: Amtsgericht Stuttgart, HRB 17122
What's on a 'dataOnly' GPFS 3.5.x NSD besides data and the NSD disk header, if anything?
That's it. In some cases there may also be a copy of the file system descriptor, but that doesn't really matter in your case.
I'm trying to understand some file corruption, and one potential explanation would be if a (non-GPFS) server wrote to a LUN used as a GPFS dataOnly NSD.
We are not seeing any 'I/O' or filesystem errors, mmfsck (online) doesn't detect any errors, and all NSDs are usable. However, some files seem to have changes in content, with no changes in metadata (modify timestamp, ownership), including files with the GPFS "immutable" ACL set.
This is all consistent with the content on a dataOnly disk being overwritten outside of GPFS.
If an NSD was changed outside of GPFS control, would mmfsck detect filesystem errors, or would the GPFS filesystem be consistent, even though the content of some of the data blocks was altered?
No. mmfsck can detect metadata corruption, but has no way to tell whether a data block has correct content or garbage.
Is there any metadata or checksum information maintained by GPFS, or any means of doing a consistency check of the contents of files that would correlate with blocks stored on a particular NSD?
GPFS on top of traditional disks/RAID LUNs doesn't checksum data blocks, and thus can't tell whether a data block is good or bad. GPFS Native RAID has very strong on-disk data checksumming, OTOH. yuri
Just to add... Spectrum Scale is no different than most other file systems in this respect. It assumes the disk system and network systems will detect I/O errors, including data corruption. And it usually will ... but there are, as you've discovered, scenarios where it can not.
participants (4)
-
Marc A Kaplan -
Mark Bergman -
Uwe Falke -
Yuri L Volobuev
