freebsd 11 中的 zfs 空间中的 jails 会出现 mount descfs 错误

freebsd 11 中的 zfs 空间中的 jails 会出现 mount descfs 错误

晚安,我正在尝试在 OVH 专用服务器上使用 freebsd 11 部署多监狱环境。

我创建了克隆的接口并创建了监狱,但是当我尝试启动时,它告诉我无法挂载 nullfs。

我将其添加到 /boot/loader.conf

nullfs_mount=1

重新启动,但现在出现第二个错误

Starting jails: cannot start jail  "haproxy": 
mount: .: Operation not supported by device
jail: haproxy: /sbin/mount -t fdescfs . /local/jails/haproxy/dev/fd: failed

我应用了

https://lists.freebsd.org/pipermail/freebsd-stable/2014-August/079700.html

并位于此处

http://pastebin.com/5t9zEzkV

应用此命令

#patch /sys/fs/fdescfs/fdesc_vfsops.c sys_fs_fdescfs_fdesc_vfsop

但它失败了,就像这样:

Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/sys/fs/fdescfs/fdesc_vfsops.c b/sys/fs/fdescfs/fdesc_vfsops.c
|index cb5e3c0..7193809 100644
|--- a/sys/fs/fdescfs/fdesc_vfsops.c
|+++ b/sys/fs/fdescfs/fdesc_vfsops.c
--------------------------
Patching file /sys/fs/fdescfs/fdesc_vfsops.c using Plan A...
Reversed (or previously applied) patch detected!  Assume -R? [y] y
Hunk #1 succeeded at 51 (offset 1 line).
Hunk #2 failed at 79.
No such line 241 in input file, ignoring
Hunk #3 succeeded at 229 (offset -8 lines).
1 out of 3 hunks failed--saving rejects to /sys/fs/fdescfs/fdesc_vfsops.c.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/sys/kern/kern_jail.c b/sys/kern/kern_jail.c
|index 2846eca..791723d 100644
|--- a/sys/kern/kern_jail.c
|+++ b/sys/kern/kern_jail.c
--------------------------
File to patch: /sys/kern/kern_jail.c
Patching file /sys/kern/kern_jail.c using Plan A...
Hunk #1 failed at 207.
Hunk #2 failed at 224.
Hunk #3 failed at 4247.
Hunk #4 failed at 4403.
4 out of 4 hunks failed--saving rejects to /sys/kern/kern_jail.c.rej
Hmm...  The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/sys/sys/jail.h b/sys/sys/jail.h
|index a82a499..a01d665 100644
|--- a/sys/sys/jail.h
|+++ b/sys/sys/jail.h
--------------------------
File to patch: /sys/sys/jail.h
Patching file /sys/sys/jail.h using Plan A...
Hunk #1 failed at 228.
1 out of 1 hunks failed--saving rejects to /sys/sys/jail.h.rej
done
# 

有人在 Freebsd 11 中发现这个错误吗?有人可以帮助我吗?提前谢谢了。

答案1

这个补丁是两年前针对 10.x 的,你现在将它应用到 11.x,难怪它会失败。你应该要求作者将它移植到 11.x,并且可能调查为什么它一开始没有提交到树中 - 我确信它有它不这样做的原因。

PS SO似乎不适合提出这个问题,合适的地方是freebsd-稳定版@邮件列表。

相关内容