Submounts are getting unmounted inside apiserver pod
Issue
An LV is mounted on /var
and there is another LV mount on /var/lib/origin/audit
on the master nodes.
/dev/mapper/xx_vg-lv_var 59731884 31679332 24995300 56% /var
/dev/mapper/openpaas_audit-lv_openpaas_audit 314415108 33040 314382068 1% /var/lib/origin/openpaas-oscp-audit
When mounted to the apiserver pod, the LV on /var/lib/origin/openpaas-oscp-audit
directory gets umounted and also not seen in df -h
output.
[user@hostl ~] $ oc rsh master-api-example.com
sh-4.2# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 300G 9.3G 291G 4% /
tmpfs 55G 0 55G 0% /dev
tmpfs 55G 0 55G 0% /sys/fs/cgroup
/dev/mapper/xx_vg-lv_root 7.8G 4.3G 3.2G 58% /etc/pki
/dev/mapper/xx_vg-lv_var 57G 30G 25G 56% /etc/hosts
shm 64M 0 64M 0% /dev/shm
/dev/mapper/dockervg-dockerlv 300G 9.3G 291G 4% /run/secrets
Anything written in the /var/lib/origin/openpaas-oscp-audit
inside the pod is actually written in the /dev/mapper/xx_vg-lv_var
LV.
How to have the submount to be mounted inside the apiserver pod without explicitly mounting it via hostpath?
Environment
- OpenShift Container Platform 3.11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.