Ok thx for your explaination.
But, do you see any errors in my vps scripts?
root@test:/etc/vz/conf# cat vps.*
#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}
mount --bind /home ${VE_ROOT}/home
mount --bind /vz/backups ${VE_ROOT}/backups
#!/bin/bash
source /etc/vz/vz.conf
source ${VE_CONFFILE}
umount ${VE_ROOT}/home
umount ${VE_ROOT}/backups
Cause i don't understand.
Nothings is mounted..
root@test:/etc/vz/conf# mount | grep 102
I start 102 contener, and nothings will be mount even vps.umount script start before vps.mount. And i'm not realy shure, vps.mount script start.
root@test:/etc/vz/conf# vzctl start 102
Starting container ...
umount: /var/lib/vz/root/102/home: not mounted
umount: /var/lib/vz/root/102/backups: not mounted
Error executing umount script /etc/vz/conf/vps.umount
Setting CPU units: 1000
Setting CPUs: 1
Configure meminfo: 262144
Set hostname: test
File resolv.conf was modified
Setting quota ugidlimit: 0
Configure veth devices: veth102.0
Adding interface veth102.0 to bridge vmbr1 on CT0 for CT102
Container start in progress...
root@test:/etc/vz/conf# mount | grep 102
Do you think, if vps.umount exit with error status, the vps.mount script didn't start ?
root@test:/etc/vz/conf# vzctl stop 102
Stopping container ...
Container was stopped
umount: /home: not mounted
umount: /home: not mounted
umount: /var/lib/vz/backups: not mounted
umount: /var/lib/vz/backups: not mounted
Error executing umount script /etc/vz/conf/vps.umount
Thx fdef