It is weirder than that. The partition bind-mounted under
/share/containerX/an_partition is not unmounted on guest stop, but unmounted
on the guest start.
If I run "mount /share/containerX/an_partition" on the host, only then the
partition's content becomes visible on the guest.
The /share/contai
Quoting Arie Skliarouk (sklia...@gmail.com):
> I managed to mount the partition! For that the procedure looks as follows:
Excellent.
>1. On the master:
>
>
>mkdir /share/containerX
>mkdir /var/lib/lxc/containerX/rootfs/share
>mount -t tmpfs share /share/containerX
>mount --m
Quoting Serge Hallyn (serge.hal...@canonical.com):
> Quoting Arie Skliarouk (sklia...@gmail.com):
> > Hi,
> >
> > Thank you for the instructions, but looks I did something wrong.
>
> Sorry, no, my instructions weren't quite right. I'm going to spend a bit
> of time right now whipping up some tes
I managed to mount the partition! For that the procedure looks as follows:
1. On the master:
mkdir /share/containerX
mkdir /var/lib/lxc/containerX/rootfs/share
mount -t tmpfs share /share/containerX
mount --make-rshared /share/containerX
cat >> /var/lib/lxc/containerX/fstab <
Quoting Arie Skliarouk (sklia...@gmail.com):
> Hi,
>
> Thank you for the instructions, but looks I did something wrong.
Sorry, no, my instructions weren't quite right. I'm going to spend a bit
of time right now whipping up some tested directions, and will get back to
you.
-serge
--
Hi,
Thank you for the instructions, but looks I did something wrong.
If I create files on the /shared/containerX, they appear properly in
the container's /shared directory. If I create a directory in the
/shared/containerX directory and mount some other partition onto that
/shared/containerX/an_p
Quoting Arie Skliarouk (sklia...@gmail.com):
> I want to bind-mount an directory inside of a running container.
> If I mount the directory using bind mount, the container does not see
> files in it.
>
> It is important to me to be able to do the mounts and umounts from the
> host machine, as we ar
I want to bind-mount an directory inside of a running container.
If I mount the directory using bind mount, the container does not see
files in it.
It is important to me to be able to do the mounts and umounts from the
host machine, as we are dealing with LVM snapshots.
--
Arie
-