我可以将 2 个磁盘的条带化 zpool 镜像到单个大驱动器吗?

我可以将 2 个磁盘的条带化 zpool 镜像到单个大驱动器吗?

目前我有一个 4TB 的池,其中有两个条带驱动器:

# zpool status
  pool: lxd
 state: ONLINE
status: Some supported features are not enabled on the pool. The pool can
        still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
        the pool may no longer be accessible by software that does not support
        the features. See zpool-features(5) for details.
  scan: scrub repaired 0B in 0 days 02:00:22 with 0 errors on Sun Jul  9 02:24:24 2023
config:

        NAME                      STATE     READ WRITE CKSUM
        lxd                       ONLINE       0     0     0
          wwn-0x500a075122d7d68c  ONLINE       0     0     0
          wwn-0x5002538f4361b49b  ONLINE       0     0     0

我有一个 4TB 的驱动器,我想将此池镜像到该驱动器,以增加冗余。我很难弄清楚这是否可行。我尝试了附加命令:

# zpool attach lxd lxd /dev/disk/by-id/wwn-0x5002538f4361edfb
cannot attach /dev/disk/by-id/wwn-0x5002538f4361edfb to lxd: no such device in pool

但我不确定我是否遇到了错误,或者这不是解决办法(甚至不可能)。谢谢!

答案1

不,您不能以这种方式嵌套 vdev。

为了获得更好的冗余,而无需重新进行池配置和/或引入lvmmd连接较小的驱动器,最好的方法是send/recv定期将所有数据复制到较大的驱动器。

相关内容