Questions about migrating a ZFS RAID

I've recently been looking at options to upgrade (completely replace) my current NAS, as it's currently more than a little bit jank and frankly kinda garbage. I have a few questions about that and about migrating my current TrueNAS scale installation or at least it's settings over.

Q1: Does the physical order of the drives matter? I.E. The order they are plugged into the SATA ports.

Q2: Since I have TrueNAS scale installed on a USB flash drive (yeah, ik you're not supposed to but it is what it is), how bad of an idea would it be to just... unplug it from my current NAS and plug it into the new one?

Q3: If all else fails, how reliable is TrueNAS scale's importing of ZFS Pools and are there any gotchas with it?

Q4: Would moving to a virtualized solution like proxmox and installing TrueNAS scale on top of that in a VM make more sense on a beefier server?

E: Thank you all for the replies, the migration went smoothly :)

Decronym Bot , (edited )

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
IP Internet Protocol
NAS Network-Attached Storage
PCIe Peripheral Component Interconnect Express
RAID Redundant Array of Independent Disks for mass storage
ZFS Solaris/Linux filesystem focusing on data integrity

5 acronyms in this thread; the most compressed thread commented on today has 5 acronyms.

[Thread for this sub, first seen 27th May 2024, 03:25]
[FAQ] [Full list] [Contact] [Source code]

NeoNachtwaechter ,

Don't forget to 'export' the zpool before moving the disks. Afterwards, you 'import' it on the new system. That's all it needs.

If you use proxmox, then Truenas is kinda redundant, since proxmox can manage your zpool as well.

possiblylinux127 ,
@possiblylinux127@lemmy.zip avatar

Don't try to move TrueNAS to a new host. That's not going to work well. You should setup the new NAS and then do a ZFS send and receive to move data.

If you are reusing the disks you can just export and then import the pool.

pete_the_cat , (edited )

Q1: No it shouldn't matter as long as you didn't import the pool using device names (sda, sdb, etc...). If you're using labels or UUIDs (the better option for portability sake). If they do happen to use device names, just export the pool and then reimport it on the same system using labels or UUIDs.

Q2: It should work just fine assuming you're not using device names for your pools

Q3: it's just as robust as FreeBSD's implementation. Once again, see the answer to Q1.

Q4: IMO virtualizing your NAS just adds more headaches and performance overhead compared to running it on bare metal.

Out of my years running TrueNAS on and off, I've always had issues with it when doing anything other than using it purely as a storage box. I tried 24.04 a few weeks ago, thinking that most of the issues I had originally when SCALE was launched would be resolved. They weren't. So I went back to Arch w/OpenZFS...again

Presi300 OP , (edited )
@Presi300@lemmy.world avatar

I've been running TrueNAS scale for a while and my only issue with it has been having to create a virtual bridge so that my VMs can ping the host and vice versa, been a pretty smooth experience other than that. As for the performance overhead... my replacement server is VERY beefy, compared to my old one so I couldn't care less lol.

pete_the_cat ,

I agree, the VM management could be easier. I don't understand why I can't have two NICs in the same subnet as long as they have different IPs.

The bigger annoyance for me was there was no way to tell what disk is attached where in the VM device listings since it only shows the boot order and not labels or paths.

Presi300 OP ,
@Presi300@lemmy.world avatar

Can't you just bridge the 2 NICs?

Shdwdrgn ,

I've never used TrueNAS, but my experience with ZFS is that it could care less what order the drives are detected by the operating system. You could always shut down the machine, swap two drives around, boot back up, and see if the pool comes back online. If it fails, shut it back down and put the drives in their original locations.

If you are moving your data to new (larger) drives, before anything else you should take the opportunity to play with the new drives and find the ZFS settings that work well. I think recordsize is autodetected these days, but maybe for your use things like dedup, atime, and relatime can be turned off, and do you need xattr? If you're using 4096 block sizes did you partition the drives starting at sector 2048? Did you turn off compression if you don't need it? Also consider your hardware, like if you have multiple connection ports, can you get a speed increase by spreading out the drives so you don't saturate any particular channel?

Newer hardware by itself can make a huge difference too. My last upgrade took me from PCIe x4 to x16 slots, allowing me to upgrade to SAS3 cards, and overall went from around 70MB/s to 460MB/s transfer speeds with enough hardware to manage up to 40 drives. Turns out the new configuration also uses much less power, so a big win all around.

Presi300 OP ,
@Presi300@lemmy.world avatar

I am not gonna be changing my drives, just the server itself and just wanna make sure I don't screw up my ZFS pools, as that does not sound fun. As for the hardware I'm looking at itself, it's not new ( a used server) but it's sure as hell better than what I have now I'm

Shdwdrgn ,

Nothing wrong with used servers, that's the only thing I've ever run. Ebay has provided a ton of equipment to me.

AreaKode , (edited )

I can answer Q1. The order definitely does not matter. All the drives are aware of who they are, so when you import, as long as they are all present, you're good.

tagginator Bot ,

New Lemmy Post: Questions about migrating a ZFS RAID (https://lemmyverse.link/lemmy.world/post/15850581)
Tagging:

(Replying in the OP of this thread (NOT THIS BOT!) will appear as a comment in the lemmy discussion.)

I am a FOSS bot. Check my README: https://github.com/db0/lemmy-tagginator/blob/main/README.md

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • kbinchat
  • All magazines