question about raid 1 in zfs based proxmox

ButelkaWody

Member
Nov 28, 2022
2
0
6
Hello everyone.

I have a question about raid 1 on zfs. When installing proxmox on two ssd drives in raid 1, from what I noticed, the partition table looks identical on both drives. There are 3 partitions, the first is the boot system, the second is efi and the third is where the files are. Its normal situation of course.

I simulated a failure, I completely disconnected one drive so obviously the zfs pool does not work correctly. Now, when installing a new drive, if I do the zpool restore command, the same partition table will not be created automatically. I mean, is there a mechanism or command that will copy the entire contents of the first drive to the new drive at once? Because at this point I have to manually create partition tables and use proxmox-boot-setup to create grub on the new drive because otherwise if the first one fails, I will not be able to start the system.

Why is it that when there is raid 1, after installing a new drive and issuing zpool restore, it is not done automatically? grub etc.
 
I simulated a failure, I completely disconnected one drive so obviously the zfs pool does not work correctly. Now, when installing a new drive, if I do the zpool restore command, the same partition table will not be created automatically. I mean, is there a mechanism or command that will copy the entire contents of the first drive to the new drive at once? Because at this point I have to manually create partition tables and use proxmox-boot-setup to create grub on the new drive because otherwise if the first one fails, I will not be able to start the system.
Please see the section 'Changing a failed bootable device' in the manual for the instructions for this: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_zfs_change_failed_dev