I just completed my first ever FreeBSD install on a network attached disk storage box I am building out of recycled desktop PC parts. I've got several big spinning rust disks in it, one 500 Gb SATA attached SSD, and one 1000 Tb NVME drive (and a delightful excess of RAM and fast cores <smile>.)
I told the installer to use the SSD and NVME as a ZFS mirror for my root (and EFI, swap) partitions.
Now I see I ended up with my root zpool on a mirror of 450 Gb on the SSD, and 950 Gb on the NVME (the rest of those two drives being swap and EFI).
Does that mean that I am now wasting the 950-450 == 500 Gb of my NVME? Surely a simple two way mirrored zpool can't use more than the smallest vdev (450 Gb in this case) for the useful size of each vdev in the mirror.
I would like to have the 500 Gb on that NVME unused for now, available for (unmirrored) scratch space in the future.
Should I have used a more manual disk configuration during the install, to get this, rather than just "hoping" the installer woudn't waste space making an unbalanced mirror?
Is my best remedy now to remove the NVME half of my root mirror, use gpart to make a 450 Gb partition on that NVME, and then reattach that newly created, smaller, partition back into my root mirror?
If so, would that be using
Thanks for keeping the classic Unix way of doing things going strong all these years.
I told the installer to use the SSD and NVME as a ZFS mirror for my root (and EFI, swap) partitions.
Now I see I ended up with my root zpool on a mirror of 450 Gb on the SSD, and 950 Gb on the NVME (the rest of those two drives being swap and EFI).
Does that mean that I am now wasting the 950-450 == 500 Gb of my NVME? Surely a simple two way mirrored zpool can't use more than the smallest vdev (450 Gb in this case) for the useful size of each vdev in the mirror.
I would like to have the 500 Gb on that NVME unused for now, available for (unmirrored) scratch space in the future.
Should I have used a more manual disk configuration during the install, to get this, rather than just "hoping" the installer woudn't waste space making an unbalanced mirror?
Is my best remedy now to remove the NVME half of my root mirror, use gpart to make a 450 Gb partition on that NVME, and then reattach that newly created, smaller, partition back into my root mirror?
If so, would that be using
zpool-detach/zpool-attach
, or zpool-remove/zpool-add
?Thanks for keeping the classic Unix way of doing things going strong all these years.