What is the procedure to replace failed HD in ZFS Raid Mirror conf? proxmox 8.1

Is it part of an rpool from which the host boots or not?

In both cases, https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_zfs_change_failed_dev and the following chapter in case it is a boot drive.

Ideally you use the /dev/disk/by-id/... paths for the disk, as this name will show up in the status output of the pool. If you choose the one that contains the name and serial number, it makes identifying the disk a lot quicker in the future.
 
# zpool replace -f <pool> <old-device> <new-device>
Changing a failed bootable device
Depending on how Proxmox VE was installed it is either using systemd-boot or GRUB through proxmox-boot-tool [3] or plain GRUB as bootloader (see Host Bootloader). You can check by running:

# proxmox-boot-tool status
The first steps of copying the partition table, reissuing GUIDs and replacing the ZFS partition are the same. To make the system bootable from the new disk, different steps are needed which depend on the bootloader in use.
# sgdisk <healthy bootable device> -R <new device>
# sgdisk -G <new device>
# zpool replace -f <pool> <old zfs partition> <new zfs partition>

Use the zpool status -v command to monitor how far the resilvering process of the new disk has progressed.
With proxmox-boot-tool:
# proxmox-boot-tool format <new disk's ESP>
# proxmox-boot-tool init <new disk's ESP> [grub]

ESP stands for EFI System Partition, which is set up as partition #2 on bootable disks when using the Proxmox VE installer since version 5.4. For details, see Setting up a new partition for use as synced ESP.
Make sure to pass grub as mode to proxmox-boot-tool init if proxmox-boot-tool status indicates your current disks are using GRUB, especially if Secure Boot is enabled!
With plain GRUB:
# grub-install <new disk>
 
Is it part of an rpool from which the host boots or not?

In both cases, https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_zfs_change_failed_dev and the following chapter in case it is a boot drive.

Ideally you use the /dev/disk/by-id/... paths for the disk, as this name will show up in the status output of the pool. If you choose the one that contains the name and serial number, it makes identifying the disk a lot quicker in the future.
is is part of rpool, i follow this guide do , after done resilvering

then try unplug the main hardisk ,

then left the new hardisk then no able boot up