简体   繁体   中英

Replace a two disk mirror within a ZFS pool with a single larger disk

I have a ZFS pool set-up like this in an HP Microserver. Each disk is 3TB in size and all server disk bays are filled:

pool: disks
state: ONLINE
 scan: scrub repaired 0B in 15h50m with 0 errors on Sun Sep 13 16:14:06 2020
config:

NAME                                            STATE     READ WRITE CKSUM
disks                                           ONLINE       0     0     0
  mirror-0                                      ONLINE       0     0     0
    ata-Hitachi_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  ONLINE       0     0     0
    ata-Hitachi_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  ONLINE       0     0     0
  mirror-1                                      ONLINE       0     0     0
    ata-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx          ONLINE       0     0     0
    ata-Hitachi_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  ONLINE       0     0     0

errors: No known data errors 

Is it possible to migrate, for example, mirror-1 to a single larger 10TB drive?

If so, what is the recommended way of doing this?

The ultimate plan would be to move to this arrangement, where each disk is 10TB:

NAME                                            STATE     READ WRITE CKSUM
disks                                           ONLINE       0     0     0
  mirror-0                                      ONLINE       0     0     0
    ata-Hitachi_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  ONLINE       0     0     0
  mirror-1                                      ONLINE       0     0     0
    ata-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx          ONLINE       0     0     0
  mirror-2                                      ONLINE       0     0     0
    ata-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx          ONLINE       0     0     0

Yes. Replace one of the disks in a mirror with a larger drive, wait for it to resilver, then detach the other drive. It will turn the vdev into a single, non-mirrored disk.

Be aware that if you lose that disk, you will lose the entire pool, and without redundancy probability of data loss is non-trivial.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM