OpenVZ Forum


Home » Mailing lists » Users » sharing directory between two VE
Re: sharing directory between two VE [message #47090 is a reply to message #47085] Thu, 05 July 2012 08:18 Go to previous message
jcrey is currently offline  jcrey
Messages: 2
Registered: May 2012
Location: Málaga
Junior Member
In HN:/etc/fstab
/dev/sda1 /shared ext4 defaults 1 3

And in containers mount files
ctid.mount:
[ -d ${VE_ROOT}/mydir ] || mkdir ${VE_ROOT}/mydir
mount -o bind /shared ${VE_ROOT}/mydir

ctid.umount:
umount ${VE_ROOT}/mydir 2> /dev/null || echo -n ""

Greetings
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ubuntu 12.04 template issue (vzctl enter VEID hangs)
Next Topic: openvz and prelinking
Goto Forum:
  


Current Time: Fri Aug 29 19:08:22 GMT 2025

Total time taken to generate the page: 0.11506 seconds