[Lxc-users] bind (re)mount possible?

Ulli Horlacher framstag at rus.uni-stuttgart.de
Wed Oct 23 23:58:19 UTC 2013


I have a container running with:

root at vms2:/lxc# egrep 'fstab|lxc.cap.drop' fex.cfg 
lxc.mount = /lxc/fex.fstab
lxc.cap.drop = mac_override
lxc.cap.drop = sys_module
lxc.cap.drop = sys_boot
lxc.cap.drop = sys_admin
lxc.cap.drop = sys_time

root at vms2:/lxc# grep /sw fex.fstab
/nfs/rusnas/sw          /lxc/fex/nfs/sw         none bind,ro 0 0

The problem is: "ro" for /lxc/fex/nfs/sw is wrong, it should be "rw".
Can I change it without restarting the whole container?
On a normal partition I would execute:
mount -o remount,rw /lxc/fex/nfs/sw

Is this possible with bind mounts for containers, too?

Because of lxc.cap.drop = sys_admin I cannot execute (re)mount commands
inside the container. 

-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum IZUS/TIK         E-Mail: horlacher at tik.uni-stuttgart.de
Universitaet Stuttgart         Tel:    ++49-711-68565868
Allmandring 30a                Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.tik.uni-stuttgart.de/
REF:<20131023235819.GA12072 at rus.uni-stuttgart.de>




More information about the lxc-users mailing list