Hello Eibo,
Eibo Thieme:
> Sometimes I loose all mounted filesystems on the client, except for the
> aufs mounted root. It is reproducible by triggering a tab filename
> completion in bash, it can mostly be prevented by doing an ls on the
> aufs mount before switching root at startup. Sometimes, with no clear
> evidence on what provoked it, all mounts are lost anyways. Using X11,
> OpenOffice, Firefox and Thunderbird is apparently usually safe,
> especially work on the command line seems to trigger it.
>
> The Error:
> Pressing ls /pro followed by the tab key (or /hom or /us or /var)
> All mounted filesystems are empty afterwards
Currently I have no idea about the cause.
As you know, procfs is outside of aufs. It means all the access to /proc
is not handled by aufs essentially. But the root dir is aufs. If aufs
tells you that /proc is brabra as a bogus result, then you will notice
something is wrong at once.
We may need to investigate focusing these points.
- Is the root dir ok? In other words, is NFS ok?
All info returned by aufs is based upon its branch fs-es. You have 3
NFS branches for the root dir. I'd suggest you to confirm them by
"ls -al /aufs/{private,clients,server}" which by-passes
aufs. Also "stat / /aufs/{private,clients,server}" and
"stat -f / /aufs/{private,clients,server}" may give us some hint.
- Is the mount tree traversal ok?
I guess there is nothing wrong in this point, but I'd just make sure.
Try "ls /proc" before and after "mount --move".
Also "cat /proc/mounts" before and after "mount --move" would be good.
- Is procfs ok?
This is just-to-make-sure point too. Try "stat /proc; stat -f /proc".
We may need to put some debug print into your kernel. If I write such
patch, will you apply and test it?
And...
- your /proc/mounts shows there is only one aufs (the root dir), but
/sys/fs/aufs shows there two aufs mounts (root and var?)
Is this intentinal?
- I could not get your debug output,
https://docs.google.com/file/d/0B0s7uiDVoB3OV09wNXZrM0Uyc2s/edit?usp=sharing
since I don't have google drive account.
J. R. Okajima
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb