Difference between revisions of "Talk:Bind mounts"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(created)
 
(use source tag)
Line 3: Line 3:
  
 
Here's how to use simfs instead of --bind (helpful if you are using checkpointing or live migration and host FS is "exotic" like xfs.
 
Here's how to use simfs instead of --bind (helpful if you are using checkpointing or live migration and host FS is "exotic" like xfs.
 +
<source lang="bash">
 
#!/bin/sh
 
#!/bin/sh
 
. /etc/vz/vz.conf
 
. /etc/vz/vz.conf
Line 8: Line 9:
 
set -x
 
set -x
 
mount -n -t simfs /usr/src $VE_ROOT/usr/src -o /usr/src
 
mount -n -t simfs /usr/src $VE_ROOT/usr/src -o /usr/src
 
+
</source>
 
--[[User:Kir|Kir]] 09:26, 11 July 2011 (UTC)
 
--[[User:Kir|Kir]] 09:26, 11 July 2011 (UTC)

Revision as of 09:26, 11 July 2011

simfs instead of bind mount

FIXME merge this info

Here's how to use simfs instead of --bind (helpful if you are using checkpointing or live migration and host FS is "exotic" like xfs.

#!/bin/sh
. /etc/vz/vz.conf
. $VE_CONFFILE
set -x
mount -n -t simfs /usr/src $VE_ROOT/usr/src -o /usr/src

--Kir 09:26, 11 July 2011 (UTC)