![我可以将 2 个磁盘的条带化 zpool 镜像到单个大驱动器吗?](https://linux22.com/image/787799/%E6%88%91%E5%8F%AF%E4%BB%A5%E5%B0%86%202%20%E4%B8%AA%E7%A3%81%E7%9B%98%E7%9A%84%E6%9D%A1%E5%B8%A6%E5%8C%96%20zpool%20%E9%95%9C%E5%83%8F%E5%88%B0%E5%8D%95%E4%B8%AA%E5%A4%A7%E9%A9%B1%E5%8A%A8%E5%99%A8%E5%90%97%EF%BC%9F.png)
目前我有一个 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。
为了获得更好的冗余,而无需重新进行池配置和/或引入lvm
或md
连接较小的驱动器,最好的方法是send/recv
定期将所有数据复制到较大的驱动器。