OpenVZ Forum


Home » General » Support » *SOLVED* mount --bind problem
*SOLVED* mount --bind problem [message #5183] Wed, 16 August 2006 12:48 Go to next message
ildar is currently offline  ildar
Messages: 4
Registered: August 2006
Junior Member
Hello,
I've got a problem using mount --bind. I cannot see bind mounted folder from within VE.

How to reproduce:
host# mount --bind /vps/v1/etc /vps/v1/mnt
host# ls /vps/v1/mnt

as expected, shows contents of /vps/v1/etc
host# vzctl exec 1001 ls /mnt

shows something different (cdrom floppy)
v1# ls /mnt

the same

Additional information:
# vzctl exec 1001 cat /proc/mounts
simfs / simfs rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0

Versions: vzctl-3.0.10-alt5, kernel-image-ovz-smp-2.6.16-alt4 (contains kernel-feat-core-openvz-026test015-alt1)

Any ideas?

Thanks.
Ildar

[Updated on: Thu, 17 August 2006 07:38] by Moderator

Report message to a moderator

Re: mount --bind problem [message #5184 is a reply to message #5183] Wed, 16 August 2006 13:15 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
Was VPS in running state when you tried to do --bind mount?
/vps/v1 is 'private' or 'root' VPS directory?

To do correct bind mount you need:
1. Start VPS
2. mount --bind /root_VPS_directory/etc /root_VPS_directory/mnt

Or you can add mounting/umounting to VEID.mount/.umount scripts and vzctl will mount/umount your directories on VPS start/stop.


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: mount --bind problem [message #5243 is a reply to message #5184] Thu, 17 August 2006 03:58 Go to previous messageGo to next message
ildar is currently offline  ildar
Messages: 4
Registered: August 2006
Junior Member
Quote:

Was VPS in running state when you tried to do --bind mount?

I tried both ways.

Quote:

/vps/v1 is 'private' or 'root' VPS directory?

Yes

Quote:

To do correct bind mount you need:
1. Start VPS
2. mount --bind /root_VPS_directory/etc /root_VPS_directory/mnt

Or you can add mounting/umounting to VEID.mount/.umount scripts and vzctl will mount/umount your directories on VPS start/stop.

I tried so.

Is there a way to debug this? What can we do?

Ildar.
Re: mount --bind problem [message #5248 is a reply to message #5243] Thu, 17 August 2006 06:54 Go to previous messageGo to next message
Andrey Mirkin is currently offline  Andrey Mirkin
Messages: 193
Registered: May 2006
Senior Member
ildar wrote on Wed, 16 August 2006 23:58


Quote:

/vps/v1 is 'private' or 'root' VPS directory?

Yes

Yes what? Private or root?

Quote:


Is there a way to debug this? What can we do?


Can you give me an access to your node, so I can try to do this?

Please post here step-by-step (1. start VPS; 2. mount) console output. Also please post VPS config file (/etc/sysconfig/vz-scripts/VEID.conf) and global config file (/etc/sysconfig/vz).


Andrey Mirkin
http://static.openvz.org/userbars/openvz-developer.png
Re: mount --bind problem [message #5251 is a reply to message #5248] Thu, 17 August 2006 07:24 Go to previous message
ildar is currently offline  ildar
Messages: 4
Registered: August 2006
Junior Member
Quote:

ildar wrote on Wed, 16 August 2006 23:58
Quote:

Quote:

/vps/v1 is 'private' or 'root' VPS directory?

Yes

Yes what? Private or root?



That's the answer. The root problem was - I didn't deeply understand, what the private and root is.

Thank you. The problem is solved.

Ildar.
Previous Topic: Reference for the UBC values?
Next Topic: No module megaraid_mbox found for kernel
Goto Forum:
  


Current Time: Sat Apr 27 03:36:17 GMT 2024

Total time taken to generate the page: 0.03404 seconds