OpenVZ Forum


Home » General » Support » *SOLVED* Umount action script problem
*SOLVED* Umount action script problem [message #10715] Mon, 26 February 2007 23:29 Go to previous message
mcarreira is currently offline  mcarreira
Messages: 30
Registered: February 2007
Member
I am trying to automate the access from VE to another disk using the "mount --bind" process.
I created two action scripts like these:

#/vz/sysconfig/vz-scripts/120.mount
#!/bin/bash
/bin/mount --bind /nova /vz/root/120/teste
exit $?

#/vz/sysconfig/vz-scripts/120.umount
#!/bin/bash
/bin/umount /vz/root/120/teste
exit $?

and they worked like I was expecing except for a little annoying behaviour:
If I start and stop VE several times, the mountpoint /nova is also unmounted.
Better explaining:

If I do for the first time:
# vzctl start 120
# vzctl stop 120

and then:
# ls -l /nova

I can see that the content list of "/nova" is still there.
But if I repeat the operation the "ls -l" don't show anything. Is empty, although /proc/mounts shows me that /nova is still mounted.

Is this a vzctl bug, or am I doing something wrong?

Thanks,

M.C.

[Updated on: Wed, 07 March 2007 07:30] by Moderator

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *CLOSED* softirq stats for a VE
Next Topic: Package Group Installation.
Goto Forum:
  


Current Time: Mon Jul 07 00:40:24 GMT 2025

Total time taken to generate the page: 0.04839 seconds