Help with ZFS Array
https://lemmy.ca/post/32471131
=> More informations about this toot | More toots from Lem453@lemmy.ca
I don't know anything about ZFS, but in the future you might want to address them by /dev/disks/by-uuid/... and not by /dev/nvme..
=> More informations about this toot | More toots from hendrik@palaver.p3x.de
Is there a way to change this on an existing zpool?
=> More informations about this toot | More toots from Lem453@lemmy.ca
OP – if your array is in good condition (and it looks like it is) you have an option to replace drives one by one, but this will take some time (probably over a period of days). The idea is to remove a disk from the pool by its old name, then re-add the disk under the corrected name, wait for the pool to rebuild, then do the process again with the next drive. Double-check, but I think this is the proper procedure…
zpool offline poolname /dev/nvme1n1p1 zpool replace poolname /dev/nvme1n1p1 /dev/disk/by-id/drivename
Check zpool status to confirm when the drive is done rebuilding under the new name, then move on to the next drive. This is the process I use when replacing a failed drive in a pool, and since that one drive is technically in a failed state right now, this same process should work for you to transfer over to the safe names. Keep in mind that this will probably put a lot of strain on your drives since the contents have to be rebuilt (although there is a small possibility zfs may recognize the drive contents and just start working immediately?), so be prepared in case a drive does actually fail during the process.
=> More informations about this toot | More toots from Shdwdrgn@mander.xyz
Thanks for this! Luckily the above suggestion to export and import worked right away so this was not needed.
=> More informations about this toot | More toots from Lem453@lemmy.ca
Yeah I figured there would be multiple answers for you. Just keep in mind that you DO want to get it fixed at some point to use the disk id instead of the local device name. That will allow you to change hardware or move the whole array to another computer.
=> More informations about this toot | More toots from Shdwdrgn@mander.xyz This content has been proxied by September (3851b).Proxy Information
text/gemini