Greenplum中XFS的设置
在check OS时,会报关于XFS的错误
$ gpcheck -f /opt/greenplum/greenplum-db/conf/hostlist
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(None): utility will not check all settings when run as non-root user
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s1): ntpd not detected on machine
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s2): XFS filesystem on device /dev/sda4 has 1 XFS mount options and 4 are expected
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s2): XFS filesystem on device /dev/sda4 is missing the recommended mount option 'allocsize=16m'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s2): XFS filesystem on device /dev/sda4 is missing the recommended mount option 'inode64'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s2): XFS filesystem on device /dev/sda4 is missing the recommended mount option 'noatime'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s2): ntpd not detected on machine
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s3): XFS filesystem on device /dev/sda5 has 1 XFS mount options and 4 are expected
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s3): XFS filesystem on device /dev/sda5 is missing the recommended mount option 'allocsize=16m'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s3): XFS filesystem on device /dev/sda5 is missing the recommended mount option 'inode64'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s3): XFS filesystem on device /dev/sda5 is missing the recommended mount option 'noatime'
20160811:16:05:30:002835 gpcheck:thmgp-master:gpadmin-[ERROR]:-GPCHECK_ERROR host(thmgp-s3): ntpd not detected on machine
解决办法:
修改/etc/fstab文件中XFS的配置,如下:
UUID=910f686d-ed06-45ac-b4a5-12384bc8984d /data xfs rw,noatime,inode64,allocsize=16m 1 2
转载请注明:
十字螺丝钉
http://blog.chinaunix.net/uid/23284114.html
QQ:463725310
E-MAIL:houora#gmail.com(#请自行替换为@)