OpenVZ Forum


Home » General » Support » [solved] nfs mount vs. mount --bind
Re: nfs mount vs. mount --bind [message #36540 is a reply to message #36534] Mon, 29 June 2009 14:57 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hi,

first of all, it seems that you have Virtuozzo installed, not OpenVZ, so you'd better ask such questions to virtuozzo support team instead of asking them here because it is an OpenVZ support forum.
But in this particular situation it might be said the following:
you don't need an umount script.
After "mount --bind" is invoked the information about this bind mount is available inside VE. Have a look at /proc/mounts inside VE. Thus, when a VE is stopping appropriate init scripts umount the necessary mount points properly.
The main problem is that the information about bind mounts is written to /etc/mtab so to the moment when a VEs umount script is invoked bind mount is already umounted. /bin/umount fails to do umount and umount the whole nfs mount. Hence, this is not an OpenVZ/Virtuozzo problem but the behavior of /bin/umount binary.
As an additional workaround you can perform bind mounts using "-n" option i.e. "mount -n --bind"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Additional partition in container?
Next Topic: memory controller and OpenVZ
Goto Forum:
  


Current Time: Mon Aug 05 13:53:10 GMT 2024

Total time taken to generate the page: 0.03165 seconds