0

Currently I'm running a ZFS striped mirror set:

NAME                                            STATE     READ WRITE CKSUM
data                                            ONLINE       0     0     0
  mirror-0                                      ONLINE       0     0     0
    gptid/cfa8a519-5f83-1ce1-a581-c9c8fccbd20a  ONLINE       0     0     0
    gptid/f5d15303-c826-ad69-ee88-ad3a8fc2460c  ONLINE       0     0     0
  mirror-1                                      ONLINE       0     0     0
    gptid/13f52f4c-bb95-dfca-844b-db46d766c808  ONLINE       0     0     0
    gptid/21ddf484-33ad-6f43-c191-9f7ce4070677  ONLINE       0     0     0

mirror-0 and mirror-1 are striped. But I want to change it to a 2-disk setup, which is in mirror. Because the 2 disks in mirror-1 set are the biggest, I want to keep that mirror set. But I guess mirror-0 set contains data that is not stored in mirror-1 set.

So short question is, how do I change my config to a 2 disk mirror setup without losing data?

Thanks in advance!

1 Answers1

3

Currently you cannot remove VDEV's. If you want to remove mirror-0, you basically have to make a backup, then re-create your pool, and restore.

Zoredache
  • 128,755
  • 40
  • 271
  • 413