proxmox 8 cannot import rpool no such pool or dataset

Adding PCI(e) devices can change the PCI ID of other PCI(e) devices. Is your rpool on a NVMe (which is a PCIe device)?
I would expect problems what adding a device but maybe you simply disconnected the drive? Or maybe the use of a PCIe slot cause the M.2 slot to be disabled, which happens on some motehrboards? Does you BIOS see the drive with the rpool? Do you have a link to your motherboard manual?
 
Shut it down, take the NIC out and try it again.

You must have a zfs root partition, eh? It's probably, as leesteken suggests, a change in some identifier due to everything being dynamically configured. "We can't possibly keep device IDs from changing every time a computer starts or restarts!" Anyways

Hopefully, it will boot. Ideally you'd export and reimport the zpool using a different device identifier that would not change. However, since it's your root partition I have no idea how you'd do that.

If you do a zpool list -v the name part should be how the device was specified when imported. There's a few options in /dev/disk/by-id/ and hopefully at least one of them isn't subject to changing when a device is added to the system.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!