[pkg-lxc-devel] Bug#991759: lxc fails to start a container with xfs root after host is booted

Markus Iehoven miehoven at gmail.com
Sun Aug 1 10:05:05 BST 2021


Package: lxc
Version: 1:4.0.6-2
Severity: important

Debian GNU/Linux 11 (bullseye) 5.10.0-8-amd64 #1 SMP Debian 5.10.46-3

I have a lxc container with root on a LVM volume formated to XFS. The
container can not be started after host is rebooted. look like XFS
module is not loaded at this time. modprobe xfs fixes the problem. But
I thinks that it should be done automatically

~# lxc-start -n mongo -F

lxc-start: mongo: storage/storage_utils.c: mount_unknown_fs: 298
Failed to determine FSType for "/dev/fast/mongo"
lxc-start: mongo: conf.c: lxc_mount_rootfs: 1257 Failed to mount
rootfs "/dev/fast/mongo" onto "/usr/lib/x86_64-linux-gnu/lxc/rootfs"
with options "(null)"
lxc-start: mongo: conf.c: lxc_setup_rootfs_prepare_root: 3142 Failed
to setup rootfs for
lxc-start: mongo: conf.c: lxc_setup: 3278 Failed to setup rootfs
  lxc-start: mongo: start.c: do_start: 1218 Failed to setup container "mongo"
  lxc-start: mongo: sync.c: __sync_wait: 36 An error occurred in
another process (expected sequence number 5)
  lxc-start: mongo: start.c: __lxc_start: 1999 Failed to spawn container "mongo"
lxc-start: mongo: tools/lxc_start.c: main: 308 The container failed to start
lxc-start: mongo: tools/lxc_start.c: main: 313 Additional information
can be obtained by setting the --logfile and --logpriority options

it works:
~# modprobe xfs && lxc-start -n mongo



More information about the Pkg-lxc-devel mailing list