因此我尝试在 DRBD 挂载点中使用 LXC 部署 Ubuntu。
首先,我改变了/etc/lxc.conf
指向我将安装 DRBDlxc.lxcpath
的/plesk
位置。
然后我用 创建了机器lxc-create -t ubuntu -n plesk -B btrfs
。
最后,我尝试安装并启动机器:
$ mount /dev/drbd0 /plesk
$ lxc-start -n plesk -F
为此我得到了:
root@server1:/plesk# lxc-start -n plesk -F
lxc-start: conf.c: mount_rootfs: 798 No such file or directory - Failed to get real path for "/plesk/plesk/rootfs".
lxc-start: conf.c: setup_rootfs: 1220 Failed to mount rootfs "/plesk/plesk/rootfs" onto "/usr/lib/x86_64-linux-gnu/lxc" with options "(null)".
lxc-start: conf.c: do_rootfs_setup: 3899 failed to setup rootfs for 'plesk'
lxc-start: conf.c: lxc_setup: 3981 Error setting up rootfs mount after spawn
lxc-start: start.c: do_start: 811 Failed to setup container "plesk".
lxc-start: sync.c: __sync_wait: 57 An error occurred in another process (expected sequence number 3)
lxc-start: start.c: __lxc_start: 1358 Failed to spawn container "plesk".
lxc-start: tools/lxc_start.c: main: 366 The container failed to start.
lxc-start: tools/lxc_start.c: main: 370 Additional information can be obtained by setting the --logfile and --logpriority options.
如果这样$ umount /plesk
,机器就可以正常启动。我该如何修复这个问题?