After deleting some mirrored vdevs, a lot of type:'hole' appeared. How to delete these?
Code:
# zdb -C -U /data/zfs/zpool.cache Pool_001 MOS Configuration: version: 5000 name: 'Pool_001' state: 0 txg: 1253538 pool_guid: 4567771322782338228 errata: 0 hostid: 2174760092 hostname: 'go.lan' com.delphix:has_per_vdev_zaps hole_array[0]: 1 hole_array[1]: 2 hole_array[2]: 3 hole_array[3]: 4 hole_array[4]: 5 hole_array[5]: 6 vdev_children: 8 vdev_tree: type: 'root' id: 0 guid: 4567771322782338228 create_txg: 4 children[0]: type: 'mirror' id: 0 guid: 16590320766429347817 metaslab_array: 257 metaslab_shift: 34 ashift: 12 asize: 9983645974528 is_log: 0 create_txg: 4 com.delphix:vdev_zap_top: 129 children[0]: type: 'disk' id: 0 guid: 17062582472775176548 path: '/dev/gptid/251966d2-d00d-11ea-b7a4-3cecef02c7f0' phys_path: 'id1,enc@n300705b00c44fc50/type@0/slot@3/p2' DTL: 2190 create_txg: 4 expansion_time: 1603442959 com.delphix:vdev_zap_leaf: 130 children[1]: type: 'disk' id: 1 guid: 13722000586268573808 path: '/dev/gptid/2521b6d4-d00d-11ea-b7a4-3cecef02c7f0' phys_path: 'id1,enc@n300705b00c44fc50/type@0/slot@1/p2' DTL: 2189 create_txg: 4 expansion_time: 1603442960 com.delphix:vdev_zap_leaf: 131 children[1]: type: 'hole' id: 1 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[2]: type: 'hole' id: 2 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[3]: type: 'hole' id: 3 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[4]: type: 'hole' id: 4 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[5]: type: 'hole' id: 5 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[6]: type: 'hole' id: 6 guid: 0 whole_disk: 0 metaslab_array: 0 metaslab_shift: 0 ashift: 0 asize: 0 is_log: 0 is_hole: 1 children[7]: type: 'mirror' id: 7 guid: 10742532601814866606 metaslab_array: 1281 metaslab_shift: 30 ashift: 12 asize: 118405464064 is_log: 1 create_txg: 1253536 com.delphix:vdev_zap_top: 1024 children[0]: type: 'disk' id: 0 guid: 8073233832869855550 path: '/dev/gptid/b2486705-150c-11eb-85b2-3cecef02c7f0' create_txg: 1253536 com.delphix:vdev_zap_leaf: 1025 children[1]: type: 'disk' id: 1 guid: 7081239786574607579 path: '/dev/gptid/b24e7e5b-150c-11eb-85b2-3cecef02c7f0' create_txg: 1253536 com.delphix:vdev_zap_leaf: 1026 features_for_read: com.delphix:hole_birth com.delphix:embedded_data # # zpool status pool: Pool_001 state: ONLINE scan: scrub canceled on Fri Oct 23 04:42:06 2020 config: NAME STATE READ WRITE CKSUM Pool_001 ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gptid/251966d2-d00d-11ea-b7a4-3cecef02c7f0 ONLINE 0 0 0 gptid/2521b6d4-d00d-11ea-b7a4-3cecef02c7f0 ONLINE 0 0 0 logs mirror-7 ONLINE 0 0 0 gptid/b2486705-150c-11eb-85b2-3cecef02c7f0 ONLINE 0 0 0 gptid/b24e7e5b-150c-11eb-85b2-3cecef02c7f0 ONLINE 0 0 0 errors: No known data errors