I'm having issues to run lxc containers on normal zfs storage. Just a fresh lxc, no modifications.
Tried first on my main zfs storage mount, with both images and containers, but wont start.
Then I added a separate "container" mount on the same zpool, but lxc wont start.
Is there a known issue with lxc + zfs?
root@cat:~# lxc-start -n 106 --logfile /root/zfstest.log
lxc-start: tools/lxc_start.c: main: 344 The container failed to start.
lxc-start: tools/lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
root@cat:~# cat /root/zfstest.log
lxc-start 20161230105004.029 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105004.029 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105004.029 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230105446.041 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105446.041 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105446.041 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105446.041 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105446.041 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230105648.554 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105648.554 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105648.554 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230114502.639 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230114502.639 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230114502.639 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
root@cat:~# pvesm status
local dir 1 32670208 1095040 31575168 3.85%
local-zfs zfspool 1 31575288 96 31575192 0.50%
nfs_vol1_VM nfs 1 10961676288 23905280 10937771008 0.72%
nfs_vol1_backups nfs 1 12058414080 1120643072 10937771008 9.79%
zfs_lxc zfspool 1 12692242596 1754471673 10937770922 14.32%
zfs_vol1 zfspool 1 12692242596 1754471673 10937770922 14.32%
Tried first on my main zfs storage mount, with both images and containers, but wont start.
Then I added a separate "container" mount on the same zpool, but lxc wont start.
Is there a known issue with lxc + zfs?
root@cat:~# lxc-start -n 106 --logfile /root/zfstest.log
lxc-start: tools/lxc_start.c: main: 344 The container failed to start.
lxc-start: tools/lxc_start.c: main: 346 To get more details, run the container in foreground mode.
lxc-start: tools/lxc_start.c: main: 348 Additional information can be obtained by setting the --logfile and --logpriority options.
root@cat:~# cat /root/zfstest.log
lxc-start 20161230105004.029 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105004.029 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105004.029 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230105009.034 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230105446.041 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105446.041 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105446.041 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105446.041 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105446.041 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230105648.554 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230105648.554 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230105648.554 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230105653.559 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
lxc-start 20161230114502.639 ERROR lxc_conf - conf.c:run_buffer:347 - Script exited with status 1
lxc-start 20161230114502.639 ERROR lxc_start - start.c:lxc_init:465 - failed to run pre-start hooks for container '106'.
lxc-start 20161230114502.639 ERROR lxc_start - start.c:__lxc_start:1313 - failed to initialize the container
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:344 - The container failed to start.
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:346 - To get more details, run the container in foreground mode.
lxc-start 20161230114507.639 ERROR lxc_start_ui - tools/lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.
root@cat:~# pvesm status
local dir 1 32670208 1095040 31575168 3.85%
local-zfs zfspool 1 31575288 96 31575192 0.50%
nfs_vol1_VM nfs 1 10961676288 23905280 10937771008 0.72%
nfs_vol1_backups nfs 1 12058414080 1120643072 10937771008 9.79%
zfs_lxc zfspool 1 12692242596 1754471673 10937770922 14.32%
zfs_vol1 zfspool 1 12692242596 1754471673 10937770922 14.32%