OpenVZ Forum


Home » General » Support » problem sharing folder using bind mounts (bind mounts problem)
icon9.gif  problem sharing folder using bind mounts [message #48211] Sat, 06 October 2012 13:45 Go to previous message
initial05 is currently offline  initial05
Messages: 2
Registered: October 2012
Location: Indonesia
Junior Member
so, i follow instructions on openvz wiki

then i create this bash script:
----------------------------------------------
CTID=102

cat << EOF > /etc/vz/conf/${CTID}.mount
#!/bin/bash
. /etc/vz/vz.conf
. ${VE_CONFFILE}
SRC=/mnt/home
DST=/mnt/disk
if [ ! -e ${VE_ROOT}${DST} ]; then mkdir -p ${VE_ROOT}${DST}; fi
mount -n -t simfs ${SRC} ${VE_ROOT}${DST} -o ${SRC}
EOF

chmod +x /etc/vz/conf/${CTID}.mount
----------------------------------------------

but after executing the script, i found my 102.mount like this
-----------------------------------------------
[root@dhcppc2 bash]# cat /etc/vz/conf/102.mount
#!/bin/bash
. /etc/vz/vz.conf
.
SRC=/mnt/disk
DST=/mnt/disk
if [ ! -e ]; then mkdir -p ; fi
mount -n -t simfs -o
------------------------------------------------
my ${VE_CONFFILE} variable in the script return null on my 102.mount file, and now my container #102 failed to start.

really need your help
 
Read Message icon9.gif
Read Message
Previous Topic: Linux High Availability issue in openvz
Next Topic: failcnt in privvmpages
Goto Forum:
  


Current Time: Sat Sep 14 11:14:09 GMT 2024

Total time taken to generate the page: 0.04077 seconds