When running gpcheck, the following error regarding file system option is seen:
Error Message:
GPCHECK_ERROR host(GUKPBClus2): XFS filesystem on device /dev/mapper/vol2-data has 9 XFS mount options and 4 are expected
The gpcheck utility validates various platform-specific configuration settings.
The settings are checked against the default $GPHOME/etc/gpcheck.cnf configuration file. In the custom OS environment, some checks might fail.
For example, you might have specific options in your mounts that are not covered in the gpcheck configuration file.
Default configuration:
xfs_mount_options = rw,noatime,inode64,allocsize=16m
Mount on the OS:
/dev/vdb on /vol2 type xfs (rw,noatime,attr2,inode64,allocsize=16384k,noquota)
In this situation, you will get an error that you have 6 mount options and 4 are expected.
gpcheck supports a custom configuration file that can be used to reflect your specific OS settings. The process is as follows:
1. Make a copy of the default configuration:
cp $GPHOME/etc/gpcheck.cnf /home/gpadmin
2. Open the config file copy and add the missing mount options to xfs_mount_options line:
vi /home/gpadmin/gpcheck.cnf
3. Run gpcheck with the new config file:
gpcheck -f a --config gpcheck.cnf
Note: Keep the original file to have a point of reference for the default values.