On Wednesday 26 July 2017 02:31 PM, Chetan Sharma wrote:
> Default Configuration file path is : /etc/lxc/default.conf
> Entry is :-
> lxc.mount.entry = /var/lib/nfsdir var/nfsmnt none bind,create=dir 0 0
You are missing a forward slash before 'var/nfsmnt' above.
[chetan] No Senthil, we need not to provide forward slash, as its defined in this version of lxc.
> After restart lxc service. I executed lava job then this directory
How did you restart lxc service?
> "/var/lib/nfsdir" of worker machine is not mounting on LXC instance in
> directory "/var/nfsmnt".
A fresh LXC created and started during the job execution will not have
the directory /var/nfsmnt hence it will not work.
You may try 'mkdir /var/nfsmnt; mount /var/nfsmnt' before accessing the
directory.
> But if i manually create and start lxc instance on worker, then this
> directory "/var/lib/nfsdir" of worker machine is mounted on LXC instance.
What are the things you did after starting lxc? Did you create
'/var/nfsmnt' directory?
[chetan] I just did config change and created a new lxc instance with name lxc-ubuntu and then start instance. By attaching to instance, i am able to access /var/nfsmnt path on LXC.
Thank You.
--
Senthil Kumaran S
http://www.stylesen.org/
http://www.sasenthilkumaran.com/