本文介绍了从ZFS池中永久删除磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过ZIL向zpool添加一个SSD,但是我做错了.
I tried to add a SSD to zpool by ZIL but I did a mistake.
我希望.. zpool添加区域日志c0t1d0
但是我确实... zpool添加区域c0t1d0
I expected.. zpool add zones log c0t1d0
But I did... zpool add zones c0t1d0
我试图执行区域删除,分离,脱机命令,但是失败.
如何在zpool中删除没有数据丢失的SSD?
I tried to execute zone remove, detach, offline commands, but it failed.
How can I remove a SSD without data loss in zpool?
$ zpool status
pool: zones
state: ONLINE
scan : non requested
config:
NAME STATE READ WRITE CKSUM
zones ONLINE 0 0 0
c0t0d0 ONLINE 0 0 0
c0t1d0 ONLINE 0 0 0
$ zpool iostat -v
capacity operations bandwidth
pool alloc free read write read write
---------- ----- ----- ----- ----- ----- -----
zones 280G 109G 40 139 1.28M 13.7M
c0t0d0 263G 15.3G 39 35 1.25M 2.61M
c0t1d0 17.6G 93.4G 0 104 20.9K 11.1M
---------- ----- ----- ----- ----- ----- -----
推荐答案
不幸的是,您将不得不销毁并重新创建.您可以使用zfs send/recv
迁移所有数据,同时保留所有快照,元数据等,并且复制速度比普通cp
快.
Unfortunately, you will have to destroy and create anew. You can use zfs send/recv
to migrate all data with preservation of all snapshots, metadata etc. and also faster copying than with normal cp
.
这篇关于从ZFS池中永久删除磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!