This condition has been observed in environments using deployments or pods configured with mounts pointed to the
/var directory or just the
/ root directory for logging or other operations. TKGI cluster node VMs are built with 3 disks attached, these are attached as sda1, sdb1, and sdc1. The devices are mounted as follows:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 5G 0 disk
└─sda1 8:1 0 5G 0 part /var/vcap/data ---------> This directory will contain different folders/files depending on node customizations
/home
/
sdb 8:16 0 50G 0 disk
└─sdb1 8:17 0 50G 0 part /var/vcap/data/ ---------> This directory will contain different folders/files depending on node customizations
/var/tmp
/tmp
/opt
/var/opt
/var/log
sdc 8:32 0 100G 0 disk
└─sdc1 8:33 0 100G 0 part /var/vcap/store
If pods require mounts on
hostPath or
emptyDir for logging or other persistent operations, these should be mounted in
/var/vcap/store directory.
Examples of pod mounts that might cause this condition are:
volumeMounts:
- mountPath: /var/lib/example
name: log-folder
volumes:
- hostPath:
path: /apps/data/example
type: ""
name: log-folder
Example of the same pod mounts in the correct location:
volumeMounts:
- mountPath: /var/lib/example
name: log-folder
volumes:
- hostPath:
path: /var/vcap/store/apps/data/example
type: ""
name: log-folder