Ancestors

Written by Lem453@lemmy.ca on 2024-11-07 at 00:58

Help with ZFS Array

https://lemmy.ca/post/32471131

=> More informations about this toot | More toots from Lem453@lemmy.ca

Written by hendrik on 2024-11-07 at 01:13

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

Written by Lem453@lemmy.ca on 2024-11-07 at 01:58

Is there a way to change this on an existing zpool?

=> More informations about this toot | More toots from Lem453@lemmy.ca

Written by Shdwdrgn@mander.xyz on 2024-11-07 at 02:36

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

Toot

Written by Lem453@lemmy.ca on 2024-11-07 at 21:09

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

Descendants

Written by Shdwdrgn@mander.xyz on 2024-11-08 at 02:34

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

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113443719817437617
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
267.963946 milliseconds
Gemini-to-HTML Time
1.837723 milliseconds

This content has been proxied by September (3851b).