<div dir="ltr">here's the log from /var/log/upstart/lxcfs.log<div><br></div><div><div>fuse: read too many bytes</div><div>fuse: writing device: Invalid argument</div><div><br></div><div><br></div><div>also i ran trace on lxc-start and attached is the output</div><div><br></div><div><div>root@test15:/var/lib# lxc-start -n hadoop21 -l trace -o debug4.out</div><div>root@test15:/var/lib# service lxcfs status</div><div>lxcfs start/running, process 10106</div><div>root@test15:/var/lib# lxc-attach -n hadoop21 -- ps</div><div>Error: /proc must be mounted</div><div> To mount /proc at boot you need an /etc/fstab line like:</div><div> proc /proc proc defaults</div><div> In the meantime, run "mount proc /proc -t proc"</div><div><br></div><div><br></div><div> lxc-start 1430318976.041 INFO lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/hadoop21/config</div><div> lxc-start 1430318976.041 WARN lxc_confile - confile.c:config_pivotdir:1782 - lxc.pivotdir is ignored. It will soon become an error.</div><div> lxc-start 1430318976.044 WARN lxc_cgmanager - cgmanager.c:cgm_get:967 - do_cgm_get exited with error</div><div> lxc-start 1430318976.045 INFO lxc_start - start.c:lxc_check_inherited:224 - closed inherited fd 4</div><div> lxc-start 1430318976.051 INFO lxc_container - lxccontainer.c:do_lxcapi_start:708 - Attempting to set proc title to [lxc monitor] /var/lib/lxc hadoop21</div><div> lxc-start 1430318976.052 INFO lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .reject_force_umount # comment this to allow umount -f; not recommended.</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for reject_force_umount action 0</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts</div><div><br></div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for reject_force_umount action 0</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-1, -1)</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts</div><div><br></div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .[all].</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .kexec_load errno 1.</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for kexec_load action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for kexec_load action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (283, 246)</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .open_by_handle_at errno 1.</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for open_by_handle_at action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for open_by_handle_at action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (342, 304)</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .init_module errno 1.</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for init_module action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for init_module action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (128, 175)</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .finit_module errno 1.</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for finit_module action 327681</div><div> lxc-start 1430318976.052 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module</div><div> lxc-start 1430318976.052 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for finit_module action 327681</div><div> lxc-start 1430318976.052 INFO lxc_seccomp - seccomp.c:parse_config_v2:438 - Adding non-compat rule bc nr1 == nr2 (-10085, -10085)</div><div> lxc-start 1430318976.053 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module</div><div> lxc-start 1430318976.053 WARN lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted</div><div> lxc-start 1430318976.053 INFO lxc_seccomp - seccomp.c:parse_config_v2:316 - processing: .delete_module errno 1.</div><div> lxc-start 1430318976.053 INFO lxc_seccomp - seccomp.c:parse_config_v2:419 - Adding non-compat rule for delete_module action 327681</div><div> lxc-start 1430318976.053 INFO lxc_seccomp - seccomp.c:parse_config_v2:430 - Adding compat rule for delete_module action 327681</div><div> lxc-start 1430318976.053 INFO lxc_seccomp - seccomp.c:parse_config_v2:443 - Really adding compat rule bc nr1 == nr2 (129, 176)</div><div> lxc-start 1430318976.053 INFO lxc_seccomp - seccomp.c:parse_config_v2:451 - Merging in the compat seccomp ctx into the main one</div><div> lxc-start 1430318976.053 DEBUG lxc_start - start.c:setup_signal_fd:262 - sigchild handler set</div><div> lxc-start 1430318976.053 INFO lxc_start - start.c:lxc_check_inherited:224 - closed inherited fd 4</div><div> lxc-start 1430318976.054 DEBUG lxc_console - console.c:lxc_console_peer_default:536 - no console peer</div><div> lxc-start 1430318976.054 INFO lxc_start - start.c:lxc_init:454 - 'hadoop21' is initialized</div><div> lxc-start 1430318976.054 DEBUG lxc_start - start.c:__lxc_start:1151 - Not dropping cap_sys_boot or watching utmp</div><div> lxc-start 1430318976.057 INFO lxc_conf - conf.c:run_script:406 - Executing script '/usr/local/bin/lxc_ovs' for container 'hadoop21', config section 'net'</div><div> lxc-start 1430318976.060 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/ad055575fe28ddd5//var/lib/lxc</div><div> lxc-start 1430318976.070 DEBUG lxc_conf - conf.c:instantiate_veth:2697 - instantiated veth 'vethCCVYN9/vethW8E4TI', index is '35'</div><div> lxc-start 1430318976.070 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for hadoop21</div><div> lxc-start 1430318976.074 INFO lxc_cgmanager - cgmanager.c:cgm_setup_limits:1262 - cgroup limits have been setup</div><div> lxc-start 1430318976.107 DEBUG lxc_conf - conf.c:lxc_assign_network:3120 - move 'eth0' to '10008'</div><div> lxc-start 1430318976.112 DEBUG lxc_conf - conf.c:setup_rootfs:1284 - mounted '/instances/hadoop21' on '/usr/lib/x86_64-linux-gnu/lxc'</div><div> lxc-start 1430318976.112 INFO lxc_conf - conf.c:setup_utsname:919 - 'hadoop21' hostname has been setup</div><div> lxc-start 1430318976.127 DEBUG lxc_conf - conf.c:setup_hw_addr:2246 - mac address '00:16:0a:07:c8:15' on 'eth0' has been setup</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:setup_netdev:2473 - 'eth0' has been setup</div><div> lxc-start 1430318976.128 INFO lxc_conf - conf.c:setup_network:2494 - network has been setup</div><div> lxc-start 1430318976.128 INFO lxc_conf - conf.c:mount_autodev:1148 - Mounting /dev under /usr/lib/x86_64-linux-gnu/lxc</div><div> lxc-start 1430318976.128 INFO lxc_conf - conf.c:mount_autodev:1169 - Mounted tmpfs onto /usr/lib/x86_64-linux-gnu/lxc/dev</div><div> lxc-start 1430318976.128 INFO lxc_conf - conf.c:mount_autodev:1187 - Mounted /dev under /usr/lib/x86_64-linux-gnu/lxc</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1729 - remounting /sys/fs/fuse/connections on /usr/lib/x86_64-linux-gnu/lxc/sys/fs/fuse/connections to respect bind or remount options</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1744 - (at remount) flags for /sys/fs/fuse/connections was 4096, required extra flags are 0</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1753 - mountflags already was 4096, skipping remount</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1779 - mounted '/sys/fs/fuse/connections' on '/usr/lib/x86_64-linux-gnu/lxc/sys/fs/fuse/connections', type 'none'</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1729 - remounting /sys/kernel/debug on /usr/lib/x86_64-linux-gnu/lxc/sys/kernel/debug to respect bind or remount options</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1744 - (at remount) flags for /sys/kernel/debug was 4096, required extra flags are 0</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1753 - mountflags already was 4096, skipping remount</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1779 - mounted '/sys/kernel/debug' on '/usr/lib/x86_64-linux-gnu/lxc/sys/kernel/debug', type 'none'</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1729 - remounting /sys/kernel/security on /usr/lib/x86_64-linux-gnu/lxc/sys/kernel/security to respect bind or remount options</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1744 - (at remount) flags for /sys/kernel/security was 4096, required extra flags are 0</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1753 - mountflags already was 4096, skipping remount</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1779 - mounted '/sys/kernel/security' on '/usr/lib/x86_64-linux-gnu/lxc/sys/kernel/security', type 'none'</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1729 - remounting /sys/fs/pstore on /usr/lib/x86_64-linux-gnu/lxc/sys/fs/pstore to respect bind or remount options</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1744 - (at remount) flags for /sys/fs/pstore was 4096, required extra flags are 0</div><div> lxc-start 1430318976.128 DEBUG lxc_conf - conf.c:mount_entry:1753 - mountflags already was 4096, skipping remount</div><div> lxc-start 1430318976.129 DEBUG lxc_conf - conf.c:mount_entry:1779 - mounted '/sys/fs/pstore' on '/usr/lib/x86_64-linux-gnu/lxc/sys/fs/pstore', type 'none'</div><div> lxc-start 1430318976.129 INFO lxc_conf - conf.c:mount_file_entries:2028 - mount points have been setup</div><div> lxc-start 1430318976.129 INFO lxc_conf - conf.c:run_script_argv:356 - Executing script '/usr/share/lxcfs/lxc.mount.hook' for container 'hadoop21', config section 'lxc'</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:fill_autodev:1215 - Creating initial consoles under /usr/lib/x86_64-linux-gnu/lxc/dev</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:fill_autodev:1226 - Populating /dev under /usr/lib/x86_64-linux-gnu/lxc</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:fill_autodev:1258 - Populated /dev under /usr/lib/x86_64-linux-gnu/lxc</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:setup_ttydir_console:1530 - created /usr/lib/x86_64-linux-gnu/lxc/dev/lxc</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:setup_ttydir_console:1576 - console has been setup on lxc/console</div><div> lxc-start 1430318976.230 INFO lxc_conf - conf.c:do_tmp_proc_mount:3576 - I am 1, /proc/self points to '1'</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:setup_rootfs_pivot_root:1126 - pivot_root syscall to '/usr/lib/x86_64-linux-gnu/lxc' successful</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:lxc_create_tty:3364 - allocated pty '/dev/pts/0' (9/12)</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:lxc_create_tty:3364 - allocated pty '/dev/pts/1' (13/14)</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:lxc_create_tty:3364 - allocated pty '/dev/pts/2' (15/16)</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:lxc_create_tty:3364 - allocated pty '/dev/pts/3' (17/18)</div><div> lxc-start 1430318976.247 INFO lxc_conf - conf.c:lxc_create_tty:3375 - tty's configured</div><div> lxc-start 1430318976.247 INFO lxc_conf - conf.c:setup_tty:1071 - 4 tty(s) has been setup</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:setup_caps:2157 - drop capability 'mac_admin' (33)</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:setup_caps:2157 - drop capability 'mac_override' (32)</div><div> lxc-start 1430318976.247 DEBUG lxc_conf - conf.c:setup_caps:2157 - drop capability 'sys_time' (25)</div><div> lxc-start 1430318976.248 DEBUG lxc_conf - conf.c:setup_caps:2157 - drop capability 'sys_module' (16)</div><div> lxc-start 1430318976.248 DEBUG lxc_conf - conf.c:setup_caps:2166 - capabilities have been setup</div><div> lxc-start 1430318976.248 NOTICE lxc_conf - conf.c:lxc_setup:3955 - 'hadoop21' is setup.</div><div> lxc-start 1430318976.248 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.deny' set to 'a'</div><div> lxc-start 1430318976.249 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c *:* m'</div><div> lxc-start 1430318976.249 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'b *:* m'</div><div> lxc-start 1430318976.249 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 1:3 rwm'</div><div> lxc-start 1430318976.250 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 1:5 rwm'</div><div> lxc-start 1430318976.250 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 1:7 rwm'</div><div> lxc-start 1430318976.250 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 5:0 rwm'</div><div> lxc-start 1430318976.250 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 5:1 rwm'</div><div> lxc-start 1430318976.251 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 5:2 rwm'</div><div> lxc-start 1430318976.251 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 1:8 rwm'</div><div> lxc-start 1430318976.251 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 1:9 rwm'</div><div> lxc-start 1430318976.251 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 136:* rwm'</div><div> lxc-start 1430318976.252 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 10:229 rwm'</div><div> lxc-start 1430318976.252 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 254:0 rm'</div><div> lxc-start 1430318976.252 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 10:200 rwm'</div><div> lxc-start 1430318976.252 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 10:228 rwm'</div><div> lxc-start 1430318976.253 DEBUG lxc_cgmanager - cgmanager.c:cgm_setup_limits:1258 - cgroup 'devices.allow' set to 'c 10:232 rwm'</div><div> lxc-start 1430318976.253 INFO lxc_cgmanager - cgmanager.c:cgm_setup_limits:1262 - cgroup limits have been setup</div><div> lxc-start 1430318976.253 INFO lxc_apparmor - lsm/apparmor.c:apparmor_process_label_set:187 - changed apparmor profile to lxc-container-default</div><div> lxc-start 1430318976.253 NOTICE lxc_start - start.c:start:1253 - exec'ing '/sbin/init'</div><div> lxc-start 1430318976.254 NOTICE lxc_start - start.c:post_start:1264 - '/sbin/init' started with pid '10008'</div><div> lxc-start 1430318976.254 WARN lxc_start - start.c:signal_handler:310 - invalid pid for SIGCHLD</div><div> lxc-start 1430318976.254 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div><div> lxc-start 1430318976.256 DEBUG lxc_commands - commands.c:lxc_cmd_get_state:574 - 'hadoop21' is in 'RUNNING' state</div><div> lxc-start 1430318976.256 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div><div> lxc-start 1430318995.497 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div><div> lxc-start 1430318995.498 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div><div> lxc-start 1430318995.500 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div><div> lxc-start 1430318995.501 DEBUG lxc_commands - commands.c:lxc_cmd_handler:888 - peer has disconnected</div></div><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 9:27 AM, Rajasekar Darapuram <span dir="ltr"><<a href="mailto:raj@robinsystems.com" target="_blank">raj@robinsystems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Further..<div>Now I only have one container running on my system. I redid the steps </div><div><span class=""><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">1. ran fusermount -uz /var/lib/lxcfs (as service lxcfs start was failing)</div><div style="font-size:12.8000001907349px">2. Start lxcfs..checked the status and it is running</div><div style="font-size:12.8000001907349px">3. Start a container</div></span><div style="font-size:12.8000001907349px">4. Check lxcfs status and it is in start/running</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Now I attach to the container and run ps, I get the same error</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><span class=""><div style="font-size:12.8000001907349px"><b>Error: /proc must be mounted</b></div></span><span class=""><div style="font-size:12.8000001907349px"><b> To mount /proc at boot you need an /etc/fstab line like:</b></div></span><div style="font-size:12.8000001907349px"><b> proc /proc proc defaults</b></div><span class=""><div style="font-size:12.8000001907349px"><b> In the meantime, run "mount proc /proc -t proc"</b></div><div style="font-size:12.8000001907349px"><b><br></b></div></span><span class=""><div style="font-size:12.8000001907349px"><b>Please let me know.</b></div><div style="font-size:12.8000001907349px"><b><br></b></div><div style="font-size:12.8000001907349px"><b>Thanks</b></div></span></div><div style="font-size:12.8000001907349px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 28, 2015 at 9:37 PM, Rajasekar Darapuram <span dir="ltr"><<a href="mailto:raj@robinsystems.com" target="_blank">raj@robinsystems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">When I try to restart restart the containers..on lxc-start the lxcfs is getting killed again...Do I need to reboot the machine?<div><br></div><div>So here are the steps I did</div><div><br></div><div>1. Stopped all containers</div><div>2. ran fusermount -uz /var/lib/lxcfs (as service lxcfs start was failing)</div><div>3. Start lxcfs..checked the status and it is running</div><div>4. Start a container</div><div>5. Check lxcfs status and it is in stop/waitting</div><span><div><br></div><div>Please let me know.</div><div><br></div><div>Thanks <br></div><div><br></div></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 24, 2015 at 7:38 PM, Stéphane Graber <span dir="ltr"><<a href="mailto:stgraber@ubuntu.com" target="_blank">stgraber@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>On Fri, Apr 24, 2015 at 07:30:00PM -0500, Rajasekar Darapuram wrote:<br>
> Hi<br>
> When I add ppa:ubuntu-lxc/daily repo and do an apt-get install lxcfs (and<br>
> lxc, cgmanager) LXCFS is working fine inside containers. But the apt-get<br>
> downloads the latest deb everyday..TO be consistent for all developers I<br>
> downloaded the debs and wrote a script to upgrade LXC 1.10 to LXC 1.1. and<br>
> LXCFS. It installs the new versions of LXC and LXCFS. I was able to<br>
> create containers and start the,. However when I attach to the container<br>
> and run ps command I get this error (if I stop lxcfs service, then ps is<br>
> working fine inside the containers)<br>
><br>
> root@eqx03-flash04:/etc# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS AUTOSTART<br>
> ----------------------------------------------------------------------<br>
</span>> eqx03-vnode18 <<a href="http://eqx03-vnode18.robinsystems.com" target="_blank">http://eqx03-vnode18.robinsystems.com</a>> STOPPED - -<br>
> - NO<br>
> eqx03-vnode52 <<a href="http://eqx03-vnode52.robinsystems.com" target="_blank">http://eqx03-vnode52.robinsystems.com</a>> STOPPED - -<br>
<span>> - NO<br>
> root@eqx03-flash04:/etc# lxc-start -n eqx03-vnode18<br>
</span>> <<a href="http://eqx03-vnode18.robinsystems.com" target="_blank">http://eqx03-vnode18.robinsystems.com</a>><br>
<span>> root@eqx03-flash04:/etc# lxc-ls -f<br>
> NAME STATE IPV4 IPV6 GROUPS<br>
> AUTOSTART<br>
> -----------------------------------------------------------------------------<br>
</span>> eqx03-vnode18 <<a href="http://eqx03-vnode18.robinsystems.com" target="_blank">http://eqx03-vnode18.robinsystems.com</a>> RUNNING 10.9.240.18<br>
> - - NO<br>
> eqx03-vnode52 <<a href="http://eqx03-vnode52.robinsystems.com" target="_blank">http://eqx03-vnode52.robinsystems.com</a>> STOPPED -<br>
<span>> - - NO<br>
> root@eqx03-flash04:/etc# service lxcfs status<br>
> lxcfs start/running, process 22159<br>
><br>
> root@eqx03-flash04:/etc# ls /var/lib/lxcfs<br>
> cgroup proc<br>
> root@eqx03-flash04:/etc#<br>
> root@eqx03-flash04:/etc# lxc-attach -n eqx03-vnode18<br>
</span>> <<a href="http://eqx03-vnode18.robinsystems.com" target="_blank">http://eqx03-vnode18.robinsystems.com</a>><br>
> *root@eqx03-vnode18:/etc# ps*<br>
> *Error: /proc must be mounted*<br>
> * To mount /proc at boot you need an /etc/fstab line like:*<br>
> * proc /proc proc defaults*<br>
> * In the meantime, run "mount proc /proc -t proc"*<br>
<span>><br>
><br>
> Also sometimes lxcfs service is getting killed and when I do an ls on<br>
> /var/lib/lxcfs, I get this error<br>
> transport endpoint is not connected<br>
><br>
> Please let me know.<br>
><br>
> Thanks<br>
> Raj<br>
<br>
</span>It's unfortunately a known issue with lxcfs (and one that is based on a<br>
kernel limitation so unlikely to be resolved very soon).<br>
<br>
Restarting lxcfs (by an update or a crash) causes any container using it<br>
to return empty files instead of the lxcfs files.<br>
<br>
The only fix for this issue is to restart all your containers whenever<br>
lxcfs is restarted.<br>
<span><font color="#888888"><br>
--<br>
Stéphane Graber<br>
Ubuntu developer<br>
<a href="http://www.ubuntu.com" target="_blank">http://www.ubuntu.com</a><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>