如何替换现有条带 zpool 上的磁盘?

如何替换现有条带 zpool 上的磁盘?

我有以下 zpool:

pool: mypool
 state: ONLINE
  scan: none requested
config:

        NAME                     STATE     READ WRITE CKSUM
        mypool                   ONLINE       0     0     0
          c9t50060E801331FC42d6  ONLINE       0     0     0
          c9t50060E801331FC42d7  ONLINE       0     0     0

我需要做的是从其他存储中替换这些磁盘,当然,预计不会出现停机。

我的想法是创建条带池的镜像,然后将其分割,但似乎不起作用:

zpool add -n mypool mirror c6t500507630A200568d4 c6t500507630A200568d5
vdev verification failed: use -f to override the following errors:
mismatched replication level: pool uses disk and new vdev is mirror
Unable to build pool from specified devices: invalid vdev configuration

任何建议都非常受欢迎。谢谢!

答案1

zpool replace mypool c9t50060E801331FC42d6 c6t500507630A200568d4

成功了

相关内容