Avatar

Shdwdrgn

Shdwdrgn@mander.xyz
Joined
30 posts • 1.2K comments

A person with way too many hobbies, but I still continue to learn new things.

Direct message

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.

permalink
report
parent
reply

Are you sure about that? Ever hear about this supposed predictable network names in recent linux versions? Yeah those can change too. I was trying to set up a new firewall with two internal NICs plus a 4-port card, and they kept moving around. I finally figured out that if I cold-booted the NICs would come up in one order, and if I warm-booted they would come up in a completely different order (like the ports on the card would reverse which order they were detected). This was completely the fault of systemd because when I installed an older linux and used udev to map the ports, it worked exactly as predicted. These days I trust nothing.

permalink
report
parent
reply

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.

permalink
report
parent
reply

That is definitely true of zfs as well. In fact I have never seen a guide which suggests anything other than using the names found under /dev/disk/by-id/ or /dev/disk/by-id/uuid and that is to prevent this very problem. If the proper convention is used then you can plug the drives in through any available interface, in any order, and zfs will easily re-assemble the pool at boot.

So now this begs the question… is proxmox using some insane configuration to create drive clusters using the name they happen to boot up with???

permalink
report
parent
reply

I’m curious, what part of that do you think will be good for anyone who isn’t a rich which male?

permalink
report
parent
reply

I agree with the wait-and-see approach, but I also know how much damage he did the first time around even without a lot of support. And the amazing thing is that people still think the economy was better under Trump (who barely managed to coast on Obama’s success) than it has been under Biden (who managed to turn around a global economic disaster after COVID). This time it’s all going to be on Trump, and we’re all going to suffer from it.

permalink
report
parent
reply

Unfortunately Trump’s stated plan is to boot out everyone who won’t kiss his ass, shut down “non-essential” services like the education department or national weather service, put someone in control of healthcare who believes all vaccinations need to be immediately banned, and pass national laws against women’s reproductive health care despite his claims of letting each State handle their own business. And yes, on his own he could only do so much, but the Republican party also gained more seats in both houses of representatives which means it will be easier to steamroll through anything he wants. So yeah, we have many many good reasons to be worried.

permalink
report
parent
reply

One promising item I found are some json files from Reuters…

This one provides info on the candidates and the key for state ID’s: https://graphics.thomsonreuters.com/data/2024/us-elections/production/events/20241105/metadata.json

This one seems like it will provide the ballot counts(0) and possibly any declared winners(1): https://graphics.thomsonreuters.com/data/2024/us-elections/production/events/20241105/summary-votes/president.json

Of course I won’t know anything for sure until tomorrow evening when states start releasing their counts, but I went ahead and wrote up some code to use the files. It’s something at least, and the Reuters data should be fairly timely. I hope to play around with the collected info in real time, then maybe next election I can re-use the same code.

permalink
report
parent
reply

Yeah I found the same on the AP data. I also found that reddit thread, but haven’t been able to find a valid URL for this year’s election. Maybe they don’t make it available until voting starts?

permalink
report
parent
reply

Hmm good idea, I’ll take a look into that!

permalink
report
parent
reply