Ubuntu 更新后无法使用 lvm 备份存储克隆 lxc 容器

Ubuntu 更新后无法使用 lvm 备份存储克隆 lxc 容器

命令

lxc-clone -s -K -M -H -o debian7 -n debian7-bak

结果

lxc_container: bdev.c: mount_unknown_fs: 209 failed to determine fs type for '/dev/vg/debian7'
lxc_container: bdev.c: detect_fs: 320 failed mounting /dev/vg/debian7 onto /container/debian7/debian7 to detect fstype
lxc_container: bdev.c: detect_fs: 298 child exited early - fstype not found
lxc_container: bdev.c: bdev_copy: 3090 failed getting pathnames for cloned storage: /dev/vg/debian7
lxc_container: lxccontainer.c: copy_storage: 2489 Error copying storage clone failed

Trusty 更新至 3.13.0-44-generic 后出现的问题 #73-Ubuntu SMP

答案1

我猜您知道这一点,假设您是打开此错误的同一个“提问者”,但为了像我这样的未来搜索者的利益:

这涵盖https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1414771;已修复坚定的,并将在未来版本中提供。与此同时,正如错误中所建议的,解决方法是创建一个目录,${LXC_PATH}/${LXC_NAME}/${DEV_NAME}其中

  • ${LXC_PATH}是存储容器信息的目录(lxc-config lxc.lxcpath)- 通常/var/lib/lxc
  • ${LXC_NAME}是您要克隆的容器的名称
  • ${DEV_NAME}是包含您要克隆的容器的根文件系统的设备的最后一个组件(lxc-info --name "${LXC_NAME}" -c lxc.rootfs

相关内容