OpenVZ Forum


Home » General » Support » Sharing between VPS
Re: Sharing between VPS [message #35301 is a reply to message #35296] Mon, 16 March 2009 15:25 Go to previous messageGo to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

Quote:


Taking this one step further, is it safe to create "shared" folders by symlinking folders within VPS, for example

on HE /srv/database
on HE /vz/private/101/srv/database -> /srv/database
on HE /vz/private/102/srv/database -> /srv/database
VPS 101 and 102 would then both see /srv/database



This scenario must not be success.
Symlink will always point to "/srv/database" but "/srv/database" inside VE is not the same as it is on the HN.
Use bind mounts in such situations.

Quote:


root@vz247:~# mount /dev/sdc1 /mnt
mount: you must specify the filesystem type
root@vz247:~# mount -t vfat /dev/sdc1 /mnt
mount: unknown filesystem type 'vfat'
root@vz247:~# mount -t msdos /dev/sdc1 /mnt
mount: unknown filesystem type 'msdos'
root@vz247:~#


That's mean that vfat is not firtualized and as you've mentioned the bind mounts also should help you in this situation.
By the way, here is a useful wiki page

http://wiki.openvz.org/Bind_mounts
 
Read Message
Read Message
Read Message
Previous Topic: VE Start Fails
Next Topic: Error installing net-snmp centos-5 template
Goto Forum:
  


Current Time: Tue Aug 20 22:25:47 GMT 2024

Total time taken to generate the page: 0.05367 seconds