OpenVZ Forum - RDF feed
type: channel
items: sharing directory between two VE
items: Re: sharing directory between two VE

sharing directory between two VE
type: item
description: Hi, For the purpose of a migration, I'd need to share a directory between two VE, context 1 and 2. I've tried, with no success: - mounting /tmp/shared.ext2 from the host to both guests using simfs and -o loop - mounting --bind /tmp/shared.dir from the host to both guests using mount --make-shared - mounting --bind from the 1st VE to the 2nd Is there another way to try ... ? Using vserver, I used to change the context of the files, does OpenVz offer this capability ? Best Regards, Olivier
creator: Olivier Kaloudoff
date: 2012-07-04T14:51:10-00:00

Re: sharing directory between two VE
type: item
description: Bind mount from ve mount script solves this problem... Sent from my iPhonespam SPAMSPAM On 04.07.2012, at 21:05, "Olivier Kaloudoff" <openvz@kalou.net> wrote: > Hi, > > For the purpose of a migration, I'd need to share a directory between > two VE, context 1 and 2. I've tried, with no success: > > - mounting /tmp/shared.ext2 from the host to both guests using simfs and -o > loop > - mounting --bind /tmp/shared.dir from the host to both guests using mount > --make-shared > - mounting --bind from the 1st VE to the 2nd > > Is there another way to try ... ? > > Using vserver, I used to change the context of the files, does OpenVz offer > this capability ? > > Best Regards, > > Olivier
creator: Kirill Korotaev
date: 2012-07-04T17:11:47-00:00

Re: sharing directory between two VE
type: item
description: Hi, I use fuse to mount remote filesystem over ssh. Works smoothly. On 04/07/2012 19:11, Kirill Korotaev wrote: > Bind mount from ve mount script solves this problem... > > Sent from my iPhonespam SPAMSPAM > > On 04.07.2012, at 21:05, "Olivier Kaloudoff"<openvz@kalou.net> wrote: > > >> Hi, >> >> For the purpose of a migration, I'd need to share a directory between >> two VE, context 1 and 2. I've tried, with no success: >> >> - mounting /tmp/shared.ext2 from the host to both guests using simfs and -o >> loop >> - mounting --bind /tmp/shared.dir from the host to both guests using mount >> --make-shared >> - mounting --bind from the 1st VE to the 2nd >> >> Is there another way to try ... ? >> >> Using vserver, I used to change the context of the files, does OpenVz offer >> this capability ? >> >> Best Regards, >> >> Olivier
creator: massimiliano.sciabica
date: 2012-07-04T20:12:55-00:00

Re: sharing directory between two VE
type: item
description: In HN:/etc/fstab /dev/sda1 /shared ext4 defaults 1 3 And in containers mount files ctid.mount: [ -d ${VE_ROOT}/mydir ] || mkdir ${VE_ROOT}/mydir mount -o bind /shared ${VE_ROOT}/mydir ctid.umount: umount ${VE_ROOT}/mydir 2> /dev/null || echo -n "" Greetings
creator: jcrey
date: 2012-07-05T08:18:58-00:00