Search Engine: Elastic

Article ID: 133702, created on Feb 8, 2019, last review on Feb 8, 2019

  • Applies to:
  • Operations Automation 8.0

Symptoms

While registering a new NG Node, "Registering webserver IP_ADDRESS" task fails, containing the following output:

+ '[' 0 -eq 0 ']'
+ yum -y install cachefilesd
Loaded plugins: fastestmirror, rhnplugin
Setting up Install Process
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: cl-mirror.umbrellar.nz
Package cachefilesd-0.10.2-3.el6.x86_64 already installed and latest version
Nothing to do
+ sed -i /secctx/D /etc/cachefilesd.conf
+ service cachefilesd start
Starting cachefilesd:                                      [FAILED]

The following lines appear in /var/log/messages on the NG node:

Feb  7 22:58:49.676 cachefilesd[296818]: About to bind cache
Feb  7 22:58:49.678 kernel: [216677.890633] CacheFiles: Can't set xattr on cache [39] (err 95)
Feb  7 22:58:49.678 kernel: [216677.891289] CacheFiles: Failed to register: -95
Feb  7 22:58:49.678 cachefilesd[296818]: CacheFiles bind failed: errno 95 (Operation not supported)

It is impossible to set the extended attributes to certain files:

# setfattr -n user.example -v example /var/cache/fscache/cache/
setfattr: /var/cache/fscache/cache/: Operation not supported

There are no default mount options for /var volume:

# tune2fs -l /dev/mapper/vg0-var | grep "Default mount options:"
Default mount options:    (none)

Cause

File system is mounted without user_xattr and acl options:

# cat /etc/fstab
...
/dev/mapper/vg0-var     /var                  ext4    defaults,errors=remount-ro,noatime,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,noatime                1 1

The partition was configured manually. By default "user_xattr" and "acl" are added for system partitions in RHEL, CentOS and CloudLinux, however not added automatically for the manually added partitions.

Resolution

Avoid manual configuration of file systems while registering a new node.

In order to add the required options, alter /etc/fstab so that the line changes to:

    /dev/mapper/vg0-var     /var                  ext4    defaults,errors=remount-ro,noatime,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,noatime,user_xattr,acl                1 1

Then remount it:

# mount -o remount /var

adc6deaa66054d8a194d131ba07f2785 8fc71f07abe5b233fea1ae0377cd5e3d 5356b422f65bdad1c3e9edca5d74a1ae aab95f5cf9bcfa920cc1dda8487f084a

Email subscription for changes to this article
Save as PDF