OpenVZ Forum


Home » General » Support » *SOLVED* Sharing /home between vps, nfs/bind mount not working?
Re: Sharing /home between vps, nfs/bind mount not working? [message #4982 is a reply to message #4946] Mon, 07 August 2006 13:59 Go to previous message
aistis is currently offline  aistis
Messages: 77
Registered: September 2005
Location: Kaunas, Lithuania
Member

xinhes wrote on Fri, 04 August 2006 14:22

Ahh, A simple case of RTFM

Mount/Umount scripts worked just fine:

Since each user usually gets one vps in my setup. I only have to mount one home in each vps. So for the ftp server (vps 1001) it goes like this:

1001.mount:
#!/bin/sh
mount -o bind,ro /vz/home/ftp /vz/root/$VEID/home/ftp

1001.umount:
#!/bin/sh
umount /vz/root/$VEID/home/ftp

#vzctl ecec 1001 df
Filesystem 1K-blocks Used Available Use% Mounted on
simfs 10000000 162724 9837276 2% /
ext3 1186166788 527050296 598862732 47% /home/ftp

OPS, Just noted that bind mounts arent Read-Only. Put that up on the feature wishlist Smile



try using this patch:

http://bugzilla.openvz.org/show_bug.cgi?id=160


Aistis Zenkevicius
http://static.openvz.org/userbars/openvz-user.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: running psybnc
Next Topic: firewall into VE and isolating eth's from the host
Goto Forum:
  


Current Time: Thu Jul 18 20:23:41 GMT 2024

Total time taken to generate the page: 0.02699 seconds