*SOLVED* Umount action script problem [message #10715] |
Mon, 26 February 2007 23:29  |
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
|
|
|