Migrating a ZFS pool from RAIDZ1 to RAIDZ2

https://mtlynch.io/raidz1-to-raidz2/

#ZFS #RAID #RAIDZ1 #RAIDZ2 #TrueNAS

Migrating a ZFS pool from RAIDZ1 to RAIDZ2

How to migrate from RAIDZ1 to RAIDZ2 without a spare ZFS server or a boatload of extra disks.

Question for the zfs junkies here:
I have a pool with a raidz2 vdev on spinning disks. When I pull incremental backups of the data (i.e. mainly file stats) it take quite a while even when no files changed, just because of the sheer number of files to check.

So, here's the question: I do have some small spare SSDs in the system. Does it make sense to use them as a special vdev? My thinking is that they'd store metadata, which would speed up the file stats.

What do you think? Would this work? Are there any negatives? I want to be sure since from what I've read you can't remove special vdevs from a pool with raidz vdevs.

Reposts welcome! Thank you!

#help #zfs #linux #raidz2

#Glück muss man haben....

Zuerst stirbt eine #Festplatte in meinem #NAS. Zum Glück #RaidZ2. Ersatz bestellt, kommt morgen, dann etwas Zeit fürs wieder reinrechnen und es ist wieder gut.

Heute stirbt doch glatt mein lokaler Mini-PC und nimmt meine Home-Automatisierung und mein #pihole mit sich (und noch ein paar Dienste, aber die merkt man nicht so stark). DNS geht ja noch recht einfach umzubiegen (anderes Ziel in den DHCP Server eintragen, zack tun die Clients wieder).
#Homeassistant nervt viel dagegen viel mehr, wenn das weg ist. Das ist der Nachteil an einer Automatisierung, die was zentrales braucht. Wenn das weg ist, dann Mist.
(Weswegen im Hausbau dann auch #knx genommen wird, und nur "hübsche Extras" mit so nem Zentral Dings daherkommen werden.)

Nungut, hab ja noch nen Laptop. Also kommt die VM vom HA dann dadrauf. Muss nur erstmal die Daten dahinkriegen. Kostet Zeit, aber ist machbar.

Aber es nervt. Ich hatte anderes vor heute.

First time trying to expand a ZFS raidz2...

What am I missing? Forest + trees problem?

I thought it might be a requirement to escape the colons in the device name but I've been backwards and forwards of escaping and quoting to no effect.

For giggles tried adding a 'single' vdev and then 'zpool attach' but it doesn't work.

I was initially following @vermaden tutorial at https://freebsdfoundation.org/blog/openzfs-raid-z-expansion-a-new-era-in-storage-flexibility/ but working on a live system with physical devices and without a net. Ha.

"Linux" things?

Debian Bookwork, Linux 6.12.12+bpo-amd64, zfs 2.3.1. Very vanilla other than the backport kernel.

#Linux #ZFS #draid2 #raidz2 #zpool

I've now tried both. #UnRAID is easier to configure out of the box but is non-free even though based on #Slackware, and parity building always fails me 18+ hrs in. #TrueNAS Scale is free if more complex & resource hungry, with encrypted #ZFS #raidz2 ready for use with double parity within 10 minutes of 1st boot.

Both have pros & cons, but TrueNAS works as expected even on lower-end hardware where UnRAID parity fails. YMMV, but if you don't need to reuse odd-sized old disks TrueNAS wins.

Dried and cleaned.

These are part of a #zfs #raidz2 pool of one of my backup servers, so if at least two of them work, the pool can be saved.

The disks were submerged about 3 cm from the left edge towards about halfway along the SAS connector, for about two hours. The breather holes were clear, so integrity of the platter enclosure is hopefully ok. Also, I'm optimistic about the PCBs, because, as far as I can reconstruct, the circuit breaker tripped as soon as the first power distributors got wet, well before any electronics were touched by water.

Fragen, die man sich mitten in der Nacht vor dem Schlafen gehen stellt - #ZFS Datapool für VMs/LXCs bei (noch) fünf (bald sechs) gleich großen SSDs mit #RAID10, #RAIDZ oder #RAIDZ2? Das werde ich wohl aber erst morgen (as in nach dem Schlafen) entscheiden müssen/dürfen. #HomeLab
@ZS same for me.
Just checked all my drives and I found this one in a #RAIDz2.
84720 Power_On_Hours are 9.671 Power_On_Years - I amid, I am going to swap it now.
#Resilvering ist durch. 🕖 - 🕗 13h 6m echt nicht schlecht für 6 bzw. 8 TB. 🚀
#TrueNAS #ZFS #Storage #NAS #RAIDz2 #IT #RAID #Homelab #FreeBSD #Server #freeNAS
Knapp 8 Jahre alt hat die #HDD bei mir rund 7 Jahre ihren Dienst getan. Jetzt musste sie getauscht werden. #Resilvering läuft (das 2. Mal in meinem Leben 😅)
#TrueNAS #ZFS #Storage #NAS #RAIDz2 #IT #RAID #Homelab #FreeBSD #Server #freeNAS