How to remove disk from storage pool
Added by Robert Sanglay 2 months ago
I have 2 data storage drive.
1 - c1d1 - 80GB SATA (used 44GB) 2 - c0d0 - 160GB IDE (new / unused)
I experimented to "Grow" the 1st configured drive (80GB SATA) with the 2nd drive (160GB IDE) successfully (Total 224 GB, 44 GB used, 176 GB available).
I tried to offline the 160GB HD but an error bar appears (red highlighted letters) that says cannot offline ...no valid replicas
Question:
- how can I remove the 2nd HD from the pool?
- how can I clone the 1st HD (80 GB) to the 2nd HD (160 GB)? assuming I'm successful with no. 1
Replies
RE: How to remove disk from storage pool - Added by Roman Strashkin 2 months ago
You cannot remove disk from 'pool' ('pool' is vdev in Solaris notation (pool, mirror, raidz, ...) ). This operation not supported by ZFS.
RE: How to remove disk from storage pool - Added by Pavel Strashkin 2 months ago
Roman Strashkin wrote:
You cannot remove disk from 'pool' ('pool' is vdev in Solaris notation (pool, mirror, raidz, ...) ). This operation not supported by ZFS.
You're wrong, he can:
zpool remove pool device ...
Removes the specified device from the pool. This command currently only supports removing hot spares, cache, and log devices. A mirrored log
device can be removed by specifying the top-level mirror for the log. Non-log devices that are part of a mirrored configuration can be removed
using the zpool detach command. Non-redundant and raidz devices cannot be removed from a pool.
You can remove device from hot spares, cache, and log devices. Also you can detach device from mirrored configuration.
To clone device you should add it to pool as mirror. Replication process be started automatically. To check the replication progress you can use "zpool status".