[TUTORIAL] Expanding zpool mirror with 2 additional NVMe hard drives

sharbich

Member
Nov 7, 2024
50
1
8
Hello everyone,
i'd like to expand my existing Zpool Mirror-0 to a Mirror-1 by adding two more NVMe drives.
What's the best way to do this? Here's my Zpool status:
Code:
  pool: rpool
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
    The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
    the pool may no longer be accessible by software that does not support
    the features. See zpool-features(7) for details.
  scan: scrub repaired 0B in 00:37:55 with 0 errors on Sun Nov  9 01:02:00 2025
config:

    NAME                                      STATE     READ WRITE CKSUM
    rpool                                     ONLINE       0     0     0
      mirror-0                                ONLINE       0     0     0
        nvme-NE-1TB_2280_9X41220000467-part3  ONLINE       0     0     0
        nvme-NE-1TB_2280_9X41220000458-part3  ONLINE       0     0     0

errors: No known data errors
I would extend that with the following command:
Code:
zpool add -o ashift=12 -f rpool mirror ...
These are my two existing NVMe drives:
Code:
Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: NE-1TB 2280                            
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 03996893-6EA0-4765-B37E-8FAF928FE371

Device              Start        End   Sectors   Size Type
/dev/nvme0n1p1         34       2047      2014  1007K BIOS boot
/dev/nvme0n1p2       2048    2099199   2097152     1G EFI System
/dev/nvme0n1p3    2099200  499539968 497440769 237.2G Solaris /usr & Apple ZFS
/dev/nvme0n1p4  499542016  999831551 500289536 238.6G Linux filesystem
/dev/nvme0n1p5  999831552 1500121087 500289536 238.6G Linux filesystem
/dev/nvme0n1p6 1500121088 2000408575 500287488 238.6G Linux filesystem


Disk /dev/nvme1n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors
Disk model: NE-1TB 2280                            
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 6ADA2FDD-034C-4069-A032-4DD2D32CDA4D

Device              Start        End   Sectors   Size Type
/dev/nvme1n1p1         34       2047      2014  1007K BIOS boot
/dev/nvme1n1p2       2048    2099199   2097152     1G EFI System
/dev/nvme1n1p3    2099200  499539968 497440769 237.2G Solaris /usr & Apple ZFS
/dev/nvme1n1p4  499542016  999831551 500289536 238.6G Linux filesystem
/dev/nvme1n1p5  999831552 1500121087 500289536 238.6G Linux filesystem
/dev/nvme1n1p6 1500121088 2000408575 500287488 238.6G Linux filesystem
The two new NVMe drives have 4TB each. Are the two old NVMe drives meant to be replaced?
How do I know which NVMe disk I need to add? There must be two more, right?
Thanks in advance for your support.
Regards, Stefan Harbich
 
Last edited: