On the host OS, this NFS command works:

 

mount -t nfs4 -o rw,intr,timeo=600,port=2051 10.1.3.67:/ /mnt/hdfs

 

That same mount works from within the container (the container is set to
unconfined so it can perform mounts).

 

When I try to add this mount to the fstab file of the container it fails:

 

root@atlas01:/var/lib/lxc# cat testsandboxa01/fstab

proc            proc         proc    nodev,noexec,nosuid 0 0

sysfs           sys          sysfs defaults  0 0

10.1.3.67:/     /var/lib/lxc/testsandboxa01/rootfs/mnt/hdfs    nfs4
rw,intr,timeo=600,port=2051      0 0

 

Try to start the container and we get:

 

root@atlas01:/var/lib/lxc# lxc-start -n testsandboxa01

lxc-start: Invalid argument - failed to mount '10.1.3.67:/' on
'/usr/lib/x86_64-linux-gnu/lxc//mnt/hdfs'

lxc-start: failed to setup the mounts for 'testsandboxa01'

lxc-start: failed to setup the container

lxc-start: invalid sequence number 1. expected 2

lxc-start: failed to spawn 'testsandboxa01'

 

Also, can I unmounts & remount the containers fstab entries without
restarting the container? As a workaround to the above I mounted NFS on the
host and mounted that directory into the container. But now I've run into an
NFS problem that requires an unmounts/remount, which I did on the host, but
the container appears to need the same, and shutting down the services it
runs to restart isn't good.

 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to