email@example.com (Lars Braeuer) writes:
> I'm not sure where to mount an LVM2 device with vs2.0. I do
> not want to mount it on system boot, but when starting the
> guest vserver.
> The fstab file in the vserver config directory seems to be the right place.
> But when including an entry like this in the fstab file, the mount
> won't show up in the hostsystem and will not be accessible via the
> mount point in the /vservers directory:
> /dev/mapper/vg-test01 / ext3 defaults 1 2
I would recommend to do physical mounting in the host's /etc/fstab
and bind-mount it in the vserver's fstab. E.g.
| /dev/mapper/vg-test01 /srv/mnt/test01 ext3 defaults 1 2
| /srv/mnt/test01 / none bind
This gives the advantage that the partition will be fsck'ed
during the regularly system boot and that you can share it
between multiple vservers ('mount' is allowed only once per
physical partition but you can 'mount --bind' multiple times).
> But I'm able to enter the vserver with "vserver test01 enter",
Expected namespace behaviour...
Vserver mailing list