I am trying to setup a raidz2 on 25.04.1 with 3 disks in a degraded mode which will allow me to copy data from a single drive to the pool. Once the data is copied, I will add the 4th drive and resilver. I only need 4 drives which I already own, I am trying to not buy a spare as I cannot use it due to limited sata/pcie connections (even though having it would be nice).
I need help with the CLI commands as I created the zpool but can’t create datasets using the UI.
Edit: Also the storage zpool doesn’t show on the Storage Dashboard so that leaves to believe I did something wrong. I am also wondering if I should just order the 5th drive and use the UI…
Your Zpool create command does not make a degraded RAID-Z2 pool. Instead, it is making a pool with 2 parity and 1 data. Your data might not fit on it.
Any command line work may not be recognized by the middleware. One way to get around this is to export the pool from the command line. Then import the pool from the GUI.
The GUI does not support making a 3 disk wide RAID-Z2 pool, (or a 2 disk RAID-Z1 pool), (if I remember correctly). Those are odd layouts, that are supported by ZFS but only very small NASes would want such, and probably not iX Enterprise customers.
Now to create a degraded RAID-Z2 pool 4 disks wide, but only using 3 disks, it’s tricky. Here is the rough procedure:
I might have missed a step like the mountpoint for the pool. Doing things from the command line tends to be less than ideal because TrueNAS middleware takes care of a lot of details.
Another missing “detail” is that, ideally, you would partition the drives as TrueNAS would (or should…), leaving some “padding” space to account for marginally smaller replacement drives, and use UUIDs instead of /dev/sdX when creating the pool.
(A GUI way to solve that would be to offline a drive and then replace it… by itself. Rince and reapeat for a total of three resilvers.)
Thank you for the information, I think it’s clear, I will be buying another drive to avoid the dragons and host of other things that I can mess up. I appreciate the kind guidance